joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014f1
Capabilities:
Set registry value

Disassembly:
push 0x406097
call fcn.00401e40
mov dword [0x40402d], eax
push 0x406497
push 0xf003f
push 0
push str.1A2466363E2F7236296D0C0A1E4353060D54373E074E000A57347C2D100652080B15244501160E080B1539550C356E2047332065686C2C20686B206B5B6E206454617514585347165E20533417415651555C
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
push dword [0x40402d]
push 0x406097
push 1
push 0
push str.050A59071B1D451000520C1D150C730C1956020A0B4D0B0B49334F1C6574206D656172207365676765
push dword [0x406497]
call sub.advapi32.dll_RegSetValueExA
push dword [0x406497]
call sub.advapi32.dll_RegCloseKey
jmp 0x401551
call 0x4018a1
call fcn.00401784
push 0x405f97
push 0x40669f
call fcn.00401da0
cmp eax, 0
jbe 0x401576
call fcn.004015e4
jmp 0x4015d8
push 0x40689f
push 0x40669f
call fcn.00401da0
cmp eax, 0
jbe 0x401591
call fcn.00401605
jmp 0x4015d8
push 0x406a9f
push 0x40669f
call fcn.00401da0
cmp eax, 0
jbe 0x4015ac
call fcn.00401649
jmp 0x4015d8
push 0x406c9f
push 0x40669f
call fcn.00401da0
cmp eax, 0
jbe 0x4015c7
call fcn.0040168d
jmp 0x4015d8
call fcn.004015d9
jmp 0x4015d8
ret

Function at 0x4016d1
Capabilities:
Create process on windows
Set registry value

Disassembly:
push 0x406497
push 0xf003f
push 0
push str.1A2466363E2F7236296D0C0A1E4353060D54373E074E000A57340020312863181713174E073302151620044E3E20034114100023000049002C1345081C1A490B0B0008501A0C1B4E1E3961721036555F5727
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
push 0x40649b
push 0x406e9f
push dword [0x406497]
call sub.advapi32.dll_RegCreateKeyA
push 1
push 0x403c48
push 1
push 0
push str.0D0E42170E09450175205F696CEC80696B3E2A69AEE8C4652347206E6174206D6561722073A5C76785
push dword [0x40649b]
call sub.advapi32.dll_RegSetValueExA
push 5
push 0
push 0
push 0x406297
push str.open
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x40173f
push 0x406d9f
call fcn.00401e40
mov dword [0x40402d], eax
push dword [0x40402d]
push 0x406d9f
push 1
push 0
push str.0D0E42170E09450175205F696CEC80696B3E2A69AEE8C4652347206E6174206D6561722073A5C76785
push dword [0x40649b]
call sub.advapi32.dll_RegSetValueExA
push dword [0x40649b]
call sub.advapi32.dll_RegCloseKey
push dword [0x406497]
call sub.advapi32.dll_RegCloseKey
ret
Function at 0x401784
Capabilities:
Set registry value

Disassembly:
push 0x406497
push 0xf003f
push 0
push str.1A2466363E2F7236296D0C0A1E4353060D54373E074E000A57340020312863181713174E073302151620044E3E20034114100023000049002C1345081C1A490B0B0008501A0C1B4E1E3961721036555F5727
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
push 0x40649b
push str.3A1B4F0D051D565D1058006935EB80698B5BF0690E5FFF65803ABB6E015474081D1548209AA2C76715
push dword [0x406497]
call sub.advapi32.dll_RegCreateKeyA
push 0x40689f
call fcn.00401e40
mov dword [0x40402d], eax
push dword [0x40402d]
push 0x40689f
push 1
push 0
push str.0D0E42170E09450175205F696CEC80696B3E2A69AEE8C4652347206E6174206D6561722073A5C76785
push dword [0x40649b]
call sub.advapi32.dll_RegSetValueExA
push dword [0x40649b]
call sub.advapi32.dll_RegCloseKey
jmp 0x4017f9
push 0x40649b
push str.200E5812050152165B451D0C6C2C4F0707596B690E86C565A09A616E6574206D296530207BFFFA6705
push dword [0x406497]
call sub.advapi32.dll_RegCreateKeyA
push 0x406a9f
call fcn.00401e40
mov dword [0x40402d], eax
push dword [0x40402d]
push 0x406a9f
push 1
push 0
push str.0D0E42170E09450175205F696CEC80696B3E2A69AEE8C4652347206E6174206D6561722073A5C76785
push dword [0x40649b]
call sub.advapi32.dll_RegSetValueExA
push dword [0x40649b]
call sub.advapi32.dll_RegCloseKey
push 0x40649b
push str.2F0252070F01585D105800696CEC80696B3E2A69AEE8C4652347206E6174206D6561722073A5C76785
push dword [0x406497]
call sub.advapi32.dll_RegCreateKeyA
push 0x406c9f
call fcn.00401e40
mov dword [0x40402d], eax
push dword [0x40402d]
push 0x406c9f
push 1
push 0
push str.0D0E42170E09450175205F696CEC80696B3E2A69AEE8C4652347206E6174206D6561722073A5C76785
push dword [0x40649b]
call sub.advapi32.dll_RegSetValueExA
push dword [0x40649b]
call sub.advapi32.dll_RegCloseKey
push dword [0x406497]
call sub.advapi32.dll_RegCloseKey
add bl, al

Function at 0x401981
Capabilities:
Enumerate processes

Disassembly:
mov byte [0x403c49], 0
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov dword [0x405994], eax
mov dword [0x4057e4], 0x128
push 0x4057e4
push dword [0x405994]
call sub.kernel32.dll_Process32First
mov dword [0x404197], 1
jmp 0x4019d1
push 0x4057e4
push dword [0x405994]
call sub.kernel32.dll_Process32Next
mov dword [0x404197], eax
push 0x405808
call fcn.00401e40
mov dword [0x40402d], eax
push 5
push 0x405808
push str.0538732F26200E362D6545494C0C00494B004B494E0044450067004E4554004D454152005345474745496B20525ACF2072752065406C2C202000000900000017100022490249544906450A1B4E5301024722
call fcn.00401dd0
cmp eax, 0
je 0x4019f8
jmp 0x4019ff
mov byte [0x403c49], 1
xor eax, eax
cmp dword [0x404197], 1
je 0x4019bc
push dword [0x405994]
call sub.kernel32.dll_CloseHandle
ret
Function at 0x42ceb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d108]
jne 0x42ceba
repz ret
jmp fcn.004389e0
Function at 0x449390
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd5c
cmp dword [0x8791f8], 0x37
jne 0x4494b0
push 0
push 0x408840
push 0
push 0x4088a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
xor eax, eax
mov word [ebp - 0xd54], ax
xor ecx, ecx
mov word [ebp - 0xd52], cx
lea edx, [ebp - 0x94c]
push edx
mov eax, dword [ebp - 0xd54]
push eax
lea ecx, [ebp - 0xd5c]
push ecx
lea edx, [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ScrollConsoleScreenBufferA]
push 0
push 0
push 0
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0x4088f4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0x40892c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea ecx, [ebp - 0x948]
push ecx
push 0x408958
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0xd50]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
push 0x40899c
call dword [sym.imp.KERNEL32.dll_FindFirstFileExA]
mov dword [ebp - 0x1c], 0
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LockFileEx]
push 0
push 0x4089b4
push 0
push 0x4089d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov ecx, dword [0x870c44]
add ecx, dword [ebp + 8]
mov edx, dword [0x8791fc]
add edx, dword [ebp + 8]
mov al, byte [edx + 0x12336]
mov byte [ecx], al
mov esp, ebp
pop ebp
ret 4
Function at 0x449530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc40
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0xc6ef3720
mov dword [ebp - 0x28], 0x9e3779b9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0
jmp 0x44958d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jae 0x4496e6
mov dword [ebp - 0x38], 4
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
shl edx, cl
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x34], 5
mov edx, dword [ebp - 0x30]
push edx
push 0x23c912
lea eax, [ebp - 0x14]
push eax
call fcn.004494d0
mov ecx, dword [ebp - 0x14]
sub ecx, 0x23c912
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov dword [0x870c48], 0xffcf03fc
cmp dword [0x8791f8], 0xe3
jne 0x44960f
push 0x4087e0
push 0x4087f0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
mov dword [0x870c48], 0
mov eax, dword [ebp - 0x14]
add dword [0x870c48], eax
cmp dword [0x8791f8], 0x5ba
jne 0x44964f
push 0
lea edx, [ebp - 0x840]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp dword [0x8791f8], 0x1be
jne 0x44968a
push 0
lea ecx, [ebp - 0xc40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [0x870c50], 0xcbd702b4
mov dword [0x870c54], 0xffffffff
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x34]
shr edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00449500
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
jmp 0x449584
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x449700
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shr edx, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
jmp 0x449730
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jae 0x449781
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shl eax, 1
mov dword [ebp - 0x10], eax
cmp dword [0x8791f8], 0x1c
jne 0x44976c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*4]
push edx
call fcn.00449530
jmp 0x449727
mov esp, ebp
pop ebp
ret 0xc

Function at 0x449790
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1cd0
call fcn.0043ba50
mov dword [ebp - 4], 0
jmp 0x4497af
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x32d05d76
jge 0x449830
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x8791f8], 0x9e
jne 0x449820
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x408a10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0x408a7c
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
lea edx, [ebp - 0x8a0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
cmp dword [ebp - 4], 0x3775ee
jle 0x44982b
jmp 0x449830
jmp 0x4497a6
push 0x44e2d0
mov eax, dword [0x8791f8]
push eax
mov ecx, dword [0x870c44]
push ecx
call fcn.00449700
mov dword [ebp - 0x8a4], 0
jmp 0x449862
mov edx, dword [ebp - 0x8a4]
add edx, 1
mov dword [ebp - 0x8a4], edx
cmp dword [ebp - 0x8a4], 0x3e79e
jge 0x449881
cmp dword [ebp - 0x8a4], 0x1e673
jne 0x44987f
call fcn.00449370
jmp 0x449853
mov dword [ebp - 0x8a8], 0
jmp 0x44989c
mov eax, dword [ebp - 0x8a8]
add eax, 1
mov dword [ebp - 0x8a8], eax
cmp dword [ebp - 0x8a8], 0xdd9a7
jge 0x4498d2
cmp dword [0x8791f8], 0xc01
jne 0x4498d0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0x408aa0
push 0x408ae8
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
jmp 0x44988d
jmp dword [0x870c44]
Function at 0x402e88
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 0x402ee1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d24
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d24
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402ecb
inc ebx
jmp 0x402eb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ee8
lea eax, [ebp - 8]
call fcn.00404a20
ret

Function at 0x402ef0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a20
test esi, esi
jne 0x402f27
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.00404b10
jmp 0x402f48
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d24
mov dword [esp], eax
test esi, esi
je 0x402f48
cmp dword [ebx], 0
je 0x402f48
dec esi
jmp 0x402f2f
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403b00
Capabilities:
Query or enumerate registry value

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

Function at 0x40489c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48f04c], 0
je 0x4048fd
cmp word [0x48f220], 0xd7b2
jne 0x4048c5
cmp dword [0x48f228], 0
jbe 0x4048c5
mov eax, 0x48f21c
call dword [0x48f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x487074
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 0x404924
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x487034], 0
jne 0x404919
push 0
push 0x48706c
push 0x487074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406b44
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 0x406baa
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.00404c90
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040355c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406b94
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406bb1
lea eax, [ebp - 0x10]
call fcn.00404a20
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ee0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4095c9
test al, 0x10
jne 0x4095cd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c664
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 0x40c69d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b10
jmp 0x40c6a6
mov eax, ebx
mov edx, esi
call fcn.00404a74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cd68
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cbd0
mov eax, dword [0x48ec28]
cmp byte [eax], 0
je 0x40cde4
mov eax, dword [0x48e9fc]
call fcn.00403364
call fcn.00402c50
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.00409d18
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 0x40ce2c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce1a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48e9a4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48f668]
call fcn.00405f70
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 0x40d748
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 0x40d81e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404ab8
lea eax, [ebp - 8]
call fcn.00404f30
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ee0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d808
mov eax, ebx
call fcn.00402ac4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d801
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.00404ee0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d7eb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d830
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d7eb
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 0x40d808
mov eax, dword [ebp - 0x10]
call fcn.00402af4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d825
lea eax, [ebp - 8]
call fcn.00404a20
ret

Function at 0x40de7c
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 0x40dee0
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.00404c90
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409120
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dee7
lea eax, [ebp - 0xc]
call fcn.00404a20
ret

Function at 0x40ecbc
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404a20
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404ee0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40ed01
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404b10
jmp 0x40ed1a
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040506c
push ebx
mov eax, dword [esi]
call fcn.00404ee0
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x420024
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48f8a8
cmp dword [edi], 0
jne 0x4200a0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x48f8a4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x487400
mov ecx, 2
call fcn.00402ce4
mov edx, 0x41fffc
lea eax, [esi + 5]
call fcn.0042001c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042001c
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 0x420075
mov dword [0x48f8a4], 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 0x421614
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 0x42161a
ret

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