joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b0a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433b24]
jne 0x404b14
repz ret
jmp fcn.004077c2

Function at 0x4071f0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402ce9
and dword [ebp - 4], 0
cmp dword [0x4383bc], 0
mov ebx, eax
jne 0x4072a1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407352
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407352
push eax
call fcn.00402c77
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4383bc], eax
call esi
push eax
call fcn.00402c77
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4383c0], eax
call esi
push eax
call fcn.00402c77
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4383c4], eax
call esi
push eax
call fcn.00402c77
pop ecx
mov dword [0x4383cc], eax
test eax, eax
je 0x4072a1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402c77
pop ecx
mov dword [0x4383c8], eax
mov eax, dword [0x4383c8]
cmp eax, ebx
je 0x4072f9
cmp dword [0x4383cc], ebx
je 0x4072f9
push eax
call fcn.00402cf2
push dword [0x4383cc]
mov esi, eax
call fcn.00402cf2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4072f9
test edi, edi
je 0x4072f9
call esi
test eax, eax
je 0x4072f0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4072f0
test byte [ebp - 0xc], 1
jne 0x4072f9
or dword [ebp + 0x10], 0x200000
jmp 0x407332
mov eax, dword [0x4383c0]
cmp eax, ebx
je 0x407332
push eax
call fcn.00402cf2
pop ecx
test eax, eax
je 0x407332
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407332
mov eax, dword [0x4383c4]
cmp eax, ebx
je 0x407332
push eax
call fcn.00402cf2
pop ecx
test eax, eax
je 0x407332
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4383bc]
call fcn.00402cf2
pop ecx
test eax, eax
je 0x407352
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407354
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8c632b
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x8c6336
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x8c63ea
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x8e7d08]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x8e7d08]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x8e7d08]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x8e7d08]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x8e7d08]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x8e7d08]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x8e7d08]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x8e7d08]
add ecx, 8
sub edi, 8
dec esi
jne 0x8c634d
pop ebx
test edi, edi
je 0x8c6403
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x8e7d08]
inc ecx
dec edi
jne 0x8c63ee
pop esi
not eax
pop edi
ret

Function at 0x8c6408
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x8e7d08]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x8e7d08]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp eax, 0x761e7bbc
cmp eax, 0xfffffff9
nop
nop
cmp eax, 0x9a8af0a4
mov eax, 0x65c09054
cmp eax, 0xffffffd5
cmp eax, 0xfffffff2
mov eax, 0xd06e809f
nop
cmp eax, 0x86b41368
nop
inc eax
mov eax, ebx
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp eax, 0xc01db56a
mov eax, ebx
cmp eax, 0x19
nop
inc eax
mov eax, ebx
cmp eax, 0x4e8b71c7
inc eax
cmp eax, 0
mov eax, ecx
inc eax
mov eax, 0xe81facc6
mov eax, 0x1b4768dc
inc eax
mov eax, ecx
mov eax, ecx
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, ecx
mov eax, ebx
inc eax
mov eax, ebx
mov eax, ecx
mov eax, ecx
mov eax, ecx
cmp eax, 0x2e
nop
nop
nop
mov eax, ebx
inc eax
cmp eax, 0xffffffc6
mov eax, ebx
nop
inc eax
inc eax
nop
cmp eax, 0x80d98160
mov eax, ebx
nop
cmp eax, 0x58
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp eax, 0xffffff92
mov eax, ebx
cmp eax, 0xd533e4d8
mov eax, ebx
inc eax
cmp eax, 0x53
mov eax, 0x1f11c18
mov eax, ecx
cmp eax, 0x93183155
mov eax, ecx
cmp eax, 0xe9c047d6
nop
cmp eax, 0xffffff82
cmp eax, 0xffffffe0
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
cmp eax, 0xffffffeb
cmp eax, 0x734a3158
inc eax
cmp eax, 0x1bf24221
mov eax, ecx
mov eax, 0x7c5b75e9
cmp eax, 0xffffffb1
mov eax, 0xceb0684f
mov eax, 0x4471bd81
cmp eax, 0xe21d12ae
cmp eax, 0x16
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
inc eax
nop
mov eax, 0xd723199b
mov eax, ecx
mov eax, 0xc8fad9f7
mov eax, ebx
cmp eax, 0x9177dbf0
inc eax
mov eax, ebx
mov eax, ecx
mov eax, ecx
cmp eax, 0x77
mov eax, ebx
inc eax
cmp eax, 0xffffffa8
cmp eax, 0x55
nop
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401280
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2008
call fcn.00406fb0
push esi
mov esi, dword [esp + 0x2018]
mov eax, 0x2000
push edi
push esi
mov word [esp + 0x10], ax
call sym.slink.exe__sys_error_none_4
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x2018]
call sym.slink.exe__string_copy_8
movzx eax, word [0x42ae14]
push eax
push 0x42ae10
lea eax, [esp + 0x14]
push eax
call sym.slink.exe__string_appendn_12
lea eax, [esp + 0xc]
push eax
call sym.slink.exe__string_terminate_null_4
push dword [0x4305d0]
lea eax, [esp + 0x14]
push 0x8000080
push 3
push dword [0x4305cc]
push 1
push accept
push eax
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x401313
call sub.KERNEL32.dll_GetLastError
pop edi
mov dword [esi + 0xc], eax
pop esi
add esp, 0x2008
ret 0xc
push dword [0x4305d4]
movsx eax, word [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_ReadFile
test al, al
jne 0x40134c
call sub.KERNEL32.dll_GetLastError
push edi
mov dword [esi + 0xc], eax
call fcn.004078f8
pop edi
pop esi
add esp, 0x2008
ret 0xc
movsx edx, word [esp + 0xc]
mov ecx, dword [esp + 8]
cmp edx, ecx
movzx eax, word [esp + 0xc]
movzx esi, cx
cmovb esi, eax
push edi
mov word [esp + 0x12], si
call fcn.004078f8
mov edx, dword [esp + 0x2018]
mov cx, word [esp + 0xe]
movzx eax, word [edx]
cmp ax, cx
cwde
jl 0x401385
movsx eax, cx
movzx eax, ax
mov ecx, 1
movsx esi, ax
mov word [edx + 2], ax
cmp esi, ecx
jl 0x4013bf
mov al, byte [esp + ecx + 0xf]
cmp al, 0x1f
jbe 0x4013b8
cmp al, 0x7f
je 0x4013b8
mov byte [ecx + edx + 3], al
inc ecx
cmp ecx, esi
jle 0x401398
pop edi
pop esi
add esp, 0x2008
ret 0xc
lea eax, [ecx - 1]
mov word [edx + 2], ax
pop edi
pop esi
add esp, 0x2008
ret 0xc
Function at 0x4013d0
Capabilities:
Clear file content
Delete file
Write file on windows

Disassembly:
mov eax, 0x2510
call fcn.00406fb0
mov eax, 0x400
mov word [esp + 0x108], ax
mov eax, 0x100
push esi
push edi
mov edi, dword [esp + 0x2528]
mov word [esp + 0xc], ax
mov eax, 0x2000
push edi
mov word [esp + 0x518], ax
call sym.slink.exe__sys_error_none_4
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x2524]
call sym.slink.exe__string_pathname_split_12
lea eax, [esp + 0x110]
push eax
push eax
call sym.slink.exe__string_treename_8
lea eax, [esp + 0x514]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x118]
push eax
call sym.slink.exe__string_pathname_join_12
test byte [esp + 0x2524], 1
mov esi, 1
je 0x401496
lea eax, [esp + 0x514]
mov esi, 2
push eax
call sym.slink.exe__string_terminate_null_4
lea eax, [esp + 0x518]
push eax
call sub.KERNEL32.dll_DeleteFileA
test al, al
jne 0x401496
call sub.KERNEL32.dll_GetLastError
push edi
mov dword [edi + 0xc], eax
call sym.slink.exe__file_not_found_4
test al, al
je 0x40152b
movzx eax, word [0x42ae04]
push eax
push 0x42ae00
lea eax, [esp + 0x51c]
push eax
call sym.slink.exe__string_appendn_12
lea eax, [esp + 0x514]
push eax
call sym.slink.exe__string_terminate_null_4
push dword [0x4305c4]
lea eax, [esp + 0x51c]
push 0x8000080
push esi
push dword [0x4305c0]
push 1
push 0x40000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x401523
push dword [0x4305c8]
mov eax, dword [esp + 0x2524]
lea edx, [esp + 0xc]
push edx
movsx ecx, word [eax + 2]
add eax, 4
push ecx
push eax
push esi
call sub.KERNEL32.dll_WriteFile
test al, al
je 0x401536
push esi
call sub.KERNEL32.dll_SetEndOfFile
test al, al
je 0x401536
push esi
call fcn.004078f8
test al, al
jne 0x40152b
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
add esp, 0x2510
ret 0x10
call sub.KERNEL32.dll_GetLastError
push esi
mov dword [edi + 0xc], eax
call fcn.004078f8
lea eax, [esp + 0x518]
push eax
call sub.KERNEL32.dll_DeleteFileA
pop edi
pop esi
add esp, 0x2510
ret 0x10

Function at 0x401560
Capabilities:
Delete file

Disassembly:
mov eax, 0x250c
call fcn.00406fb0
mov eax, 0x400
mov word [esp + 0x104], ax
mov eax, 0x100
push esi
mov esi, dword [esp + 0x2518]
mov word [esp + 4], ax
mov eax, 0x2000
push esi
mov word [esp + 0x510], ax
call sym.slink.exe__sys_error_none_4
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10c]
push eax
push dword [esp + 0x251c]
call sym.slink.exe__string_pathname_split_12
lea eax, [esp + 0x108]
push eax
push eax
call sym.slink.exe__string_treename_8
lea eax, [esp + 0x50c]
push eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x110]
push eax
call sym.slink.exe__string_pathname_join_12
movzx eax, word [0x42ae0c]
push eax
push 0x42ae08
lea eax, [esp + 0x514]
push eax
call sym.slink.exe__string_appendn_12
lea eax, [esp + 0x50c]
push eax
call sym.slink.exe__string_terminate_null_4
lea eax, [esp + 0x510]
push eax
call sub.KERNEL32.dll_DeleteFileA
test al, al
jne 0x40161d
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x250c
ret 8
Function at 0x401930
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x1070
call fcn.00406fb0
call sym.slink.exe__sys_init_0
call sym.slink.exe__util_init_0
mov eax, 4
mov dword [0x4336a4], 0x400
mov word [esp], ax
movzx eax, word [0x42af60]
push eax
push dword [esp + 0x1080]
mov dword [0x433aa8], 0x100
push 0x433aa8
mov dword [0x433bac], 0x20
mov dword [0x431680], 0x2000
call sym.slink.exe__string_vstring_12
mov byte [0x4305dc], 1
call sub.KERNEL32.dll_GetCommandLineA
test eax, eax
je 0x4019b1
movzx ecx, word [0x42af60]
push ecx
push eax
push 0x431680
call sym.slink.exe__string_vstring_12
mov eax, 1
mov word [0x433684], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x433684
push 0x431680
call sym.slink.exe__string_token_16
mov ax, word [0x433684]
mov word [0x433686], ax
mov dword [0x4336a0], 1
mov byte [0x433bd0], 0
add esp, 0x1070
ret 0xc
Function at 0x403a20
Capabilities:
Write file on windows

Disassembly:
push 1
call fcn.0040a3ac
push eax
push 0x21
push 1
push str._Program_aborted_on_error._
call fcn.0040a641
push 0x42b214
call fcn.00403a60
add esp, 0x18
jmp sym.slink.exe__sys_exit_error_0
Function at 0x4044d0
Capabilities:
Get hostname

Disassembly:
mov eax, 0x146c
call fcn.00406fb0
lea eax, [esp]
mov dword [esp], 0x400
push eax
lea eax, [esp + 8]
push eax
call sub.KERNEL32.dll_GetComputerNameA
test al, al
jne 0x40452a
lea eax, [esp + 0x404]
push eax
call sym.slink.exe__sys_error_none_4
call sub.KERNEL32.dll_GetLastError
push 0
push 0x4305e8
push str.node_name_get
mov dword [esp + 0x41c], eax
lea eax, [esp + 0x410]
push 0x42cb20
push eax
call sym.slink.exe__sys_error_abort_20
push dword [esp]
lea eax, [esp + 8]
push eax
push dword [esp + 0x1478]
call sym.slink.exe__string_vstring_12
push dword [esp + 0x1470]
call sym.slink.exe__string_downcase_4
add esp, 0x146c
ret 4

Function at 0x4046a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x884
lea eax, [esp]
push dword [0x42cbc4]
push eax
push dword [esp + 0x890]
call sym.slink.exe__string_t_c_12
push dword [0x42cbc8]
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 8]
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableA
test eax, eax
jne 0x404704
push dword [esp + 0x890]
push 2
push 0xffffffffffffffff
call sym.slink.exe__sys_stat_set_12
push dword [esp + 0x890]
push dword [esp + 0x88c]
call sym.slink.exe__sys_stat_parm_vstr_8
add esp, 0x884
ret 0xc
movzx eax, word [0x42cbcc]
push eax
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x894]
call sym.slink.exe__string_vstring_12
push dword [esp + 0x890]
call sym.slink.exe__sys_error_none_4
add esp, 0x884
ret 0xc

Function at 0x404740
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x884
push esi
mov esi, dword [esp + 0x894]
push esi
call sym.slink.exe__sys_error_none_4
push 0x84
lea eax, [esp + 8]
push eax
push dword [esp + 0x894]
call sym.slink.exe__string_t_c_12
push 0x800
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x898]
call sym.slink.exe__string_t_c_12
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 8]
push eax
call sub.KERNEL32.dll_SetEnvironmentVariableA
test al, al
jne 0x4047a1
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x884
ret 0xc

Function at 0x4047b0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x88
push esi
push dword [0x42cbc0]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x98]
call sym.slink.exe__string_t_c_12
mov al, byte [0x4305ec]
mov esi, dword [esp + 0x94]
push esi
mov byte [esp + 0xb], al
call sym.slink.exe__sys_error_none_4
lea eax, [esp + 7]
push eax
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_SetEnvironmentVariableA
test al, al
jne 0x4047ff
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x88
ret 8
Function at 0x404810
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x58
push esi
mov esi, dword [esp + 0x68]
mov eax, 0x50
push edi
mov word [esp + 0xc], ax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x68]
mov byte [esi], 0
call sym.slink.exe__string_copy_8
lea eax, [esp + 0xc]
push eax
call sym.slink.exe__string_terminate_null_4
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x64]
push edi
push eax
push 1
call fcn.00404900
push edi
call sym.slink.exe__sys_error_4
test al, al
jne 0x4048ee
push ebx
mov ebx, dword [esp + 0x6c]
movsx eax, word [ebx]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
push eax
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0x14]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x7c]
call sub.ADVAPI32.dll_RegQueryValueExA
mov ecx, dword [esp + 0x70]
mov dword [edi + 0xc], eax
mov word [ebx + 2], cx
cmp dword [edi + 0xc], 0xea
jne 0x4048a3
push edi
call sym.slink.exe__sys_error_none_4
jmp 0x4048be
test cx, cx
jle 0x4048be
movsx eax, cx
mov al, byte [eax + ebx + 3]
cmp al, byte [0x4305ed]
jne 0x4048be
lea eax, [ecx - 1]
mov word [ebx + 2], ax
push dword [esp + 0x68]
call sub.ADVAPI32.dll_RegCloseKey
push edi
call sym.slink.exe__sys_error_4
pop ebx
test al, al
jne 0x4048ee
mov eax, dword [esp + 8]
sub eax, 1
je 0x4048eb
sub eax, 1
jne 0x4048ee
or byte [esi], 2
pop edi
pop esi
add esp, 0x58
ret 0x10
or byte [esi], 1
pop edi
pop esi
add esp, 0x58
ret 0x10

Function at 0x4049f0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x54
mov eax, 0x50
push esi
mov word [esp + 4], ax
lea eax, [esp + 4]
push eax
push dword [esp + 0x60]
call sym.slink.exe__string_copy_8
lea eax, [esp + 4]
push eax
call sym.slink.exe__string_terminate_null_4
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x5c]
push esi
push eax
push 2
call fcn.00404900
push esi
call sym.slink.exe__sys_error_4
test al, al
jne 0x404a48
push esi
call sym.slink.exe__sys_error_none_4
lea eax, [esp + 8]
push eax
push dword [esp + 0x60]
call sub.ADVAPI32.dll_RegDeleteValueA
mov dword [esi + 0xc], eax
pop esi
add esp, 0x54
ret 8
Function at 0x404a50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2068
call fcn.00406fb0
mov eax, 0x50
mov byte [esp + 3], 0
push ebx
mov bh, byte [esp + 0x2078]
mov word [esp + 0x14], ax
mov eax, 0x2000
push esi
mov word [esp + 0x6c], ax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x2078]
call sym.slink.exe__string_copy_8
lea eax, [esp + 0x18]
push eax
call sym.slink.exe__string_terminate_null_4
mov esi, dword [esp + 0x2080]
lea eax, [esp + 0xc]
push esi
push eax
push 3
call fcn.00404900
push esi
call sym.slink.exe__sys_error_4
test al, al
jne 0x404c1c
movsx eax, word [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegQueryValueExA
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov word [esp + 0x6e], cx
cmp eax, 0xea
jne 0x404afc
push esi
call sym.slink.exe__sys_error_none_4
jmp 0x404b18
test cx, cx
jle 0x404b18
movsx eax, cx
mov al, byte [esp + eax + 0x6f]
cmp al, byte [0x4305ee]
jne 0x404b18
lea eax, [ecx - 1]
mov word [esp + 0x6e], ax
mov bl, bh
push esi
and bl, 1
call sym.slink.exe__sys_error_4
test al, al
je 0x404b31
mov dword [esp + 0x10], 1
jmp 0x404b61
mov eax, dword [esp + 0x10]
test bl, bl
je 0x404b3e
cmp eax, 1
jne 0x404b61
test bh, 2
je 0x404b48
cmp eax, 2
jne 0x404b61
push dword [esp + 0x2078]
lea eax, [esp + 0x70]
push eax
call sym.slink.exe__string_equal_8
test al, al
jne 0x404c13
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x207c]
call sym.slink.exe__string_copy_8
lea eax, [esp + 0x6c]
push eax
call sym.slink.exe__string_terminate_null_4
mov ecx, dword [esp + 0x10]
test bl, bl
mov eax, 1
cmovne ecx, eax
test bh, 2
mov eax, 2
cmovne ecx, eax
movsx eax, word [esp + 0x6e]
inc eax
mov dword [esp + 0x10], ecx
push eax
lea eax, [esp + 0x74]
push eax
push ecx
push dword [0x4305f0]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegSetValueExA
push esi
mov dword [esi + 0xc], eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x404bfb
push dword [esp + 0xc]
mov byte [esp + 0xf], 1
call sub.ADVAPI32.dll_RegFlushKey
push esi
mov dword [esi + 0xc], eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x404bfb
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegCloseKey
mov dword [esi + 0xc], eax
mov al, 1
pop esi
pop ebx
add esp, 0x2068
ret 0x10
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegCloseKey
mov al, byte [esp + 0xb]
pop esi
pop ebx
add esp, 0x2068
ret 0x10
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegCloseKey
pop esi
xor al, al
pop ebx
add esp, 0x2068
ret 0x10
Function at 0x404cc0
Capabilities:
Get disk information

Disassembly:
push ecx
cmp byte [0x430798], 0
jne 0x404d9f
mov al, byte [0x430799]
push ebx
mov ebx, 0x41
mov dword [0x43079c], 0x30004
mov word [0x4307a1], 0x5c3a
mov byte [0x4307a3], al
mov byte [0x430798], 1
mov byte [esp + 7], 0x20
mov byte [esp + 6], 0x20
mov byte [0x4307a0], bl
nop dword [eax + eax]
push 0x4307a0
call sub.KERNEL32.dll_GetDriveTypeA
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x404d22
jmp dword [eax*4 + 0x404db4]
mov al, byte [esp + 7]
mov dl, byte [esp + 6]
cmp al, 0x20
jne 0x404d62
mov al, byte [0x4307a0]
mov byte [esp + 7], al
jmp 0x404d62
cmp byte [esp + 6], 0x20
movzx edx, byte [esp + 6]
movzx eax, byte [0x4307a0]
cmove edx, eax
mov byte [esp + 6], dl
jmp 0x404d5e
mov dl, byte [esp + 6]
mov al, byte [esp + 7]
inc ebx
mov byte [0x4307a0], bl
cmp ebx, 0x5a
jle 0x404d10
cmp al, 0x20
je 0x404d8a
pop ebx
push dword [esp + 8]
mov byte [0x4307a0], al
push 0x43079c
call sym.slink.exe__string_copy_8
pop ecx
ret 4
cmp dl, 0x20
movzx eax, dl
mov ecx, 0x43
cmovne ecx, eax
mov byte [0x4307a0], cl
pop ebx
push dword [esp + 8]
push 0x43079c
call sym.slink.exe__string_copy_8
pop ecx
ret 4
Function at 0x405190
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x106c
call fcn.00406fb0
cmp byte [0x4305f8], 0
jne 0x4052b9
lea eax, [esp + 4]
push eax
call sym.slink.exe__sys_error_none_4
push 0x4305fc
mov word [esp + 4], 0x7f7f
push dword [esp + 4]
mov word [0x4305fe], 0
call sub.WS2_32.dll_WSAStartup
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
call sym.slink.exe__sys_error_4
test al, al
je 0x4052b2
push ebx
mov word [esp + 4], 1
mov ebx, 1
push 0x4305fc
push dword [esp + 8]
call sub.WS2_32.dll_WSAStartup
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x40523f
call sub.WS2_32.dll_WSACleanup
test eax, eax
je 0x40523f
call sub.WS2_32.dll_WSAGetLastError
push 0
push 0x4307a4
push str.err_netclose
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push 0x42cc18
push eax
call sym.slink.exe__sys_error_abort_20
mov al, byte [0x4305fe]
test al, al
jne 0x405277
inc ebx
mov byte [esp + 4], bl
cmp ebx, 0x7f
jle 0x4051f2
push 0
push 0x4307a4
push str.err_netversion
push 0x42cc18
call sym.slink.exe__sys_message_bomb_16
pop ebx
mov byte [0x4305f8], 1
add esp, 0x106c
ret
mov byte [esp + 4], al
mov al, byte [0x4305ff]
push 0x4305fc
mov byte [esp + 9], al
push dword [esp + 8]
call sub.WS2_32.dll_WSAStartup
push 0
push 0x4307a4
push str.err_netstart
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push 0x42cc18
push eax
call sym.slink.exe__sys_error_abort_20
pop ebx
mov byte [0x4305f8], 1
add esp, 0x106c
ret