joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478aa0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x478c04
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00478a70
xor eax, eax
push ebp
push 0x478be2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x478b0a
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x478b0a
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x478bcc
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x478b1d
call fcn.00403740
jmp 0x478be9
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x478bcc
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x478bcc
lea eax, [ebp - 0x14]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00403190
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x14], 0
je 0x478bcc
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0040b690
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, 0x478c1c
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x2c]
push eax
push 2
lea edx, [ebp - 0x34]
mov eax, dword [0x4b7238]
call fcn.00405e7c
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x478a14]
call fcn.0040beb8
call fcn.004036a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478be9
mov eax, dword [ebp - 4]
call fcn.00478a88
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478c0b
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00403bcc
ret

Function at 0x48ed33
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4b6b4e
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48ed8b
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4b6b6f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x48ed81
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x48ed8f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403fe8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret
Function at 0x4b21fc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fd8
mov eax, dword [ebp - 8]
call fcn.00403fd8
mov eax, dword [ebp - 0xc]
call fcn.00403fd8
xor eax, eax
push ebp
push 0x4b22cb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x4b22e4
call fcn.00403e2c
lea eax, [ebp - 8]
mov edx, 0x4b22e4
call fcn.00403e2c
lea eax, [ebp - 0xc]
mov edx, 0x4b22e4
call fcn.00403e2c
mov bl, 1
push 1
lea eax, [ebp - 0xc]
call fcn.00403ff4
push eax
lea eax, [ebp - 8]
call fcn.00403ff4
push eax
lea eax, [ebp - 4]
call fcn.00403ff4
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x4b22b0
xor ebx, ebx
push 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x4b22f0
call fcn.00403e70
mov eax, dword [ebp - 0x10]
mov cx, word [0x4b2304]
mov dl, 1
call fcn.00456a60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b22d2
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403bcc
ret
Function at 0x401060
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40406f], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.sanander
push str.crashes
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4010a8
xor eax, eax
jmp 0x4010c3
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4021b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push str.sanander
push str.crashes
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4021ec
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4021ec
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebp - 0xbc], eax
mov edx, dword [ebp + 8]
push edx
call fcn.00402630
add esp, 4
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401060
add esp, 8
test eax, eax
jne 0x40221e
xor eax, eax
jmp 0x402257
push 0
push 0
push 0
lea edx, [ebp - 0xb8]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x402251
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0xb8]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40221e
mov eax, dword [ebp - 0xb0]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4056c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0x9ff3
jae 0x405705
push 0x3e8
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x405742
cmp dword [ebp + 8], 0x1000
jae 0x405742
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp + 8], 0x9ff3
jae 0x405742
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x2c], 8
mov dword [ebp - 8], 5
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp dword [ebp - 8], 5
jne 0x40579d
mov dword [ebp - 0x18], 0xc0000000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x50], eax
push 0x14
push 0
lea edx, [ebp - 0x4c]
push edx
call fcn.004058e0
add esp, 0xc
mov eax, dword [ebp - 0x18]
add eax, 0xa1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x34]
mov dword [edx + 0x214], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0xd2
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
je 0x4057d6
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
call fcn.0040100d
add esp, 0xc
mov dword [ebp - 0x24], 8
cmp dword [ebp - 0x10], 0
je 0x4057ea
mov dword [ebp - 0x10], 0
mov esp, ebp
pop ebp
ret
Function at 0x406675
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40e160
cmp edx, dword [eax]
je 0x406697
add eax, 8
inc ecx
cmp eax, 0x40e1f0
jl 0x406688
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40e160]
jne 0x4067c5
mov eax, dword [0x40e670]
cmp eax, 1
je 0x40679f
test eax, eax
jne 0x4066c8
cmp dword [0x40e0b4], 1
je 0x40679f
cmp edx, 0xfc
je 0x4067c5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4066ff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405940
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406c90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406742
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406c90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d470
push edi
call fcn.00407920
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405940
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405950
lea eax, [ebp - 0xa0]
push 0x40d450
push eax
call fcn.00405950
push dword [esi + 0x40e164]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405950
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040788e
add esp, 0x2c
pop edi
jmp 0x4067c5
lea eax, [ebp + 8]
lea esi, [esi + 0x40e164]
push 0
push eax
push dword [esi]
call fcn.00406c90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001d00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x14c
mov edx, dword [esi + 0x3c]
lea eax, [esi + 0x88]
add eax, edx
lea ecx, [esi + 0x78]
add ecx, edx
cmp word [edx + esi + 4], di
cmovne ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x10001e35
cmp dword [ebp + 0x10], 0
lea ecx, [eax + esi]
mov dword [ebp - 8], ecx
ja 0x10001d7c
mov eax, dword [ebp + 0xc]
jb 0x10001d4b
cmp eax, 0xffff
ja 0x10001d7c
movzx edx, ax
xor eax, eax
sub edx, dword [ecx + 0x10]
sbb eax, eax
test eax, eax
ja 0x10001e35
jb 0x10001d68
cmp edx, dword [ecx + 0x14]
jae 0x10001e35
mov eax, dword [ecx + 0x1c]
pop edi
lea eax, [eax + edx*4]
mov eax, dword [eax + esi]
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x20]
add eax, esi
mov dword [ebp - 0x14], eax
add edx, esi
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
cmp dword [ecx + 0x18], eax
jbe 0x10001e35
nop word [eax + eax]
mov ebx, dword [edx + eax*4]
add ebx, esi
mov esi, ebx
mov dword [ebp - 0xc], ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10001db0
sub esi, ecx
call fcn.10002740
push 0xeeeeeeee
push 0x7fed7fed
mov edi, eax
push edi
push 1
push esi
push ebx
call fcn.10002670
push 0xeeeeeeee
push 0x7fed7fed
push edi
push 2
push esi
push dword [ebp - 0xc]
mov ebx, eax
call fcn.10002670
xor ecx, ecx
or ecx, ebx
cmp dword [ebp + 0xc], eax
jne 0x10001dfa
cmp dword [ebp + 0x10], ecx
je 0x10001e11
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ecx + 0x18]
jae 0x10001e35
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
jmp 0x10001da0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
movzx ecx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx]
add eax, ecx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10002670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100026ca
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
nop word [eax + eax]
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0x14]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002690
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
Function at 0x403298
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4032f1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00403134
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00403134
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x4032db
inc ebx
jmp 0x4032c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4032f8
lea eax, [ebp - 8]
call fcn.00404b14
ret

Function at 0x403300
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b14
test esi, esi
jne 0x403337
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404c04
jmp 0x403358
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00403134
mov dword [esp], eax
test esi, esi
je 0x403358
cmp dword [ebx], 0
je 0x403358
dec esi
jmp 0x40333f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403b5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x53a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403bf4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403bd4
xor eax, eax
push ebp
push 0x403bcd
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 0x403c10
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 0x403bd4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x53a020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x53a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404968
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x54304c], 0
je 0x4049c9
cmp word [0x543220], 0xd7b2
jne 0x404991
cmp dword [0x543228], 0
jbe 0x404991
mov eax, 0x54321c
call dword [0x543238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x53a06c
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 0x4049f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x53a030], 0
jne 0x4049e5
push 0
push 0x53a064
push 0x53a06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407204
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 0x40726a
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.00404d84
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403698
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x407254
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407271
lea eax, [ebp - 0x10]
call fcn.00404b14
ret

Function at 0x40f678
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 0x40f6b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c04
jmp 0x40f6ba
mov eax, ebx
mov edx, esi
call fcn.00404b68
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f6c4
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 0x40f6e5
mov al, byte [esp]
jmp 0x40f6e7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410714
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 0x4107ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404bac
lea eax, [ebp - 8]
call fcn.00405024
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404fd4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4107d4
mov eax, ebx
call fcn.00402e6c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4107cd
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.00404fd4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4107b7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4107fc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4107b7
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 0x4107d4
mov eax, dword [ebp - 0x10]
call fcn.00402e9c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4107f1
lea eax, [ebp - 8]
call fcn.00404b14
ret
Function at 0x410d9c
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 0x410e00
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.00404d84
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040ba10
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410e07
lea eax, [ebp - 0xc]
call fcn.00404b14
ret

Function at 0x411728
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x54230c]
cmp dword [eax], 0
je 0x41175e
push 0xa
push 0x4117b4
mov eax, dword [0x54230c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x54230c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x4117aa
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x5429a0]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x4117aa
mov ebx, dword [esp + 4]
push 0xa
push 0x4117b4
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x4117aa
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x411775
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x422d83
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push dword [0x53bf04]
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push dword [0x53bf28]
mov ebx, eax
xor edi, edi
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.kernel32.dll_LocalAlloc]
push dword [0x53bf30]
mov ebp, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
push ebx
call ebp
push 0x104
push esi
push edi
call eax
push esi
call fcn.00422d3b
mov esi, dword [0x53bf1c]
mov ebx, eax
pop ecx
cmp dword [esi], edi
je 0x422ded
push ebx
call fcn.00422d64
pop ecx
cmp eax, dword [esi + 4]
je 0x422ded
cmp eax, dword [esi + 8]
jne 0x422eb1
push dword [0x53bee8]
add ebx, 0x20a
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push dword [0x53bf00]
mov esi, eax
push esi
call ebp
push dword [0x53bf54]
mov edi, eax
push esi
call ebp
push dword [0x53bf44]
mov edi, 0x44890053
and al, 0x18
Function at 0x42a014
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x545aac
cmp dword [edi], 0
jne 0x42a090
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x545aa8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x53ace4
mov ecx, 2
call fcn.004030f4
mov edx, 0x429fec
lea eax, [esi + 5]
call fcn.0042a00c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042a00c
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 0x42a065
mov dword [0x545aa8], 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 0x42a368
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
jne 0x42a37c
xor eax, eax
mov dword [esi], eax
jmp 0x42a3cf
cmp dword [esi + 4], 0
jne 0x42a3cc
mov eax, ebx
call fcn.0042a304
mov ebx, eax
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0x42a3cc
mov dword [esi], ebx
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
mov byte [ebx], 0xe9
sub edi, ebx
sub edi, 5
mov dword [ebx + 1], edi
push esp
mov eax, dword [esp + 4]
push eax
push 6
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
inc dword [esi + 4]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42fca8
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 0x42fcae
ret

Function at 0x4323f0
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 0x432441
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x432428
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x432418
jmp 0x432441
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 0x432429
pop ebx
mov esp, ebp
pop ebp
ret