joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4244a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
test edi, edi
je 0x4244e6
mov eax, dword [ebp + 8]
mov edx, dword [eax]
movzx ecx, dx
imul ecx, ecx, 0x9069
shr edx, 0x10
add ecx, edx
mov edx, dword [eax + 4]
mov dword [eax], ecx
movzx ecx, dx
imul ecx, ecx, 0x4650
shr edx, 0x10
add edx, ecx
mov cl, byte [eax + 8]
xor cl, dl
mov dword [eax + 4], edx
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x4244b3
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4252d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test edx, edx
je 0x4253e9
mov eax, dword [ebp + 8]
nop
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
sub edx, 1
jne 0x4252e0
mov eax, ecx
pop ebp
ret 4
Function at 0x426590
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov dword [ecx + 0x34], 0
mov byte [ecx + 0x1f], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x468], 0xffffffff
mov dword [ecx + 0x46c], 0xffffffff
call fcn.00426b20
xor edx, edx
lea esi, [ecx + 0x60]
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x4265c1
pop esi
ret

Function at 0x428520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push dword [ebp + 8]
push edx
push 0
push 0
call fcn.0044a2ce
add esp, 0x18
mov dword [esi], eax
mov ecx, eax
call fcn.00428470
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4581c9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004579a3

Function at 0x4581d4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00457bde

Function at 0x4591be
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00458f45
Function at 0x402c38
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402c75
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402c95
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040459c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40338c
Capabilities:
Query or enumerate registry value

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

Function at 0x4041a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46f044], 0
je 0x404209
cmp word [0x46f218], 0xd7b2
jne 0x4041d1
cmp dword [0x46f220], 0
jbe 0x4041d1
mov eax, 0x46f214
call dword [0x46f230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46d06c
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 0x404230
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46d030], 0
jne 0x404225
push 0
push 0x46d064
push 0x46d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f80
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 0x405fe6
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.0040459c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f50
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405fd0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fed
lea eax, [ebp - 0x10]
call fcn.0040432c
ret

Function at 0x40b274
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 0x40b2ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040441c
jmp 0x40b2b6
mov eax, ebx
mov edx, esi
call fcn.00404380
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b978
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b7e0
mov eax, dword [0x46ea1c]
cmp byte [eax], 0
je 0x40b9f4
mov eax, dword [0x46e840]
call fcn.00402dbc
call fcn.00402bc4
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.00408928
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 0x40ba3c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ba2a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46e7f0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46f660]
call fcn.004053ec
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 0x40c298
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 0x40c36e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004043c4
lea eax, [ebp - 8]
call fcn.0040483c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004047ec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c358
mov eax, ebx
call fcn.00402a38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c351
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.004047ec
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c33b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c380
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c33b
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 0x40c358
mov eax, dword [ebp - 0x10]
call fcn.00402a68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c375
lea eax, [ebp - 8]
call fcn.0040432c
ret

Function at 0x40c8d4
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 0x40c938
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.0040459c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408450
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c93f
lea eax, [ebp - 0xc]
call fcn.0040432c
ret
Function at 0x41acd4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x46f884
cmp dword [esi], 0
jne 0x41ad7a
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x46f880]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x46d478
mov ecx, 2
call fcn.00402cd0
mov edx, 0x41acac
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041accc
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041accc
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41ad41
mov eax, dword [ebp - 8]
mov dword [0x46f880], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41d2f0
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 0x41d2f6
ret

Function at 0x41fa7c
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 0x41facd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41fab4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41faa4
jmp 0x41facd
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 0x41fab5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e3b4
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 0x42e300
call sub.user32.dll_EnumWindows
ret

Function at 0x42e4d4
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 0x42e551
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042df34
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 0x42e4f9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042db34
cmp dword [ebp - 4], 0
je 0x42e53b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004047ec
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 0x42e558
lea eax, [ebp - 4]
call fcn.0040432c
ret

Function at 0x431a6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x431abc]
test si, 4
je 0x431a80
or bl, 1
test si, 8
je 0x431a8a
or bl, 4
test si, 1
je 0x431a94
or bl, 8
test si, 2
je 0x431a9e
or bl, 0x10
test si, 0x10
je 0x431aa8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431ab7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x431ac0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x431af8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431ad9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431ae8
or bl, 4
test esi, 0x20000000
je 0x431af3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4381bc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4381ce
add esp, 0xfffffff0
call fcn.00403850
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419c2c
mov eax, dword [0x46e7f8]
mov dword [eax + 4], ebx
mov dword [eax], 0x438560
mov eax, dword [0x46e804]
mov dword [eax + 4], ebx
mov dword [eax], 0x43856c
mov eax, ebx
call fcn.00438578
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411db0]
call fcn.004034e8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411db0]
call fcn.004034e8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411db0]
call fcn.004034e8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411db0]
call fcn.004034e8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411db0]
call fcn.004034e8
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, 0x434990
push eax
push 0
push 0
mov eax, dword [0x46e940]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c6c4]
call fcn.0041de5c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c6c4]
call fcn.0041de5c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c6c4]
call fcn.0041de5c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004389c8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x438890
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x438890
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x438890
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43830b
call fcn.004038a8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x438674
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 0x43881f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x438800
mov dl, 1
mov eax, dword [0x4121cc]
call fcn.004034e8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040432c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4387ef
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.004543d0
test al, al
je 0x4387e2
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, 0x438830
lea eax, [ebp - 0x254]
call fcn.00408f9c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4387e2
xor eax, eax
push ebp
push 0x4387db
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 0x438868
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4387c4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040459c
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 0x4387c4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040459c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4387e2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4386e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415d30
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 0x438826
lea eax, [ebp - 0x260]
call fcn.0040432c
ret

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

Disassembly:
push ecx
mov eax, dword [0x46faac]
cmp byte [eax + 0xa5], 0
jne 0x4391d9
cmp dword [0x46fac4], 0
jne 0x43919a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x439124
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46fac4], eax
cmp dword [0x46fac0], 0
jne 0x4391b5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46fac0], eax
cmp dword [0x46fac8], 0
jne 0x4391d9
push esp
push 0
push 0
push 0x4390c8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46fac8], eax
pop edx
ret
Function at 0x43986c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46faac]
cmp dword [eax + 0x30], 0
je 0x439916
cmp dword [ebx + 0x94], 0
jne 0x439910
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4397fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x439910
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 0x4398d6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x439910
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.0041412c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4398e5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x43a474
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 0x43a4a9
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.0040441c
jmp 0x43a4b6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404380
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43b4d4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x43b515
mov eax, esi
call fcn.0044f9ac
test al, al
je 0x43b515
mov eax, dword [ebx + 0x84]
call fcn.0044f6a8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43b515
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044f6a8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x43e47c
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.0040432c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43e4cb
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.0040459c
pop ebx
mov esp, ebp
pop ebp
ret