joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495516
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x549350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [edi + 0x357c]
mov byte [ebp - 5], 0
call dword [0x50830c]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4955e1
call dword [str.DeleteObject]
mov ebx, dword [edi + 4]
and dword [ebp - 0xc], 0
test ebx, ebx
mov dword [ebp - 0x10], eax
je 0x495566
push ebx
call dword [0x508384]
inc eax
cmp eax, 0x3fffffff
jle 0x49556a
xor eax, eax
jmp 0x495582
lea esi, [eax + eax]
mov eax, esi
call fcn.004e88d0
mov eax, esp
push dword [ebp - 0x10]
push esi
push ebx
mov esi, eax
call fcn.0041d8c9
push 0x52e660
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004e1c36
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x4955bc
push dword [ebp - 0xc]
push dword [edi + 0x3580]
push 1
push dword [ebp - 0x14]
call fcn.004e26e0
push dword [ebp - 0xc]
call fcn.004e324c
add esp, 0x14
mov byte [ebp - 5], 1
push dword [edi + 0x357c]
call dword [0x508314]
cmp byte [ebp - 5], 0
je 0x4955e1
push dword [edi + 0x357c]
call dword [0x508298]
and dword [edi + 0x357c], 0
mov al, byte [ebp - 5]
lea esp, [ebp - 0x1c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e0505
leave
ret
Function at 0x4bc010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x549350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x508384]
mov esi, 0x52f3d0
push esi
mov byte [ebp - 5], 0
call edi
test eax, eax
jne 0x4bc040
xor al, al
jmp 0x4bc106
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
mov edx, esi
call fcn.004263d8
test al, al
pop ecx
je 0x4bc103
cmp dword [ebp - 0x14], 0
jle 0x4bc0f0
push dword [ebp - 0xc]
call dword [0x50830c]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x4bc0f4
call dword [str.DeleteObject]
and dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x4bc094
push dword [ebp + 8]
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x4bc098
xor eax, eax
jmp 0x4bc0ae
lea edi, [eax + eax]
mov eax, edi
call fcn.004e88d0
mov esi, esp
push ebx
push edi
push dword [ebp + 8]
call fcn.0041d8c9
push 0x52e660
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004e1c36
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x4bc0e5
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 1
push dword [ebp - 0x18]
call fcn.004e26e0
push dword [ebp - 0x10]
call fcn.004e324c
add esp, 0x14
mov byte [ebp - 5], 1
push dword [ebp - 0xc]
call dword [0x508314]
jmp 0x4bc0f4
mov byte [ebp - 5], 1
cmp dword [ebp - 0xc], 0
je 0x4bc103
push dword [ebp - 0xc]
call dword [0x508298]
mov al, byte [ebp - 5]
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e0505
leave
ret
Function at 0x4d5670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
mov eax, dword [ebp + 8]
test al, 8
je 0x4d5683
mov ecx, dword [ebx + 0x28]
mov dword [esi + 0x28], ecx
test al, 2
je 0x4d568d
mov ecx, dword [ebx + 0x20]
mov dword [esi + 0x20], ecx
test al, 1
je 0x4d569d
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
test al, 0x10
je 0x4d56ad
mov ecx, dword [ebx + 0x10]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esi + 0x14], ecx
test al, 0x20
je 0x4d56bd
mov ecx, dword [ebx + 0x18]
mov dword [esi + 0x18], ecx
mov ecx, dword [ebx + 0x1c]
mov dword [esi + 0x1c], ecx
test al, 0x40
je 0x4d56c7
mov ecx, dword [ebx + 0x34]
mov dword [esi + 0x34], ecx
test al, 4
je 0x4d56d1
mov ecx, dword [ebx + 0x24]
mov dword [esi + 0x24], ecx
test eax, 0x40000
je 0x4d56de
mov ecx, dword [ebx + 0x2c]
mov dword [esi + 0x2c], ecx
test eax, 0x80000
je 0x4d56eb
mov ecx, dword [ebx + 0x30]
mov dword [esi + 0x30], ecx
test al, al
jns 0x4d56f5
mov ecx, dword [ebx + 0x38]
mov dword [esi + 0x38], ecx
test eax, 0x20000
je 0x4d5702
mov ecx, dword [ebx + 0x40]
mov dword [esi + 0x40], ecx
test ax, 0x100
je 0x4d570e
mov ecx, dword [ebx + 0x3c]
mov dword [esi + 0x3c], ecx
test ax, 0x800
push edi
je 0x4d5720
lea eax, [ebx + 0x7c]
lea edi, [esi + 0x7c]
call fcn.004115b7
test word [ebp + 8], 0x400
je 0x4d5733
lea eax, [ebx + 0x78]
lea edi, [esi + 0x78]
call fcn.004115b7
test word [ebp + 8], 0x1000
je 0x4d5746
lea eax, [ebx + 0x6c]
lea edi, [esi + 0x6c]
call fcn.004115b7
test word [ebp + 8], 0x200
je 0x4d5759
lea eax, [ebx + 0x74]
lea edi, [esi + 0x74]
call fcn.004115b7
test dword [ebp + 8], 0x10000
je 0x4d576d
lea eax, [ebx + 0x70]
lea edi, [esi + 0x70]
call fcn.004115b7
test word [ebp + 8], 0x4000
je 0x4d5793
mov edi, ebx
push 5
lea eax, [esi + 0x58]
sub edi, esi
pop edx
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x4d578d
cmp dword [eax], 0
jne 0x4d578d
mov dword [eax], ecx
add eax, 4
dec edx
jne 0x4d577f
test word [ebp + 8], 0x8000
pop edi
je 0x4d57b3
push 5
lea eax, [ebx + 0x44]
sub esi, ebx
pop edx
mov ecx, dword [eax]
test ecx, ecx
je 0x4d57ad
mov dword [esi + eax], ecx
add eax, 4
dec edx
jne 0x4d57a4
pop esi
pop ebp
ret 4
Function at 0x4e1c86
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4e1cc3
cmp dword [ebp + 0x14], edi
je 0x4e1cc3
cmp ecx, edi
jne 0x4e1cca
call fcn.004e160c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004df62d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4e1cde
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4e1cff
cmp ebx, 0xffffffff
je 0x4e1cee
push ebx
push edi
push ecx
call fcn.004e37e0
add esp, 0xc
cmp esi, edi
je 0x4e1cab
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4e1cab
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4e1d1b
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4e1d22
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4e1e13
test word [esi + 0xc], 0x10c
je 0x4e1d76
mov eax, dword [esi + 4]
test eax, eax
je 0x4e1d76
jl 0x4e1e74
cmp ebx, eax
mov edi, ebx
jb 0x4e1d47
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4e1e1b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004df79b
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4e1e0b
cmp ebx, dword [ebp - 0xc]
jb 0x4e1de3
cmp dword [ebp - 0xc], 0
je 0x4e1da0
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4e1d95
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4e1d9c
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4e1dab
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4e1dab
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4e1e47
push eax
push dword [ebp - 8]
push esi
call fcn.004edb45
pop ecx
push eax
call fcn.004eda48
add esp, 0xc
test eax, eax
je 0x4e1e86
cmp eax, 0xffffffff
je 0x4e1e74
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4e1e0b
push esi
call fcn.004ed367
cmp eax, 0xffffffff
pop ecx
je 0x4e1e78
cmp dword [ebp - 4], 0
je 0x4e1e47
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4e1d2a
mov eax, dword [ebp + 0x14]
jmp 0x4e1cc5
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4e1e32
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004e37e0
add esp, 0xc
call fcn.004e160c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4e1cbb
cmp dword [ebp + 0xc], 0xffffffff
je 0x4e1e5d
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004e37e0
add esp, 0xc
call fcn.004e160c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4e1cbb
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4e1cc5
or dword [esi + 0xc], 0x10
jmp 0x4e1e78
Function at 0x401590
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4015f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x401800
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4018f2
lea ecx, [esp + 0x10]
push ecx
push str..htm
push Ordinal_1
mov ecx, edi
call fcn.00401590
test eax, eax
jne 0x4018f2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push Ordinal_1
mov ecx, edi
call fcn.00401590
test eax, eax
jne 0x4018f2
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x4018c3
lea eax, [esp + 0x10]
push 0x406348
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x4018c3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4018c6
mov byte [esi], 0
push 0x406344
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x401c30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x403b88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401cb6
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x401cb6
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x44], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004033be
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4227e3
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x422836
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x422819
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x422819
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x422830
and dword [ebp - 4], 0
jmp 0x422830
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x422829
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x4227fa
cmp dword [ebp - 4], 0
je 0x422864
push esi
lea ecx, [ebx + 0x14]
call fcn.004224c5
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x42285a
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4e132d
Capabilities:
Encode data using xor

Disassembly:
fcmovnu st(0), st(2)
ror dword [edi + 0x29], 0x20
aaa
jae 0x4e137e
iretd
out 0x7d, eax
push ss
or al, 0x53
sbb byte [edi + ebp - 0x6169bf81], ah
mov byte [esi + 0xc], ch
dec ecx
lahf
mov esi, 0x46671fe5
cmc
in eax, 0x32
mov edx, 0xa3b4a696
adc byte [edx - 0x5a78d6f1], bh
shr dword [ebx], 1
mov ah, 0xee
dec ebp
xlatb
push es
and ecx, dword gs:[eax - 0x77]
add al, 3
sbb ah, ah
mov ebx, 0xda732934
cmc
add dword [edx - 0x15e847a0], 0x26
out 0x36, eax
jp 0x4e139c
shl byte [ecx], cl
mov byte [ebx + 0x5c], ah
push ds
push edx
mov edx, 0xc24c8daa
jo 0x4e1442
pop esi
push ds
sbb ebx, dword [esi + esi*4]
loope 0x4e143e
popal
adc al, 0xe9
call 0xdb303407
inc edx
xlatb
pop edi
sub al, 0xaf
adc eax, 0x575dc196
pushal
mov byte [edi + 0x2e], cl
mov eax, dword [0x8fff8cff]
cmpsd dword [esi], dword es:[edi]
dec esi
les ebp, [esi + edx*2]
enter 0xfffffffffffff764, 0x6c
or bh, byte [ebx]
out 0x56, eax
pop dword [ebx + 0x5d]
xor eax, 0x30bc029f
aas
test al, 5
les edx, [edx]
inc edx
cmp eax, 0x6ef1b777
fist dword [edi - 0x411d09dc]
movsb byte es:[edi], byte [esi]
adc dl, byte [esi]
and ch, byte [edi - 0x40]
cmp dword [esi - 0x2b4773db], eax
mov al, byte [0x4a5d5827]
sar byte [ecx], 0x86
and eax, 0xa0d4b88c
daa
pop eax
pop ebp
dec edx
rcr byte [eax], cl
aad 0x14
in eax, dx
add eax, dword [edi + edi*8 + 4]
sahf
mov byte [0x57de9f1e], al
xor ebx, dword [0x61051e4]
adc byte [esi], al
rol dword [edi], 0x30
cmp dword [edi + 0xa755907], 0x36
xor byte [ebx + 0x755907bf], al
or dh, byte [esi]
cld
sub edi, edx
adc ebx, 0xd1d0ccae
cdq
or dh, bl
or eax, 0x41d4067b
jle 0x4e141f
cmp al, 0x6e
mov esp, 0xf3e5771c
invalid

Function at 0x4e1696
Capabilities:
Encode data using xor

Disassembly:
dec ebp
shl dword [edx], cl
mov edx, 0xa02fde91
jne 0x4e16fe
sub ah, byte [eax + edi*4]
pop es
in eax, 0xf5
invalid
test eax, 0xcc93f235
invalid
Function at 0x4fa917
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x4029ec
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.00404344
test esi, esi
jne 0x402a22
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.00404434
jmp 0x402a40
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402900
mov edi, eax
test esi, esi
je 0x402a40
cmp dword [ebx], 0
je 0x402a40
dec esi
jmp 0x402a29
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403468
Capabilities:
Query or enumerate registry value

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

Function at 0x4041c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x450048], 0
je 0x404229
cmp word [0x45021c], 0xd7b2
jne 0x4041f1
cmp dword [0x450224], 0
jbe 0x4041f1
mov eax, 0x450218
call dword [0x450234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44f054
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 0x404250
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44f01c], 0
jne 0x404245
push 0
push 0x44f074
push 0x44f054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409524
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 0x40955d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404434
jmp 0x409566
mov eax, ebx
mov edx, esi
call fcn.00404398
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x409c18
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409a90
mov eax, dword [0x44fe50]
cmp byte [eax], 0
je 0x409c80
mov eax, dword [0x44fcac]
call fcn.00402d84
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040875c
push eax
lea eax, [esp + 0x50]
push eax
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 0x409cc8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409cb6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44fc6c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x450714]
call fcn.00405a30
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 0x40a720
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 0x40a784
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.004045ac
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040849c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a78b
lea eax, [ebp - 0xc]
call fcn.00404344
ret
Function at 0x41c37c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x450a20
cmp dword [edi], 0
jne 0x41c3f8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x450a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44f4bc
mov ecx, 2
call fcn.004028c0
mov edx, 0x41c354
lea eax, [esi + 5]
call fcn.0041c374
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c374
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 0x41c3cd
mov dword [0x450a1c], 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 0x41d584
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 0x41d58a
ret

Function at 0x41f98c
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 0x41f9dd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f9c4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41f9b4
jmp 0x41f9dd
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 0x41f9c5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42804c
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x427f98
call sub.user32.dll_EnumWindows
ret

Function at 0x428170
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4281ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00427bbc
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x428195
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00427814
cmp dword [ebp - 4], 0
je 0x4281d7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004047f4
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4281f4
lea eax, [ebp - 4]
call fcn.00404344
ret

Function at 0x42aee0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x450ba8], 0
je 0x42b02f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x44fdfc]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42b02f
mov eax, dword [0x450bac]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x450ba8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42affe
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x450ba8]
call fcn.004139f8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42aff6
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42aff6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42aff6
mov eax, dword [ebp - 0x14]
call fcn.00433970
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42aff6
push ebp
call fcn.0042ae9c
pop ecx
test al, al
jne 0x42aff6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42afb2
mov eax, dword [ebp - 0x14]
call fcn.00432504
dec eax
jle 0x42aff6
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004037ec
cmp byte [ebp - 1], 0
je 0x42aff6
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42aff6
mov edx, dword [ebp - 0x14]
mov eax, dword [0x450bac]
call fcn.0042a664
inc edi
dec ebx
jne 0x42af45
mov eax, dword [0x450bac]
cmp dword [eax + 8], 0
jle 0x42b016
mov eax, dword [0x450bac]
call fcn.0042a6f4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42b02f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042ad04
pop ecx
test al, al
jne 0x42b02f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret