joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40868d
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x439331
call fcn.0041e9dc
mov eax, dword [ebp + 0x10]
xor esi, esi
push 0x44
pop ebx
push ebx
mov edi, dword [eax]
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x1c], 0x20
call fcn.0041ff30
push 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x70], ebx
push esi
push eax
mov dword [ebp - 0x68], str.winsta0default
call fcn.0041ff30
add esp, 0x18
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
push ebx
push edi
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4086ec
mov dword [ebp - 0x1c], 0x420
jmp 0x40871c
push str.CreateEnvironmentBlock_failed
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
call fcn.004020ed
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], esi
push eax
push ebx
call fcn.00403025
mov ecx, dword [ebp - 0x18]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a64
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push str._Skip
push eax
call fcn.00403ecd
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 4], ebx
mov eax, dword [eax - 0xc]
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f6b2
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x408790
push str.new_wchar_t_failed
lea ecx, [ebp - 0x18]
call fcn.004020ed
mov esi, 0x372
mov byte [ebp - 4], 2
push esi
lea eax, [ebp - 0x18]
push eax
push 1
call fcn.00403025
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40883b
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax - 0xc]
lea eax, [ecx + 1]
push eax
push ebx
call fcn.00426498
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push esi
push esi
push esi
push ebx
push dword [eax]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4087e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateProcessAsUser_failed
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004020ed
mov byte [ebp - 4], 3
jmp 0x4087f3
push str.CreateProcessAsUser_succeeded
lea ecx, [ebp - 0x1c]
call fcn.004020ed
mov byte [ebp - 4], 4
push esi
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.00403025
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
cmp dword [ebp - 0x10], 0
je 0x40881b
push dword [ebp - 0x10]
call sub.USERENV.dll_DestroyEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040f6ad
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401a64
mov eax, esi
call fcn.0041e9a5
ret
Function at 0x40a5d1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
xor esi, esi
call fcn.004020ed
mov eax, dword [ebp - 8]
mov edi, dword [eax - 0xc]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40a642
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x40a61d
cmp ecx, 2
je 0x40a61d
push edi
jmp 0x40a621
lea eax, [edi + edi]
push eax
push dword [ebp + 0x14]
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401a64
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40a653
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a6b7
push esi
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
test esi, esi
pop esi
cmove edi, eax
mov eax, edi
pop edi
leave
ret
Function at 0x40ca0b
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4504c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
push 0xf0000040
inc ecx
mov dword [ebp - 0x24], eax
push ecx
push eax
push eax
mov bl, al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40cac9
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40cac9
cmp dword [ebp - 0x20], 0
je 0x40cad8
push 0
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40cac9
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40cac9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.0040c7dc
add esp, 0x10
test al, al
je 0x40cac9
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0040cb79
pop ecx
pop ecx
test al, al
movzx ebx, bl
push 1
pop eax
cmovne ebx, eax
cmp dword [ebp - 0x20], 0
je 0x40cad8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x24], 0
je 0x40cae9
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e994
leave
ret
Function at 0x40cb79
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4504c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20
pop ecx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x88]
xor edx, edx
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
movsw word es:[edi], word [esi]
mov esi, dword [ebp + 8]
movzx eax, byte [ecx + esi]
inc ecx
mov dword [ebp - 0x8c], eax
cmp ecx, 8
jae 0x40cbc2
movzx edi, byte [ecx + esi]
inc ecx
jmp 0x40cbc4
xor edi, edi
cmp ecx, 8
jae 0x40cbdc
movzx eax, byte [ecx + esi]
inc ecx
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x8c]
jmp 0x40cbe3
and dword [ebp - 0x90], 0
shr eax, 2
mov ax, word [ebp + eax*2 - 0x88]
mov word [ebx + edx*2], ax
mov eax, dword [ebp - 0x8c]
and eax, 3
shl eax, 4
mov dword [ebp - 0x8c], eax
mov eax, edi
shr eax, 4
and edi, 0xf
or dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
shl edi, 2
mov ax, word [ebp + eax*2 - 0x88]
mov word [ebx + edx*2 + 2], ax
mov eax, dword [ebp - 0x90]
shr eax, 6
or edi, eax
mov ax, word [ebp + edi*2 - 0x88]
mov word [ebx + edx*2 + 4], ax
mov eax, dword [ebp - 0x90]
and eax, 0x3f
mov ax, word [ebp + eax*2 - 0x88]
mov word [ebx + edx*2 + 6], ax
add edx, 4
cmp ecx, 8
jb 0x40cbab
mov ecx, dword [ebp - 4]
push 0x3d
pop eax
mov word [ebx + edx*2 - 2], ax
xor ecx, ebp
xor eax, eax
pop edi
mov word [ebx + edx*2], ax
mov al, 1
pop esi
pop ebx
call fcn.0041e994
leave
ret
Function at 0x40efeb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push eax
push eax
push eax
push 0x40f0b0
push eax
push eax
mov dword [0x450004], ebx
mov dword [0x45000c], edi
mov dword [0x450008], esi
mov dword [0x45001c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 0x14]
push edi
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x418f25
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x43a2cc
call fcn.0041ea47
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x41902f
cmp ebx, dword [esi + 0xc]
jge 0x41902f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x418f7c
cmp ebx, dword [edi + 8]
jl 0x41901d
cmp dword [ebp + 0xc], 0
je 0x41901d
xor ebx, ebx
jmp 0x418fb6
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.00418bb2
mov edi, eax
test edi, edi
je 0x418f96
mov dword [edi], vtable.CThreadData.0
jmp 0x418f98
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.00418eb8
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x418fd1
push 4
push dword [esi + 0xc]
call fcn.0040fc73
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x418fe9
push 2
push 4
push dword [esi + 0xc]
call fcn.0040fc73
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x419056
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.0041ff30
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x41902f
cmp ebx, dword [edi + 8]
jge 0x41902f
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041e9a5
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040f74e
int3
Function at 0x41ac3b
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4504c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.0041ff30
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.00426d36
push eax
call fcn.0040234c
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x442c14]
je 0x41ada5
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x41adb9
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41adb9
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x41acd4
mov eax, edi
jmp 0x41ad03
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x41acf1
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.0041aa20
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x41acfa
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0041216c
test eax, eax
je 0x41ad28
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411932
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x41ad2c
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041216c
test eax, eax
je 0x41ad53
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411932
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x41ad57
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0041216c
test eax, eax
je 0x41ad7f
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411932
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x41ad81
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x41ad93
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x41ada5
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e994
leave
ret 4
xor eax, eax
jmp 0x41ada8

Function at 0x42f84d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f4fe

Function at 0x42f858
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f688
Function at 0x403380
Capabilities:
Query or enumerate registry value

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

Function at 0x4040e8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c048], 0
je 0x404149
cmp word [0x46c21c], 0xd7b2
jne 0x404111
cmp dword [0x46c224], 0
jbe 0x404111
mov eax, 0x46c218
call dword [0x46c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x467054
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 0x404170
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46701c], 0
jne 0x404165
push 0
push 0x467074
push 0x467054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a07c
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 0x40a0b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404354
jmp 0x40a0be
mov eax, ebx
mov edx, esi
call fcn.004042b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a770
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a5e8
mov eax, dword [0x46b9c8]
cmp byte [eax], 0
je 0x40a7dd
mov eax, dword [0x46b754]
call fcn.00402c9c
call fcn.00402870
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004088f4
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 0x40a824
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a813
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46b6f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46c714]
call fcn.00405980
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 0x40b314
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 0x40b378
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.004044cc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408614
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b37f
lea eax, [ebp - 0xc]
call fcn.00404264
ret
Function at 0x421abc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46ca20
cmp dword [edi], 0
jne 0x421b38
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46ca1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4675cc
mov ecx, 2
call fcn.00402904
mov edx, 0x421a94
lea eax, [esi + 5]
call fcn.00421ab4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421ab4
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 0x421b0d
mov dword [0x46ca1c], 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 0x422d24
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 0x422d2a
ret

Function at 0x4251a4
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 0x4251f5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4251dc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4251cc
jmp 0x4251f5
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 0x4251dd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431450
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 0x43139c
call sub.user32.dll_EnumWindows
ret

Function at 0x431574
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 0x4315f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00430fc0
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 0x431599
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00430c18
cmp dword [ebp - 4], 0
je 0x4315db
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404714
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 0x4315f8
lea eax, [ebp - 4]
call fcn.00404264
ret

Function at 0x43454c
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 [0x46cbb0], 0
je 0x43469b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x46b95c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43469b
mov eax, dword [0x46cbb4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46cbb0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43466a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x46cbb0]
call fcn.00418d54
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x434662
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x434662
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x434662
mov eax, dword [ebp - 0x14]
call fcn.0043d188
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x434662
push ebp
call fcn.00434508
pop ecx
test al, al
jne 0x434662
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43461e
mov eax, dword [ebp - 0x14]
call fcn.0043bd1c
dec eax
jle 0x434662
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.0040370c
cmp byte [ebp - 1], 0
je 0x434662
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x434662
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46cbb4]
call fcn.00433cd0
inc edi
dec ebx
jne 0x4345b1
mov eax, dword [0x46cbb4]
cmp dword [eax + 8], 0
jle 0x434682
mov eax, dword [0x46cbb4]
call fcn.00433d60
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43469b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00434370
pop ecx
test al, al
jne 0x43469b
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