joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409510
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0x200
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x40959b
lea eax, [ebp - 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x41a140
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x418bd5
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x40959b
mov dword [ebp - 0xc], 0x41a140
jmp 0x409621
mov dword [esp + 4], 0x200
mov dword [esp], 0x41a140
call sub.KERNEL32.dll_GetWindowsDirectoryA
sub esp, 8
mov dword [esp + 8], 0x200
mov dword [esp + 4], str.AppData
mov dword [esp], 0x41a140
call sub.msvcrt.dll_strncat
mov dword [esp], 0x41a140
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
jne 0x40961a
mov dword [esp + 4], 0
mov dword [esp], 0x41a140
call sub.KERNEL32.dll_CreateDirectoryA
sub esp, 8
test eax, eax
jne 0x40961a
mov dword [esp + 4], 0x41a140
mov dword [esp], str.couldnt_make_directory__s_n
call sub.msvcrt.dll_printf
mov dword [ebp - 0xc], 0
jmp 0x409621
mov dword [ebp - 0xc], 0x41a140
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x409626
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
call fcn.00409510
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4096e2
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str._sMikrotik
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
jne 0x40968d
mov dword [esp + 4], 0
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateDirectoryA
sub esp, 8
lea eax, [ebp - 0x218]
mov dword [esp + 8], eax
mov dword [esp + 4], str._sWinbox
mov dword [esp], 0x41a340
call sub.msvcrt.dll_sprintf
mov dword [esp], 0x41a340
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
jne 0x4096d6
mov dword [esp + 4], 0
mov dword [esp], 0x41a340
call sub.KERNEL32.dll_CreateDirectoryA
sub esp, 8
mov dword [ebp - 0x21c], 0x41a340
jmp 0x4096ec
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x21c]
leave
ret
Function at 0x4096f4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call fcn.00409626
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409765
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s__u
mov dword [esp], 0x41a540
call sub.msvcrt.dll_sprintf
mov dword [esp], 0x41a540
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
jne 0x40975c
mov dword [esp + 4], 0
mov dword [esp], 0x41a540
call sub.KERNEL32.dll_CreateDirectoryA
sub esp, 8
mov dword [ebp - 8], 0x41a540
jmp 0x40976c
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
leave
ret

Function at 0x409772
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x248]
mov dword [esp + 4], eax
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x40985b
cmp byte [ebp - 0x21c], 0x2e
jne 0x4097d1
jmp 0x409837
lea eax, [ebp - 0x248]
add eax, 0x2c
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
shr eax, 4
and eax, 1
test al, al
je 0x409826
lea eax, [ebp - 0x108]
mov dword [esp], eax
call fcn.00409772
jmp 0x409837
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
lea eax, [ebp - 0x248]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24c]
mov dword [esp], eax
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
test eax, eax
je 0x40985b
jmp 0x4097c6
leave
ret
Function at 0x40a3f8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp + 4], 0xcb
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413094
mov dword [esp + 4], str.Starting_WinBox...
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004130bc
mov dword [esp + 4], 0x418d07
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xce
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413094
mov dword [esp + 4], 0x418d17
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xcd
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413094
mov dword [esp + 4], 0x418d17
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xcf
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413094
mov dword [esp + 4], 0x418d17
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xd0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413094
mov dword [esp + 4], 0x418d17
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xcc
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413094
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
leave
ret
Function at 0x40b1bc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x4a4
lea eax, [ebp - 0x448]
mov dword [esp], eax
call fcn.004131ac
mov dword [ebp - 0x44c], eax
mov dword [esp + 4], 4
lea eax, [ebp - 0x448]
mov dword [esp], eax
call fcn.004131c4
mov eax, dword [ebp - 0x44c]
mov dword [eax], 0
mov dword [esp + 4], 6
lea eax, [ebp - 0x448]
mov dword [esp], eax
call fcn.0040a94a
mov word [ebp - 0x468], 2
mov dword [esp], 0x162e
call sub.WS2_32.DLL_htons
sub esp, 4
mov word [ebp - 0x466], ax
mov dword [ebp - 0x464], 0xffffffff
lea eax, [ebp - 0x448]
mov dword [esp], eax
call fcn.004131b4
mov ebx, eax
lea eax, [ebp - 0x448]
mov dword [esp], eax
call fcn.004131a4
mov edx, eax
mov dword [esp + 0x14], 0x10
lea eax, [ebp - 0x468]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.WS2_32.DLL_sendto
sub esp, 0x18
test eax, eax
jg 0x40b29e
mov dword [esp], str.sendto
call sub.msvcrt.dll_perror
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0xffffffff
je 0x40b36d
mov word [ebp - 0x488], 0x17
mov dword [esp], 0x162e
call sub.WS2_32.DLL_htons
sub esp, 4
mov word [ebp - 0x486], ax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x488]
add eax, 8
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov byte [ebp - 0x480], 0xff
mov byte [ebp - 0x47f], 2
mov byte [ebp - 0x471], 1
mov dword [ebp - 0x470], 0
lea eax, [ebp - 0x448]
mov dword [esp], eax
call fcn.004131b4
mov ebx, eax
lea eax, [ebp - 0x448]
mov dword [esp], eax
call fcn.004131a4
mov edx, eax
mov dword [esp + 0x14], 0x1c
lea eax, [ebp - 0x488]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.WS2_32.DLL_sendto
sub esp, 0x18
test eax, eax
jg 0x40b36d
mov dword [esp], str.sendto6
call sub.msvcrt.dll_perror
mov eax, dword [ebp + 8]
inc dword [eax + 0x20]
cmp dword [eax + 0x20], 2
ja 0x40b3b8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0x40b3df
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004130bc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x64
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.USER32.dll_SetTimer
sub esp, 0x10
mov dword [ebx + 0x1c], eax
jmp 0x40b3df
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
je 0x40b3df
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004130bc
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.USER32.dll_KillTimer
sub esp, 8
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x11cd6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
jne 0x11d10
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0x4550
je 0x11d14
xor eax, eax
jmp 0x11d8f
mov eax, dword [ebp - 0xc]
add eax, 0xf8
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
jmp 0x11d31
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
xor eax, eax
mov ax, word [edx + 6]
cmp dword [ebp - 0x10], eax
jae 0x11d8d
push 0xb2d5dcd0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00012160
and eax, 0xff
test eax, eax
je 0x11d82
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
xor edx, edx
mov ecx, 0x1000
div ecx
mov eax, 0x1000
sub eax, edx
cmp eax, dword [ebp + 0xc]
jbe 0x11d82
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [ecx + 0xc]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
jmp 0x11d8f
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x11d28
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x11da0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x11dc3
xor eax, eax
jmp 0x11e6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0x4550
je 0x11de1
xor eax, eax
jmp 0x11e6b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0
jmp 0x11e23
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 0x18]
jae 0x11e69
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00012160
and eax, 0xff
cmp eax, 1
jne 0x11e67
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x11e6b
jmp 0x11e1a
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x36d858eb
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x30a0d86
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4029f4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403fdc
test esi, esi
jne 0x402a2a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040cc
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403194
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403174
xor eax, eax
push ebp
push 0x40316d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4031b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403174
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45d020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45d020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45f04c], 0
je 0x403ec1
cmp word [0x45f220], 0xd7b2
jne 0x403e89
cmp dword [0x45f228], 0
jbe 0x403e89
mov eax, 0x45f21c
call dword [0x45f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45d06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403ee8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45d030], 0
jne 0x403edd
push 0
push 0x45d064
push 0x45d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405de8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405e4e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040424c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cc0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e38
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e55
lea eax, [ebp - 0x10]
call fcn.00403fdc
ret

Function at 0x4085e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040449c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4085fd
test al, 0x10
jne 0x408601
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b1b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b1f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040cc
jmp 0x40b1fa
mov eax, ebx
mov edx, esi
call fcn.00404030
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b204
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b225
mov al, byte [esp]
jmp 0x40b227
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b8ac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b724
mov eax, dword [0x45e0f8]
cmp byte [eax], 0
je 0x40b928
mov eax, dword [0x45def0]
call fcn.00402b2c
call fcn.00402834
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004089e4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b970
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b95e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45de9c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45f668]
call fcn.004052fc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c20c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c2e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404074
lea eax, [ebp - 8]
call fcn.004044ec
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040449c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c2cc
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c2c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040449c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c2af
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c2f4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c2af
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2cc
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2e9
lea eax, [ebp - 8]
call fcn.00403fdc
ret

Function at 0x40c858
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c8bc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040424c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004082bc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8c3
lea eax, [ebp - 0xc]
call fcn.00403fdc
ret

Function at 0x41db4c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45f888
cmp dword [edi], 0
jne 0x41dbc8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45f884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45d3fc
mov ecx, 2
call fcn.004028c8
mov edx, 0x41db24
lea eax, [esi + 5]
call fcn.0041db44
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041db44
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41db9d
mov dword [0x45f884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f144
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f14a
ret
Function at 0x4217c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x421811
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4217f8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4217e8
jmp 0x421811
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4217f9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e900
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0042e5c8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040449c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42e95e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45e014]
mov dl, 1
mov eax, dword [0x42e4c0]
call fcn.0040ba6c
call fcn.00403a18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42e968
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040449c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42e9c0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45e21c]
mov dl, 1
mov eax, dword [0x42e4c0]
call fcn.0040ba6c
call fcn.00403a18
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042e5f8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4312c0
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x43120c
call sub.user32.dll_EnumWindows
ret

Function at 0x4313e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x43145d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00430e40
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x431405
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00430a40
cmp dword [ebp - 4], 0
je 0x431447
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0040449c
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431464
lea eax, [ebp - 4]
call fcn.00403fdc
ret