joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44214c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45a264]
cmp byte [eax + 0xc], 0
je 0x4422b9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4422b2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45bb64], 0
jne 0x4421a0
push 0x4422c0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4422c8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb64], eax
cmp dword [0x459c2c], 0
jne 0x44229b
push 0x4422d8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x459c2c], eax
cmp dword [0x459c2c], 0
je 0x44229b
push 0x4422e4
mov eax, dword [0x459c2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb68], eax
push 0x4422f4
mov eax, dword [0x459c2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb6c], eax
push 0x442308
mov eax, dword [0x459c2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb70], eax
push 0x442320
mov eax, dword [0x459c2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb74], eax
push 0x442338
mov eax, dword [0x459c2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb78], eax
push 0x44234c
mov eax, dword [0x459c2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb7c], eax
push 0x442364
mov eax, dword [0x459c2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb80], eax
push 0x44237c
mov eax, dword [0x459c2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb84], eax
push 0x442398
mov eax, dword [0x459c2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb88], eax
push 0x4423a4
mov eax, dword [0x459c2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4422b9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x446144
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404244
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x446193
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004044b4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44d964
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d9b4]
test si, 4
je 0x44d978
or bl, 1
test si, 8
je 0x44d982
or bl, 4
test si, 1
je 0x44d98c
or bl, 8
test si, 2
je 0x44d996
or bl, 0x10
test si, 0x10
je 0x44d9a0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d9af
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44d9b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d9f0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d9d1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d9e0
or bl, 4
test esi, 0x20000000
je 0x44d9eb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4540b4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4540c6
add esp, 0xfffffff0
call fcn.004037f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004211fc
mov eax, dword [0x459f20]
mov dword [eax + 4], ebx
mov dword [eax], 0x454458
mov eax, dword [0x459f2c]
mov dword [eax + 4], ebx
mov dword [eax], 0x454464
mov eax, ebx
call fcn.00454470
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415ff8]
call fcn.00403460
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415ff8]
call fcn.00403460
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415ff8]
call fcn.00403460
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415ff8]
call fcn.00403460
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415ff8]
call fcn.00403460
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x450888
push eax
push 0
push 0
mov eax, dword [0x45a074]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x422c28]
call fcn.00424090
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x422c28]
call fcn.00424090
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x422c28]
call fcn.00424090
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004548c0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454788
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454788
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454788
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454203
call fcn.00403848
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45456c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x454717
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4546f8
mov dl, 1
mov eax, dword [0x416414]
call fcn.00403460
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404244
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4546e7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004424ac
test al, al
je 0x4546da
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x454728
lea eax, [ebp - 0x254]
call fcn.00409100
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4546da
xor eax, eax
push ebp
push 0x4546d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x454760
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4546bc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044b4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4546bc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4546da
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4545dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a298
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45471e
lea eax, [ebp - 0x260]
call fcn.00404244
ret

Function at 0x455060
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45bbb0]
cmp byte [eax + 0xa5], 0
jne 0x4550d1
cmp dword [0x45bbc8], 0
jne 0x455092
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45501c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45bbc8], eax
cmp dword [0x45bbc4], 0
jne 0x4550ad
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45bbc4], eax
cmp dword [0x45bbcc], 0
jne 0x4550d1
push esp
push 0
push 0
push 0x454fc0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45bbcc], eax
pop edx
ret
Function at 0x455764
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45bbb0]
cmp dword [eax + 0x30], 0
je 0x45580e
cmp dword [ebx + 0x94], 0
jne 0x455808
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4556f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455808
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4557ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455808
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004186ec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4557dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45636c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4563a1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404334
jmp 0x4563ae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404298
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4574c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457501
mov eax, esi
call fcn.0043dc20
test al, al
je 0x457501
mov eax, dword [ebx + 0x84]
call fcn.0043d91c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457501
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043d91c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401bd0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a998
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x5cd000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 8
push eax
mov dword [ebp - 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.00404500
push 0
call fcn.00405753
push 0xc
call fcn.0040652d
add esp, 8
mov dword [ebp - 0xf4], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x401c59
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00406565
mov esi, eax
jmp 0x401c5b
xor esi, esi
push 0x57b9f4
mov dword [ebp - 4], 0xffffffff
call fcn.0040eea3
push str.Local_AppWizard_Generated_Applications
mov ecx, edi
call fcn.00412666
push 0xd8
lea eax, [ebp - 0xf0]
push 0
push eax
call fcn.0054e830
add esp, 0xc
lea ecx, [ebp - 0xf0]
push 0
push 0x66
call fcn.00417eda
mov dword [ebp - 4], 1
mov dword [ebp - 0xf0], 0x5ae7dc
call fcn.004187bb
call fcn.004187bb
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 4], 2
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.00412ecf
test esi, esi
je 0x401cee
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
lea ecx, [ebp - 0x30]
call fcn.0041615d
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], vtable.CBrush.0
call fcn.00402a80
lea ecx, [ebp - 0xf0]
call fcn.0041293f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054c83b
mov esp, ebp
pop ebp
ret

Function at 0x401f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x401f49
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401f5f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401f56
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x401f92
nop
cmp esi, ecx
jae 0x401f56
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x401f80
cmp esi, ecx
jae 0x401f56
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402e00
Capabilities:
Accept command line arguments
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ab5b
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x5cd000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov dword [ebp - 4], 0
call fcn.004147a7
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x402fe3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 1
test esi, esi
je 0x402ea1
test esi, 0xffff0000
jne 0x402e88
movzx eax, si
lea ecx, [ebp - 0x414]
push eax
call fcn.00402040
jmp 0x402eb0
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402e90
sub ecx, edx
sar ecx, 1
jmp 0x402ea3
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x414]
call fcn.00402350
push str.._StiGlobal.ini
push 1
push str.ClassicMode
push str.General
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
mov edx, str.ManagerClassic.exe
mov ecx, str.ManagerGray.exe
cmovne ecx, edx
push ecx
push str.ConBase.exe
lea ecx, [ebp - 0x414]
call fcn.004031b0
mov esi, dword [ebp - 0x414]
lea edx, [ebp - 0x210]
mov ecx, esi
sub edx, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x402f00
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x210]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x412], ax
test ax, ax
jne 0x402f12
lea eax, [ebp - 0x468]
mov dword [ebp - 0x458], 0x44
push eax
lea eax, [ebp - 0x458]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x410]
movlpd qword [ebp - 0x454], xmm0
push eax
push 0
movlpd qword [ebp - 0x44c], xmm0
movlpd qword [ebp - 0x444], xmm0
movlpd qword [ebp - 0x43c], xmm0
movlpd qword [ebp - 0x434], xmm0
movlpd qword [ebp - 0x42c], xmm0
movlpd qword [ebp - 0x424], xmm0
movlpd qword [ebp - 0x41c], xmm0
movups xmmword [ebp - 0x468], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 1
mov ecx, edi
call fcn.004130a7
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402fc8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054c83b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402860
int3

Function at 0x403450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00412b33
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x27cc508c
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..7LWLf
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x50290b35
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5f273162
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x52e2741c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402aa0
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.00404134
test esi, esi
jne 0x402ad6
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.00404224
jmp 0x402af4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029b4
mov edi, eax
test esi, esi
je 0x402af4
cmp dword [ebx], 0
je 0x402af4
dec esi
jmp 0x402add
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403254
Capabilities:
Query or enumerate registry value

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

Function at 0x403fb8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49704c], 0
je 0x404019
cmp word [0x497220], 0xd7b2
jne 0x403fe1
cmp dword [0x497228], 0
jbe 0x403fe1
mov eax, 0x49721c
call dword [0x497238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49406c
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 0x404040
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x494030], 0
jne 0x404035
push 0
push 0x494064
push 0x49406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406260
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 0x4062c6
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.004043a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e18
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4062b0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062cd
lea eax, [ebp - 0x10]
call fcn.00404134
ret

Function at 0x40bdd4
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 0x40be0d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404224
jmp 0x40be16
mov eax, ebx
mov edx, esi
call fcn.00404188
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c4c8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c340
mov eax, dword [0x4964e4]
cmp byte [eax], 0
je 0x40c544
mov eax, dword [0x4961d4]
call fcn.00402bdc
call fcn.004028e0
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.00408f68
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 0x40c58c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c57a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49616c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x497668]
call fcn.00405774
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