joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422794
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x422988
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, 0x4229a0
call fcn.0040d330
test eax, eax
jl 0x4227d2
neg eax
mov edx, dword [0x425e1c]
mov dword [edx], eax
call sub.comctl32.dll_InitCommonControls
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x28
call fcn.00402d2c
mov dword [ebp - 0x50], 0x422688
mov eax, dword [0x426660]
mov dword [ebp - 0x44], eax
mov eax, dword [0x425cec]
call fcn.0040462c
mov dword [ebp - 0x30], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x3c], eax
push 0x4229ac
mov eax, dword [0x426660]
push eax
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], 8
lea eax, [ebp - 0x54]
push eax
call sub.user32.dll_RegisterClassA
mov esi, 0x1ec
mov edi, 0x6e
push 0
call sub.user32.dll_GetSystemMetrics
sub eax, esi
sar eax, 1
jns 0x42284e
adc eax, 0
mov dword [ebp - 4], eax
push 1
call sub.user32.dll_GetSystemMetrics
sub eax, edi
sar eax, 1
jns 0x422861
adc eax, 0
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x2c80000
lea eax, [ebp - 0x58]
call fcn.0040cc20
mov ecx, dword [ebp - 0x58]
mov dl, 1
mov eax, dword [0x412b74]
call fcn.004131c4
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4229c0
mov edx, 0x4229e4
mov eax, ebx
call fcn.0041386c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push esi
push edi
push 0
push 0
mov eax, dword [0x426660]
push eax
push 0
mov eax, dword [ebp - 0x10]
call fcn.0040462c
push eax
mov eax, dword [0x425cec]
call fcn.0040462c
mov edx, eax
xor eax, eax
pop ecx
call fcn.00405cf4
mov edx, dword [0x425d40]
mov dword [edx], eax
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.00413a68
mov eax, dword [ebp - 0x5c]
push eax
mov eax, ebx
call fcn.00413970
push eax
mov eax, ebx
call fcn.004139e8
mov edx, eax
pop ecx
pop eax
call fcn.0040e2e0
mov eax, dword [0x425d40]
cmp dword [eax], 0
je 0x42293e
push 0
mov eax, dword [0x425d40]
mov eax, dword [eax]
push eax
call sub.user32.dll_ShowWindow
jmp 0x42292b
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_DispatchMessageA
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x422919
push 1
mov eax, dword [0x425d40]
mov eax, dword [eax]
push eax
call sub.user32.dll_KillTimer
mov al, 1
call fcn.0041c160
call fcn.0041c130
xor edx, edx
mov eax, 0x2b
call fcn.0041b9ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42298f
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004041ac
lea eax, [ebp - 0x10]
call fcn.00404188
ret
Function at 0x422c18
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x422c20
xor eax, eax
push ebp
push 0x422d2c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.00402820
lea eax, [ebp - 0x10]
call fcn.00419544
push dword [ebp - 0x10]
push 0x422d40
push 0x422d4c
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004072f8
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 4
call fcn.004044ec
push 0
mov eax, dword [ebp - 8]
call fcn.0040462c
push eax
mov eax, dword [ebp - 4]
call fcn.0040462c
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x18]
call fcn.0040d070
push dword [ebp - 0x18]
push 0x422d58
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402820
push dword [ebp - 0x1c]
push 0x422d80
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004044ec
push dword [ebp - 0xc]
push 0x422d90
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00402820
push dword [ebp - 0x20]
push 0x422da8
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004044ec
push 0
push dword [ebp - 8]
push 0x422db4
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00406b84
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004044ec
mov eax, dword [ebp - 0x24]
call fcn.0040462c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422d33
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.004041ac
ret
Function at 0x422db8
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x422dc0
push ecx
push ebx
xor eax, eax
push ebp
push 0x422fdf
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, 0x422ff4
call fcn.0040d150
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
mov eax, dword [0x425d6c]
call fcn.00404d84
mov edx, 0x423004
call fcn.00404848
pop edx
call fcn.00404848
call fcn.004030b0
mov eax, dword [0x425e10]
cmp byte [eax], 0
je 0x422fc4
call fcn.004229e8
test al, al
je 0x422e47
lea edx, [ebp - 0x14]
mov eax, 0x422ff4
call fcn.0040d150
mov eax, dword [ebp - 0x14]
mov edx, 0x423024
call fcn.00404578
jne 0x422fc4
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402820
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
call fcn.004072f8
lea edx, [ebp - 0x1c]
mov eax, dword [0x425da4]
mov eax, dword [eax]
call fcn.00413558
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0040c4bc
test al, al
je 0x422fc4
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
mov eax, dword [0x425d6c]
call fcn.00404d84
mov edx, 0x423030
call fcn.00404848
call fcn.004030b0
push 0
push 0
mov eax, 0x423050
call fcn.0040d330
imul eax, eax, 0x3e8
xor edx, edx
call fcn.0040be84
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00402820
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407270
push dword [ebp - 0x20]
push 0x423060
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004044ec
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040462c
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00402820
mov eax, dword [ebp - 0x28]
call fcn.0040462c
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 4]
call fcn.00404188
lea edx, [ebp - 8]
mov eax, 0x42306c
call fcn.0040d150
cmp dword [ebp - 8], 0
je 0x422f36
lea eax, [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, 0x423080
call fcn.00404478
lea edx, [ebp - 8]
mov eax, 0x423098
call fcn.0040d150
cmp dword [ebp - 8], 0
je 0x422f59
lea eax, [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, 0x4230a8
call fcn.00404478
push 0
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00404478
mov eax, dword [ebp - 0x2c]
call fcn.0040462c
push eax
call sub.kernel32.dll_WinExec
call fcn.004027c0
test eax, eax
jle 0x422fc4
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
add ebx, 0xbb8
xor edx, edx
mov eax, 0xc8
call fcn.0040be84
mov eax, dword [ebp - 0xc]
call fcn.0041d94c
test al, al
jne 0x422fc4
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
cmp edx, dword [esp + 4]
jne 0x422fc0
cmp eax, dword [esp]
pop edx
pop eax
jae 0x422f8d
jmp 0x422fc4
pop edx
pop eax
jge 0x422f8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422fe6
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.004041ac
ret
Function at 0x404292
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404de1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x408460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x24], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp + 0x28]
mov dword [esi + 8], edx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], edi
test cl, cl
jne 0x404365
mov dword [ebp + 0x28], edi
test eax, eax
je 0x404332
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x40431c
mov edi, eax
add ecx, 0x10
dec edx
jne 0x404314
mov dword [ebp + 0x28], edi
mov eax, 0x406784
cmp edi, 0x100000
ja 0x404335
lea eax, [ebp + 0x28]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.00404a32
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x40435b
push eax
call fcn.00404ac8
add esp, 4
mov dword [esi + 0x24], edi
push 0
call fcn.00404ac8
add esp, 4
xor ecx, ecx
mov eax, ebx
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00404a32
add esp, 4
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4043b1
push 0x402640
push 0x402600
push ebx
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebx
call fcn.00404b8f
jmp 0x4043b3
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x4043e2
test eax, eax
je 0x4043df
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402640
push ecx
push 0x44
push eax
call fcn.00404b2c
push ebx
call fcn.00404ac8
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.00403ed2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24

Function at 0x43b645
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
inc edx
push ebx
pop edx
call fcn.0043b682
sub ebx, 0x2a6baec0
add edx, 0x9e694ebc
xor dword [esi], edi
add edx, 1
inc esi
add ebx, 0xf38896fb
cmp esi, eax
jne fcn.0043b645
or ebx, ebx
inc edx
ret
Function at 0x402ab0
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.00404288
test esi, esi
jne 0x402ae6
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.00404378
jmp 0x402b04
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c4
mov edi, eax
test esi, esi
je 0x402b04
cmp dword [ebx], 0
je 0x402b04
dec esi
jmp 0x402aed
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4032e0
Capabilities:
Query or enumerate registry value

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

Function at 0x40410c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51804c], 0
je 0x40416d
cmp word [0x518220], 0xd7b2
jne 0x404135
cmp dword [0x518228], 0
jbe 0x404135
mov eax, 0x51821c
call dword [0x518238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x514070
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 0x404194
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x514034], 0
jne 0x404189
push 0
push 0x514068
push 0x514070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b5c
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 0x405d8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405bdf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d8c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405bdf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405da8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405c68
xor eax, eax
push ebp
push 0x405c61
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004059a4
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 0x405c46
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405dc8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c46
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 0x405c68
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 0x405d82
cmp byte [ebp - 0xd], 0
jne 0x405caf
cmp byte [ebp - 0x12], 0
je 0x405d82
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405cc8
dec ebx
cmp byte [ebx], 0x2e
je 0x405cd7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405cc7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d82
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d14
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 0x405d82
cmp byte [ebp - 0xd], 0
je 0x405d82
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 0x405d82
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 0x406484
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 0x4064ea
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.004044f8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e84
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4064d4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064f1
lea eax, [ebp - 0x10]
call fcn.00404288
ret

Function at 0x40c218
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 0x40c251
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404378
jmp 0x40c25a
mov eax, ebx
mov edx, esi
call fcn.004042dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c90c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c784
mov eax, dword [0x516d80]
cmp byte [eax], 0
je 0x40c988
mov eax, dword [0x516904]
call fcn.00402c2c
call fcn.004028f0
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.0040931c
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 0x40c9d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c9be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x51687c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x518668]
call fcn.00405968
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 0x40d290
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 0x40d366
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404320
lea eax, [ebp - 8]
call fcn.00404798
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404748
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d350
mov eax, ebx
call fcn.00402788
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d349
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.00404748
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d333
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d378
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d333
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 0x40d350
mov eax, dword [ebp - 0x10]
call fcn.004027a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d36d
lea eax, [ebp - 8]
call fcn.00404288
ret

Function at 0x40d938
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 0x40d99c
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.004044f8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408db4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9a3
lea eax, [ebp - 0xc]
call fcn.00404288
ret

Function at 0x426d2c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x51888c
cmp dword [edi], 0
jne 0x426da8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x518888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x51465c
mov ecx, 2
call fcn.00402984
mov edx, 0x426d04
lea eax, [esi + 5]
call fcn.00426d24
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426d24
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 0x426d7d
mov dword [0x518888], 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 0x4284f8
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 0x4284fe
ret
Function at 0x42ac1c
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 0x42ac6d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42ac54
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42ac44
jmp 0x42ac6d
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 0x42ac55
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4349ac
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404738
xor eax, eax
push ebp
push 0x434ada
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x434aad
xor eax, eax
push ebp
push 0x434aa6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404548
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x434a7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x434a6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404548
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404748
mov edx, ebx
pop ecx
call fcn.00402984
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434a71
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x516764]
mov dl, 1
mov eax, dword [0x407b40]
call fcn.0040cab4
call fcn.00403c3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434ae1
lea eax, [ebp - 4]
call fcn.00404288
ret