joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dcce8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a00
mov eax, dword [ebp - 8]
call fcn.00404a00
xor eax, eax
push ebp
push 0x4dcdd5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4dcde8
push dword [ebp - 4]
push 0x4dcde8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048d0
cmp dword [ebp - 8], 0
je 0x4dcd57
push dword [ebp - 0xc]
push 0x4dcdf4
push dword [ebp - 8]
push 0x4dcde8
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004048d0
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00402ffc
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 0xa
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 4]
call fcn.00409b08
mov eax, dword [ebp - 0x64]
call fcn.00404a10
push eax
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404a10
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dcddc
lea eax, [ebp - 0x64]
call fcn.00404550
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404574
ret

Function at 0x4df4f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a00
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4df664
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004a94b4
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004a94d4
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4df636
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004047c0
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409b3c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408c74
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408c74
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.0040495c
je 0x4df610
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004047c0
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408c74
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408c74
mov edx, dword [ebp - 0x148]
pop eax
call fcn.0040495c
jne 0x4df627
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004a94f4
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4df571
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df66b
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404574
lea eax, [ebp - 4]
call fcn.00404550
ret
Function at 0x4df674
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a00
xor eax, eax
push ebp
push 0x4df7d5
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4df7a1
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x4df789
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404a10
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x4df77d
sub edi, 1
jb 0x4df6e9
je 0x4df733
jmp 0x4df777
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x4df777
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4df777
jmp 0x4df72b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4df777
cmp dword [ebp - 0x14], 0
jne 0x4df777
cmp dword [ebp - 0x24], 4
jne 0x4df70e
jmp 0x4df777
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x4df777
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4df777
jmp 0x4df771
push 0xbb8
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4df777
cmp dword [ebp - 0x14], 0
jne 0x4df777
cmp dword [ebp - 0x24], 1
jne 0x4df753
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 5], 1
jmp 0x4df797
mov eax, 0x4df7f0
call fcn.004348b0
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4df7bf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df7dc
lea eax, [ebp - 4]
call fcn.00404550
ret

Function at 0x4e1394
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffe30
mov ebp, eax
lea eax, [esp + 0x40]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, ebp
call fcn.00404550
push 0x40
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
push esp
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4e13ee
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4e13e2
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, ebp
call fcn.00409ee0
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4e13d3
call sub.wsock32.dll_WSACleanup
add esp, 0x1d0
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4e2388
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
mov eax, ebx
call fcn.00404550
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov edx, ebx
lea eax, [esp + 4]
call fcn.00409ee0
add esp, 0x18
pop ebx
ret
Function at 0x492110
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49213d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49213d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x100186e
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1001d98
call fcn.01001a14
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1003380
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001683
cmp eax, esi
jne 0x1001676
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001686
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100165d
xor esi, esi
inc esi
mov eax, dword [0x100337c]
cmp eax, esi
jne 0x1001699
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10016d4
mov eax, dword [0x100337c]
test eax, eax
jne 0x10016ce
mov dword [0x100337c], esi
push 0x10010dc
push 0x10010d0
call fcn.010015da
pop ecx
pop ecx
test eax, eax
je 0x10016d4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100179e
mov dword [0x1003040], esi
mov eax, dword [0x100337c]
cmp eax, esi
jne 0x10016f8
push 0x10010cc
push 0x10010c4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100337c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001705
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1003384], ebx
je 0x1001726
push 0x1003384
call fcn.01001989
pop ecx
test eax, eax
je 0x1001726
push ebx
push 2
push ebx
call dword [0x1003384]
push dword [0x1003028]
push dword [0x100302c]
push dword [0x1003024]
call fcn.010012b5
add esp, 0xc
mov dword [0x100303c], eax
cmp dword [0x1003030], ebx
jne 0x1001784
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 - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1003040], ebx
jne 0x1001792
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100303c]
call fcn.01001a59
ret
call fcn.01001b61
jmp 0x100163b

Function at 0x1001d0d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x102
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push 0x80000002
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1001d61
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push dword [ebp + 0xc]
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
jne 0x1001d61
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
pop ebx
je 0x1001d70
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
leave
ret 0xc
Function at 0x4029e8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a25
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a45
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404600
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c7c
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.00404390
test esi, esi
jne 0x402cb2
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.00404480
jmp 0x402cd0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402b30
mov edi, eax
test esi, esi
je 0x402cd0
cmp dword [ebx], 0
je 0x402cd0
dec esi
jmp 0x402cb9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4033cc
Capabilities:
Query or enumerate registry value

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

Function at 0x404170
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52504c], 0
je 0x4041d1
cmp word [0x525220], 0xd7b2
jne 0x404199
cmp dword [0x525228], 0
jbe 0x404199
mov eax, 0x52521c
call dword [0x525238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x52006c
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 0x4041f8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x520030], 0
jne 0x4041ed
push 0
push 0x520064
push 0x52006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404344
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.004027d4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x52504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40430c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405a40
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ac3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ac3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405b4c
xor eax, eax
push ebp
push 0x405b45
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405888
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b2a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405cac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b2a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b4c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405c66
cmp byte [ebp - 0xd], 0
jne 0x405b93
cmp byte [ebp - 0x12], 0
je 0x405c66
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405bac
dec ebx
cmp byte [ebx], 0x2e
je 0x405bbb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405bab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405c66
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405bf8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405c66
cmp byte [ebp - 0xd], 0
je 0x405c66
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405c66
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406388
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 0x4063ee
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.00404600
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f84
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4063d8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063f5
lea eax, [ebp - 0x10]
call fcn.00404390
ret

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

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

Function at 0x40c2a4
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 0x40c2dd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404480
jmp 0x40c2e6
mov eax, ebx
mov edx, esi
call fcn.004043e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c998
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c810
mov eax, dword [0x523fbc]
cmp byte [eax], 0
je 0x40ca14
mov eax, dword [0x523b94]
call fcn.00402db4
call fcn.0040293c
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.004098f4
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 0x40ca5c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ca4a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x523ae8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x525668]
call fcn.0040584c
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 0x40d328
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 0x40d3fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404428
lea eax, [ebp - 8]
call fcn.004048a0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404850
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d3e8
mov eax, ebx
call fcn.004027d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d3e1
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.00404850
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d3cb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d410
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d3cb
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 0x40d3e8
mov eax, dword [ebp - 0x10]
call fcn.004027f4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d405
lea eax, [ebp - 8]
call fcn.00404390
ret

Function at 0x40daf4
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 0x40db58
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.00404600
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408f24
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db5f
lea eax, [ebp - 0xc]
call fcn.00404390
ret

Function at 0x423b24
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x423b71
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004238b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x423b89
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x423b90
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.004238b8
dec esi
jne 0x423bb2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x424cf4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x52588c
cmp dword [edi], 0
jne 0x424d70
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x525888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x520540
mov ecx, 2
call fcn.00402af0
mov edx, 0x424ccc
lea eax, [esi + 5]
call fcn.00424cec
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424cec
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 0x424d45
mov dword [0x525888], 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 0x42643c
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 0x426442
ret

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