joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f20
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x41367c]
sub esp, 0x190
test eax, eax
jle 0x403f3e
inc eax
mov dword [0x41367c], eax
xor eax, eax
add esp, 0x190
ret
jl 0x403f9b
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403f63
or eax, 0xffffffff
mov dword [0x41367c], eax
add esp, 0x190
ret
mov ax, word [esp]
cmp al, 1
jne 0x403f86
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x403f86
mov eax, dword [0x41367c]
inc eax
mov dword [0x41367c], eax
add esp, 0x190
ret
mov dword [0x41367c], 0xfffffffe
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [0x41367c]
add esp, 0x190
ret

Function at 0x403fd0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
xor edi, edi
cmp eax, 0xffffffff
jne 0x404002
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
jne 0x403ffb
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], eax
push edx
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
push edi
push 1
push 2
mov word [esp + 0x16], ax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40403f
pop edi
or eax, eax
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x24]
cmp eax, edi
jle 0x404079
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 4
push eax
push 0x1005
push 0xffff
push esi
call edi
lea ecx, [esp + 0x1c]
push 4
push ecx
push 0x1006
push 0xffff
push esi
call edi
lea edx, [esp + 8]
push 0x10
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40409c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4040b0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x20
push esi
push edi
push 6
push 1
push 2
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4040d8
pop edi
or eax, eax
pop esi
add esp, 0x20
ret
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0xffff
push esi
call edi
test eax, eax
jge 0x404103
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x20
ret
lea ecx, [esp + 8]
push 4
push ecx
push 8
push 0xffff
push esi
call edi
test eax, eax
jge 0x404128
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x20
ret
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ecx
push ecx
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], edx
mov eax, 0x2710
push ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
push 0xc
push edx
lea eax, [esp + 0x24]
push 0xc
push eax
push 0x98000004
push esi
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x404187
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x2c]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4041aa
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x20
ret
mov edx, dword [esp + 0x30]
push edx
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4041cb
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x20
ret
mov eax, esi
pop edi
pop esi
add esp, 0x20
ret

Function at 0x404620
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
xor edi, edi
mov ecx, dword [esp + 0x14]
mov esi, ebx
sub esi, edi
push 0
lea eax, [edi + ebp]
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x404652
cmp eax, esi
je 0x404659
jge 0x404660
add edi, eax
jmp 0x40462e
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x404670
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
xor esi, esi
push edi
test ebx, ebx
jbe 0x4046bb
mov ebp, dword [esp + 0x18]
mov edi, ebx
sub edi, esi
cmp edi, 0xffd7
jbe 0x404693
mov edi, 0xffd7
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esi + ebp]
push edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, edi
jne 0x4046c2
add esi, eax
cmp esi, ebx
jae 0x4046bb
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, esi
ja 0x404682
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x404930
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x20]
push edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
xor edi, edi
mov dword [esp + 0x10], edx
lea eax, [esp + 8]
mov ecx, 3
cmp dword [eax], 0
je 0x404960
inc edi
add eax, 4
dec ecx
jne 0x40495a
mov eax, dword [esi + 0xec]
test eax, eax
jne 0x404982
lea eax, [esi + 4]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0xec], eax
mov eax, dword [esi + 0xec]
test eax, eax
je 0x4049ab
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 8]
push 0
push ecx
mov ecx, dword [esp + 0x20]
push 0
push edi
push 0
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
pop edi
pop esi
add esp, 0xc
ret 0x14
Function at 0x404cc0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x44
push ebx
push ebp
push 0xf003f
mov ebx, ecx
push 0
push 0
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x404cea
pop ebp
pop ebx
add esp, 0x44
ret
push esi
push edi
lea edi, [ebx + 4]
push 0xf01ff
push edi
push ebp
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x404d98
lea eax, [esp + 0x38]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x404d61
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebp
test eax, eax
je 0x404d59
cmp dword [esp + 0x20], 3
jne 0x404d59
push 0x3e8
call ebx
lea edx, [esp + 0x1c]
push edx
push esi
call ebp
test eax, eax
jne 0x404d3f
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0
push 0
test eax, eax
push edi
je 0x404d86
push 0x65
push 4
mov ecx, ebx
call fcn.00404930
mov dword [esp + 0x10], 1
jmp 0x404d91
push 0x66
push 1
mov ecx, ebx
call fcn.00404930
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret

Function at 0x405920
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push 0
push ecx
push 0x404fe0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x405946
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x405990
Capabilities:
Execute command

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 4]
test al, 1
je 0x4059a9
mov ecx, dword [0x413568]
mov eax, dword [ecx]
call dword [eax + 0x30]
jmp 0x4059c1
test al, 2
je 0x4059c1
mov eax, dword [esi + 8]
test eax, eax
jbe 0x4059c1
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_system]
add esp, 4
test byte [esi + 4], 0xc
je 0x405a77
mov ecx, dword [0x413568]
lea eax, [esi + 0x614]
push eax
mov eax, dword [esi + 0x610]
mov edx, dword [ecx]
push eax
call dword [edx + 0x3c]
test eax, eax
jne 0x405a07
mov ecx, dword [0x412320]
push ecx
push 6
push str._d_0:_s
call fcn.00402220
add esp, 0xc
mov eax, 6
pop esi
ret 4
test byte [esi + 4], 4
je 0x405a3c
mov eax, dword [esi + 8]
mov ecx, dword [0x413568]
push eax
lea eax, [esi + 0xc]
mov edx, dword [ecx]
push eax
push 2
call dword [edx + 0x34]
test eax, eax
jne 0x405a3c
mov ecx, dword [0x412320]
push ecx
push 6
push str._d_1:_s
call fcn.00402220
add esp, 0xc
test byte [esi + 4], 8
je 0x405a77
mov ecx, dword [0x413568]
mov eax, dword [esi + 0x50c]
add esi, 0x510
push eax
mov edx, dword [ecx]
push esi
push 3
call dword [edx + 0x34]
test eax, eax
jne 0x405a77
mov ecx, dword [0x412320]
push ecx
push 6
push str._d_2:_s
call fcn.00402220
add esp, 0xc
xor eax, eax
pop esi
ret 4
Function at 0x40a3f0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push ebp
push esi
lea ebp, [ecx - 2]
xor esi, esi
push edi
mov edi, dword [esp + 0x14]
test ebp, ebp
jle 0x40a472
push ebx
xor edx, edx
xor ebx, ebx
mov dl, byte [edi + esi]
add esi, 3
shr edx, 2
inc eax
mov dl, byte [edx + str.AoCrE3GHIJKLMNOPQRSTUVWXYZab8defghij7lmnBpqDstuvwyz012F456kc9.]
mov byte [eax - 1], dl
mov dl, byte [edi + esi - 3]
mov bl, byte [edi + esi - 2]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
xor ebx, ebx
inc eax
mov dl, byte [edx + str.AoCrE3GHIJKLMNOPQRSTUVWXYZab8defghij7lmnBpqDstuvwyz012F456kc9.]
mov byte [eax - 1], dl
mov dl, byte [edi + esi - 2]
mov bl, byte [edi + esi - 1]
and edx, 0xf
shl edx, 2
shr ebx, 6
or edx, ebx
inc eax
mov dl, byte [edx + str.AoCrE3GHIJKLMNOPQRSTUVWXYZab8defghij7lmnBpqDstuvwyz012F456kc9.]
mov byte [eax - 1], dl
mov dl, byte [edi + esi - 1]
and edx, 0x3f
inc eax
cmp esi, ebp
mov dl, byte [edx + str.AoCrE3GHIJKLMNOPQRSTUVWXYZab8defghij7lmnBpqDstuvwyz012F456kc9.]
mov byte [eax - 1], dl
jl 0x40a409
pop ebx
cmp esi, ecx
jge 0x40a4ed
xor edx, edx
mov dl, byte [esi + edi]
shr edx, 2
inc eax
dec ecx
mov dl, byte [edx + str.AoCrE3GHIJKLMNOPQRSTUVWXYZab8defghij7lmnBpqDstuvwyz012F456kc9.]
cmp esi, ecx
mov byte [eax - 1], dl
jne 0x40a4b6
mov cl, byte [esi + edi]
pop edi
and ecx, 3
pop esi
shl ecx, 4
inc eax
pop ebp
mov dl, byte [ecx + str.AoCrE3GHIJKLMNOPQRSTUVWXYZab8defghij7lmnBpqDstuvwyz012F456kc9.]
mov byte [eax - 1], dl
mov edx, dword [esp + 4]
mov byte [eax], 0x3d
inc eax
mov byte [eax], 0x3d
inc eax
mov byte [eax], 0
sub eax, edx
inc eax
ret
mov cl, byte [esi + edi]
lea ebp, [esi + edi + 1]
xor edx, edx
and ecx, 3
mov dl, byte [ebp]
shl ecx, 4
shr edx, 4
or ecx, edx
inc eax
mov cl, byte [ecx + str.AoCrE3GHIJKLMNOPQRSTUVWXYZab8defghij7lmnBpqDstuvwyz012F456kc9.]
mov byte [eax - 1], cl
mov dl, byte [ebp]
and edx, 0xf
inc eax
inc eax
mov cl, byte [edx*4 + str.AoCrE3GHIJKLMNOPQRSTUVWXYZab8defghij7lmnBpqDstuvwyz012F456kc9.]
mov byte [eax - 2], cl
mov byte [eax - 1], 0x3d
mov edx, dword [esp + 0x10]
mov byte [eax], 0
sub eax, edx
pop edi
pop esi
inc eax
pop ebp
ret
Function at 0x40d8af
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410d30
push 0x40d9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4136e8], 0xffffffff
or dword [0x4136ec], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4136e4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4136e0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4136f0], eax
call fcn.0040d9e7
cmp dword [0x413020], 0
jne 0x40d932
push 0x40d9e4
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040d9d2
push 0x41200c
push 0x412008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4136dc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4136d8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x412004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00403de0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x402a3c
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.00404144
test esi, esi
jne 0x402a72
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.00404234
jmp 0x402a90
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402950
mov edi, eax
test esi, esi
je 0x402a90
cmp dword [ebx], 0
je 0x402a90
dec esi
jmp 0x402a79
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x46e008], 0x8088405
inc edx
mov dword [ebx + 0x46e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4031e8
Capabilities:
Query or enumerate registry value

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

Function at 0x403f44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x470048], 0
je 0x403fa5
cmp word [0x47021c], 0xd7b2
jne 0x403f6d
cmp dword [0x470224], 0
jbe 0x403f6d
mov eax, 0x470218
call dword [0x470234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46e070
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 0x403fcc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e034], 0
jne 0x403fc1
push 0
push 0x46e068
push 0x46e070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4040f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x470049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4040c0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405d48
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 0x405dae
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.004043b4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402dac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d98
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405db5
lea eax, [ebp - 0x10]
call fcn.00404144
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404604
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4086cd
test al, 0x10
jne 0x4086d1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b57c
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 0x40b5b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404234
jmp 0x40b5be
mov eax, ebx
mov edx, esi
call fcn.00404198
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bc70
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bae8
mov eax, dword [0x46f268]
cmp byte [eax], 0
je 0x40bcec
mov eax, dword [0x46f068]
call fcn.00402bc0
call fcn.0040287c
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.00408a90
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 0x40bd34
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bd22
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46f018]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x470664]
call fcn.0040525c
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 0x40c588
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 0x40c65e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004041dc
lea eax, [ebp - 8]
call fcn.00404654
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404604
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c648
mov eax, ebx
call fcn.004026dc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c641
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.00404604
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c62b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c670
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c62b
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 0x40c648
mov eax, dword [ebp - 0x10]
call fcn.004026fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c665
lea eax, [ebp - 8]
call fcn.00404144
ret

Function at 0x40cc18
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 0x40cc7c
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.004043b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408328
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc83
lea eax, [ebp - 0xc]
call fcn.00404144
ret

Function at 0x41a234
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041a08c
dec esi
jne 0x41a256
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41b398
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x470888
cmp dword [edi], 0
jne 0x41b414
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x470884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46e3f0
mov ecx, 2
call fcn.00402910
mov edx, 0x41b370
lea eax, [esi + 5]
call fcn.0041b390
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b390
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 0x41b3e9
mov dword [0x470884], 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 0x41c8b0
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 0x41c8b6
ret

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