joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406048
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 0x406278
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4060cb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406278
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4060cb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406294
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406154
xor eax, eax
push ebp
push 0x40614d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405e84
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 0x406132
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4062b4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406132
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 0x406154
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 0x40626e
cmp byte [ebp - 0xd], 0
jne 0x40619b
cmp byte [ebp - 0x12], 0
je 0x40626e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4061b4
dec ebx
cmp byte [ebx], 0x2e
je 0x4061c3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4061b3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40626e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406200
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 0x40626e
cmp byte [ebp - 0xd], 0
je 0x40626e
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 0x40626e
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 0x4087a4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4087f6
test eax, edx
je 0x4087f9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4087b9
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4087df
add ecx, 4
js 0x4087cf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4087dc
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408805
test edx, edx
jne 0x4087ac
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40906c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404eb0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409085
test al, 0x10
je 0x409089
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bb54
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 0x40bb8d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b10
jmp 0x40bb96
mov eax, ebx
mov edx, esi
call fcn.00404a74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bba0
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 0x40bbc2
movzx eax, byte [esp]
jmp 0x40bbc4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c254
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c0cc
mov eax, dword [0x468b78]
cmp byte [eax], 0
je 0x40c2d0
mov eax, dword [0x468968]
call fcn.004033b4
call fcn.0040300c
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.0040929c
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 0x40c318
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c306
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46890c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46b7f8]
call fcn.00405e2c
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 0x40cbd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cca6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404ab8
lea eax, [ebp - 4]
call fcn.00404f08
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404eb0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cc90
mov eax, ebx
call fcn.00402eb0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cc89
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 - 4]
call fcn.00404eb0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cc73
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ccb8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cc73
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc90
mov eax, dword [ebp - 0x10]
call fcn.00402ecc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccad
lea eax, [ebp - 4]
call fcn.00404a20
ret

Function at 0x41f080
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46d9ec
cmp dword [edi], 0
jne 0x41f0fc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46d9e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x467ae4
mov ecx, 2
call fcn.004030a0
mov edx, 0x41f058
lea eax, [esi + 5]
call fcn.0041f078
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f078
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 0x41f0d1
mov dword [0x46d9e8], 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 0x41faec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404eb0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41fb44
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x468cb0]
mov dl, 1
mov eax, dword [0x41f5f8]
call fcn.0040c420
call fcn.00404468
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041f700
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x420d74
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 0x420d7a
ret
Function at 0x4306b0
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.00404ea0
xor eax, eax
push ebp
push 0x4307e5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4307b8
xor edx, edx
push ebp
push 0x4307b1
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x4306fd
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x430786
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x430775
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x43073c
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00404eb0
lea ecx, [ebx + 1]
mov edx, esi
call fcn.004030a0
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 0x43077c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4688a0]
mov dl, 1
mov eax, dword [0x407a64]
call fcn.0040c3e4
call fcn.00404468
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4307ec
lea eax, [ebp - 4]
call fcn.00404a20
ret
Function at 0x4307f4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4309af
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004051a4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x4309c8
call fcn.00404d38
mov eax, ebx
call fcn.0041e600
mov edi, eax
dec edi
test edi, edi
jl 0x4308ac
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041e5d4
mov edx, dword [0x42c9c0]
call fcn.00403d80
test al, al
je 0x4308a8
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.0041e5d4
lea edx, [ebp - 0x14]
call fcn.00450af8
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004051a4
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404db4
inc esi
dec edi
jne 0x43085a
movzx eax, byte [0x4309cc]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x4309d8
mov eax, dword [ebp - 8]
call fcn.0040d6f0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00404ab8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00450af8
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x4309c8
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.00450af8
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x4309c8
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x4309c8
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x4309e4
call fcn.004099b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4309b6
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404a44
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404a44
lea eax, [ebp - 0x14]
call fcn.00404a20
lea eax, [ebp - 0x10]
call fcn.00404a20
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a44
ret
Function at 0x4339d8
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.00404a20
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x433a26
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.00404c90
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x437aa8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x437bdb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41f658]
call fcn.0041f728
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x437bb1
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041f7c8
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404c90
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x437bf0
call fcn.00404d38
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041f82c
lea ecx, [ebp - 4]
mov edx, 0x437c2c
mov eax, dword [ebp - 0xc]
call fcn.0041fa74
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040e044
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x437b94
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x437c38
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4684bc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437b9b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x437c88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x437ccf
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x437cb2
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x437cc3
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x437ccf
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x43b76c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp + 1], cl
mov byte [esp], dl
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
mov eax, dword [0x46dc3c]
cmp esi, dword [eax + 0x30]
jne 0x43b793
or edi, 0x8000000
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x43b7c2
mov eax, dword [0x46dc3c]
cmp esi, dword [eax + 0x30]
jne 0x43b7be
mov eax, dword [0x46dc3c]
cmp byte [eax + 0x5b], 0
jne 0x43b7c2
xor eax, eax
jmp 0x43b7c4
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x43b7d9
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x43b7f0
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x43b7ff
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp + 1]
and al, byte [esp + 2]
jne 0x43b80e
test bl, bl
je 0x43b824
test bl, bl
je 0x43b81c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x43b824
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x43bac8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x43baee
mov eax, esp
push eax
push 0x43ba90
call sub.user32.dll_EnumWindows
jmp 0x43bb01
mov eax, esp
push eax
push 0x43ba70
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x43bb8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x43bbe0]
test si, 4
je 0x43bba1
or bl, 1
test si, 8
je 0x43bbab
or bl, 4
test si, 1
je 0x43bbb5
or bl, 8
test si, 2
je 0x43bbbf
or bl, 0x10
test si, 0x10
je 0x43bbc9
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43bbd8
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43bbe4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x43bc20]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43bbfe
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43bc0d
or bl, 4
test esi, 0x20000000
je 0x43bc18
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x443b08
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x443b1a
add esp, 0xfffffff0
call fcn.00403f18
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041dfc0
mov eax, dword [0x468914]
mov dword [eax + 4], ebx
mov dword [eax], 0x443eac
mov eax, dword [0x468920]
mov dword [eax + 4], ebx
mov dword [eax], 0x443eb8
mov eax, ebx
call fcn.00443ec4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415d70]
call fcn.00403bc4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415d70]
call fcn.00403bc4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415d70]
call fcn.00403bc4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415d70]
call fcn.00403bc4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415d70]
call fcn.00403bc4
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, 0x43f558
push eax
push 0
push 0
mov eax, dword [0x468a8c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x420000]
call fcn.004218f4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x420000]
call fcn.004218f4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x420000]
call fcn.004218f4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004442f4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4441c4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4441c4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4441c4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x443c57
call fcn.00403f70
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x443fa8
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 0x444153
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x444134
mov dl, 1
mov eax, dword [0x416194]
call fcn.00403bc4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404a20
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x444123
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.0045e0c8
test al, al
je 0x444116
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, 0x444164
lea eax, [ebp - 0x254]
call fcn.00409938
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x444116
xor eax, eax
push ebp
push 0x44410f
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 0x44419c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4440f8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c90
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 0x4440f8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444116
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x444019
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00419e6c
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 0x44415a
lea eax, [ebp - 0x260]
call fcn.00404a20
ret

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

Disassembly:
push ecx
mov eax, dword [0x46dc3c]
cmp byte [eax + 0xad], 0
jne 0x444b3d
cmp dword [0x46dc58], 0
jne 0x444afe
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x444a88
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46dc58], eax
cmp dword [0x46dc54], 0
jne 0x444b19
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46dc54], eax
cmp dword [0x46dc5c], 0
jne 0x444b3d
push esp
push 0
push 0
push 0x444a2c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46dc5c], eax
pop edx
ret