joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405cfa
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
test esi, esi
je 0x405dbb
cmp dword [ebp + 8], 0
jne 0x405d1f
cmp dword [ebp + 0x10], 2
jg 0x405dbb
call fcn.00401269
push eax
lea ecx, [ebp - 4]
call fcn.00401ace
call fcn.00401269
push eax
lea ecx, [ebp + 0x14]
call fcn.00401ace
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.00404caf
test al, al
jne 0x405d61
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x405d41
jmp 0x405d85
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405c26
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x405da5
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x42b180
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401251
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00401251
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x4060cd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx], fcn.0040627b
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.00401269
push eax
lea ecx, [ebx + 0xc]
call fcn.00401ace
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.00401834
mov dword [ebx + 0x18], edi
call fcn.00401269
push eax
lea ecx, [ebx + 0x1c]
call fcn.00401ace
movzx eax, byte [0x430c89]
neg eax
sbb eax, eax
and eax, 0x430bb0
mov dword [ebp + 8], eax
je 0x4061a0
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00405fe0
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x40617c
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call edi
mov dword [ebx + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call edi
test eax, eax
setne al
jmp 0x406186
xor eax, eax
mov dword [ebx + 4], 0x989680
inc eax
mov byte [ebx + 0xb], al
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.004017e6
lea ecx, [esi - 0x10]
call fcn.00401251
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x4061f8
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x406279
mov byte [esi + 8], 1
call fcn.004062a7
cmp dword [esi + 0x10], 0
je 0x406279
test al, al
je 0x406218
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.004068d3
test al, al
jne 0x40623f
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00406f9c
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.0040636c
cmp dword [esi + 0x18], 0
jne 0x406266
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00406f9c
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x406279
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x40636c
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea edx, [ebp - 0x8c]
push esi
xor eax, eax
mov dword [ebp - 0x94], ebx
push edi
lea esi, [ebx + 0x14]
mov dword [ebp - 0x98], eax
mov ecx, dword [esi]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x9c], esi
call fcn.00404faf
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebx + 4]
jbe 0x4063c0
mov ecx, ebx
call fcn.00406596
xor eax, eax
cmp byte [ebx + 0xa], al
setne al
xor ecx, ecx
push ecx
push 0x80
lea eax, [eax*2 + 2]
push eax
push ecx
push 3
push 0x40000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x18], eax
cmp eax, 0xffffffff
jne 0x4063f9
xor edi, edi
xor al, al
mov dword [ebx + 0x18], edi
jmp 0x406461
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.00406cdd
mov esi, dword [ebp - 0x8c]
lea edi, [ebp - 0x28]
push 9
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x406470
call fcn.00406dbf
push dword [ebx + 0x14]
push dword [ebx + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.00406f9c
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], edi
lea ecx, [esi - 0x10]
call fcn.00401251
mov al, byte [ebp - 0x98]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409fc1
leave
ret
mov eax, dword [ebp - 0x28]
shr eax, 0xa
and al, 1
jne 0x40642d
mov ecx, dword [ebx + 0x18]
call fcn.00405031
test al, al
jne 0x40642d
lea ecx, [ebp - 0xbc]
call fcn.004030a8
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x88]
push 0x42a804
push eax
call fcn.00402c08
add esp, 0x10
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0xbc]
push 0xc0010000
push eax
call fcn.00403125
lea ecx, [ebp - 0x88]
mov bl, al
call fcn.00402cf1
test bl, bl
je 0x4064ed
push ecx
lea eax, [ebp - 0xbc]
push eax
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax]
call fcn.004039a4
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406526
mov eax, dword [ebp - 0x94]
cmp byte [eax + 0xb], 0
je 0x406526
xor ecx, ecx
push ecx
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x94]
push ecx
push 2
push 0x42a558
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x98], 1
call fcn.004030ee
jmp 0x406453
Function at 0x40653d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x40656d
xor al, al
jmp 0x406591
cmp byte [esi + 0xb], bl
je 0x406588
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x42a558
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406615
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x74], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40673d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push 0x42ab88
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x40673d
cmp dword [ebp - 0x78], esi
jne 0x40673d
push dword [ebp - 0x6c]
call fcn.0041a85d
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.0040ab40
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push 0x42ab88
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x40672e
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x40672e
cmp word [esi + edi*2 - 4], bx
jne 0x40672e
cmp word [esi + edi*2 - 2], bx
jne 0x40672e
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, str.___
push eax
call fcn.00406941
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x40671d
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406720
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
cmp ebx, dword [ebp - 0x7c]
jb 0x4066fc
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.00401251
test esi, esi
je 0x406739
push esi
call fcn.0040a9cb
pop ecx
mov al, bl
jmp 0x40673f
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409fc1
leave
ret
Function at 0x4068d3
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x4068e0
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406919
cmp eax, 0x80
je 0x406919
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00406f9c
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x4068dc
mov al, 1
pop esi
ret

Function at 0x406a97
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x118
xor edi, edi
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.0040ab40
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x406bb1.2
mov ebx, dword [ebp - 0x11c]
cmp ebx, 6
je 0x406b42
cmp ebx, 0xa
je 0x406b42
cmp ebx, 5
jne case.0x406bb1.2
cmp dword [ebp - 0x118], 2
jne 0x406b2b
cmp byte [ebp - 6], 1
jne 0x406b0d
call fcn.00406a4b
cmp eax, 9
je case.0x406bb1.1
test dword [ebp - 8], 0x8000
je case.0x406bb1.7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409fc1
leave
ret
cmp dword [ebp - 0x118], 1
jne case.0x406bb1.2
test dword [ebp - 8], 0x200
jne case.0x406bb1.2
xor eax, eax
inc eax
jmp 0x406b1c
mov eax, dword [ebp - 0x118]
mov ecx, 0x42a7b8
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x128], eax
call fcn.004040ec
mov esi, eax
test esi, esi
je case.0x406bb1.2
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406b88
lea ecx, [ebp - 0x124]
push ecx
push edi
push edi
push dword [ebp - 0x128]
push ebx
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je case.0x406bb1.2
mov eax, dword [ebp - 0x124]
cmp eax, 0x1b
ja 0x406bc0
je case.0x406bb1.4
dec eax
cmp eax, 0x18
ja case.0x406bb1.2
movzx eax, byte [eax + 0x406c23]
jmp dword [eax*4 + 0x406c13]
push 2
pop eax
jmp 0x406b1c
cmp eax, 0x54
ja 0x406be0
je case.0x406bb1.4
sub eax, 0x30
je case.0x406bb1.1
sub eax, 0x16
je case.0x406bb1.4
dec eax
sub eax, 1
je case.0x406bb1.4
jmp case.0x406bb1.2
cmp eax, 0x79
jb case.0x406bb1.2
cmp eax, 0x7a
jbe 0x406c0e
cmp eax, 0x7c
jbe case.0x406bb1.2
cmp eax, 0x7e
jbe case.0x406bb1.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x406bb1.2
push 3
jmp 0x406bba
push 4
jmp 0x406bba
Function at 0x407077
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0x808]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.0040ab40
mov esi, dword [0x430bac]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.00404da8
push edi
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push ebx
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.00401251
lea ecx, [ebp - 0x808]
call fcn.004075af
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
sub eax, 3
je 0x40712b
sub eax, 1
jne 0x40711c
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.00409fc1
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4075af
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40761e
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4075fa
push ebx
push edi
push eax
call fcn.0040bf70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x407615
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x43b640
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop edx
sub ecx, ecx
mov ecx, 0x231a5027
or ebx, ecx
call fcn.0043b67d
add ebx, 0x4baf0ae7
sub ebx, ecx
xor dword [esi], edx
and ecx, ecx
add ebx, 0x424613da
inc esi
add ebx, ecx
add ecx, 0xe386edff
cmp esi, edi
jne fcn.0043b640
sub ecx, ebx
ret
Function at 0x402dec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043a8
test esi, esi
jne 0x402e23
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404498
jmp 0x402e44
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c88
mov dword [esp], eax
test esi, esi
je 0x402e44
cmp dword [ebx], 0
je 0x402e44
dec esi
jmp 0x402e2b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4034a8
Capabilities:
Query or enumerate registry value

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

Function at 0x404224
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x458048], 0
je 0x404285
cmp word [0x45821c], 0xd7b2
jne 0x40424d
cmp dword [0x458224], 0
jbe 0x40424d
mov eax, 0x458218
call dword [0x458234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45606c
push 0xfffffffffffffff5
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 0x4042ac
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x456030], 0
jne 0x4042a1
push 0
push 0x456064
push 0x45606c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x405fcc
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 0x406032
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404618
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040306c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40601c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406039
lea eax, [ebp - 0x10]
call fcn.004043a8
ret

Function at 0x40b384
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
test eax, eax
jle 0x40b3bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404498
jmp 0x40b3c6
mov eax, ebx
mov edx, esi
call fcn.004043fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b3d0
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
test eax, eax
jle 0x40b3f1
mov al, byte [esp]
jmp 0x40b3f3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c3a8
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 0x40c47e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404440
lea eax, [ebp - 8]
call fcn.004048b8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404868
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c468
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c461
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.00404868
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c44b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c490
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c44b
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 0x40c468
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c485
lea eax, [ebp - 8]
call fcn.004043a8
ret
Function at 0x40c958
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 0x40c9bc
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404618
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0040844c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9c3
lea eax, [ebp - 0xc]
call fcn.004043a8
ret

Function at 0x41ad38
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x458884
cmp dword [esi], 0
jne 0x41adde
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x458880]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x45646c
mov ecx, 2
call fcn.00402c48
mov edx, 0x41ad10
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041ad30
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041ad30
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41ada5
mov eax, dword [ebp - 8]
mov dword [0x458880], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41bfb4
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 0x41bfba
ret

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