joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488c05
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x488d1d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x488d1d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a5720
mov esi, eax
test esi, esi
je 0x488d1d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x488d1d
mov ecx, esi
call fcn.00488b90
cmp edi, eax
jge 0x488d1d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x488ca3
mov dword [esp + 0x34], 1
jmp 0x488cfe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x488d1d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00488170
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4a60c4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a60fc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a4151
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a4129
jmp 0x4a6108
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a77b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a77fb
call fcn.004ad2ac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a77fb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a77f2
xor eax, eax
jmp 0x4a7803
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a7809
pop edi
pop esi
pop ebx
ret 4
Function at 0x4ad7dc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ad80a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ad828
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ad742
jmp 0x4ad828
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ad828
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ad742
test edi, edi
mov eax, edi
jne 0x4ad812
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10007780
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100387ce
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10056700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
push 0
mov ecx, esi
call fcn.100116f0
lea ecx, [esi + 0xa0]
mov dword [ebp - 4], 0
call fcn.1000cbf0
push 0
lea ecx, [esi + 0xb4]
mov byte [ebp - 4], 1
call fcn.100118d0
mov dword [esi + 0x100], 0x1003c7bc
xor eax, eax
mov dword [esi], 0x1003cbbc
mov dword [esi + 0xc], 0x1003cb6c
mov dword [esi + 0x10], 0x1003cb50
mov dword [esi + 0xa0], 0x1003cb14
mov dword [esi + 0xa4], 0x1003cafc
mov dword [esi + 0xb4], 0x1003caf0
mov dword [esi + 0xfc], 0x1003ca9c
mov dword [esi + 0x100], 0x1003ca84
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], eax
mov dword [esi + 0x110], eax
lea edi, [esi + 0x118]
push edi
call dword [0x1003c0fc]
xor eax, eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0xa
mov dword [edi + 0x30], eax
push eax
push 1
lea ecx, [esi + 0x154]
mov byte [ebp - 4], 4
mov dword [esi + 0x14c], eax
mov byte [esi + 0x150], al
call fcn.10011880
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 4]
push 0xffffffffffffffff
push ecx
lea ecx, [esi + 0x104]
mov byte [ebp - 4], 5
call fcn.10006c40
test al, al
jne 0x100078bd
push 0x8007000e
call fcn.10001090
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov edi, dword [esi + 0x104]
test eax, eax
je 0x100078e6
mov ebx, ecx
sub ebx, edi
mov dword [ebp + 0xc], eax
lea edx, [ebx + edi]
push edx
mov ecx, edi
call fcn.1000ee70
add edi, 0x48
dec dword [ebp + 0xc]
jne 0x100078d3
mov eax, dword [ebp + 0x1c]
cmp eax, 1
jg 0x100078f3
mov eax, 1
mov dword [esi + 0x114], eax
xor eax, eax
mov dword [esi + 0x158], eax
mov dword [esi + 0x15c], eax
mov dword [esi + 0x160], eax
mov dword [esi + 0x164], eax
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], eax
mov dword [esi + 0x178], eax
mov dword [esi + 0x17c], eax
mov dword [esi + 0x170], eax
mov eax, dword [ebp + 0x10]
push 0x1003c8e4
mov dword [esi + 0x174], 0x80000000
mov dword [esi + 0x188], eax
call fcn.10003680
add esp, 4
xor eax, eax
mov dword [esi + 0x18c], eax
mov dword [esi + 0x190], eax
mov dword [esi + 0x194], eax
mov dword [esi + 0x198], eax
mov dword [esi + 0x19c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x402fe8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4c9008], 0x8088405
inc edx
mov dword [ebx + 0x4c9008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403778
Capabilities:
Query or enumerate registry value

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

Function at 0x404564
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cd04c], 0
je 0x4045c5
cmp word [0x4cd220], 0xd7b2
jne 0x40458d
cmp dword [0x4cd228], 0
jbe 0x40458d
mov eax, 0x4cd21c
call dword [0x4cd238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4c9074
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 0x4045ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c9034], 0
jne 0x4045e1
push 0
push 0x4c906c
push 0x4c9074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404718
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040277c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4cd04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046e0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40671c
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 0x406782
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.004049d4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031d4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40676c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406789
lea eax, [ebp - 0x10]
call fcn.00404764
ret

Function at 0x40d130
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 0x40d169
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404854
jmp 0x40d172
mov eax, ebx
mov edx, esi
call fcn.004047b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d824
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d69c
mov eax, dword [0x4ccbcc]
cmp byte [eax], 0
je 0x40d8a0
mov eax, dword [0x4cc7f0]
call fcn.00402dd4
call fcn.004028e4
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.0040a780
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 0x40d8e8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d8d6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4cc750]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4cd668]
call fcn.00405c20
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 0x40e1b4
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 0x40e28a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004047fc
lea eax, [ebp - 8]
call fcn.00404c74
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c24
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e274
mov eax, ebx
call fcn.0040277c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e26d
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.00404c24
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e257
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e29c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e257
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 0x40e274
mov eax, dword [ebp - 0x10]
call fcn.0040279c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e291
lea eax, [ebp - 8]
call fcn.00404764
ret

Function at 0x40e808
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 0x40e86c
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.004049d4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a0c4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e873
lea eax, [ebp - 0xc]
call fcn.00404764
ret

Function at 0x420560
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004203b8
dec esi
jne 0x420582
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x4216c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4cd890
cmp dword [edi], 0
jne 0x421740
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4cd88c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c94f0
mov ecx, 2
call fcn.00402978
mov edx, 0x42169c
lea eax, [esi + 5]
call fcn.004216bc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004216bc
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 0x421715
mov dword [0x4cd88c], 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 0x423da0
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 0x423da6
ret

Function at 0x426368
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 0x4263b9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4263a0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x426390
jmp 0x4263b9
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 0x4263a1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433778
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.00404c24
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4337d0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4ccdd0]
mov dl, 1
mov eax, dword [0x433284]
call fcn.0040da14
call fcn.00404094
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004333f8
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 0x43f554
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 0x43f4a0
call sub.user32.dll_EnumWindows
ret

Function at 0x43f674
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 0x43f6f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0043f0d4
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x43f699
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0043ecd4
cmp dword [ebp - 4], 0
je 0x43f6db
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404c24
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 0x43f6f8
lea eax, [ebp - 4]
call fcn.00404764
ret

Function at 0x442bf4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442c44]
test si, 4
je 0x442c08
or bl, 1
test si, 8
je 0x442c12
or bl, 4
test si, 1
je 0x442c1c
or bl, 8
test si, 2
je 0x442c26
or bl, 0x10
test si, 0x10
je 0x442c30
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442c3f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x442c48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442c80]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442c61
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442c70
or bl, 4
test esi, 0x20000000
je 0x442c7b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x449328
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44933a
add esp, 0xfffffff0
call fcn.00403c2c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420634
mov eax, dword [0x4cc764]
mov dword [eax + 4], ebx
mov dword [eax], 0x4496cc
mov eax, dword [0x4cc774]
mov dword [eax + 4], ebx
mov dword [eax], 0x4496d8
mov eax, ebx
call fcn.004496e4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4173b4]
call fcn.004038d8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4173b4]
call fcn.004038d8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4173b4]
call fcn.004038d8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4173b4]
call fcn.004038d8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4173b4]
call fcn.004038d8
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, 0x445b00
push eax
push 0
push 0
mov eax, dword [0x4cca14]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4230d4]
call fcn.004248e8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4230d4]
call fcn.004248e8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4230d4]
call fcn.004248e8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00449b04
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4499e0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4499e0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4499e0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x449477
call fcn.00403c84
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4497c4
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 0x44996f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x449950
mov dl, 1
mov eax, dword [0x417a18]
call fcn.004038d8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404764
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44993f
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.00465e80
test al, al
je 0x449932
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, 0x449980
lea eax, [ebp - 0x254]
call fcn.0040addc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x449932
xor eax, eax
push ebp
push 0x44992b
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 0x4499b8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x449914
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049d4
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 0x449914
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449932
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x449835
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c158
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 0x449976
lea eax, [ebp - 0x260]
call fcn.00404764
ret

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

Disassembly:
push ecx
mov eax, dword [0x4cdb20]
cmp byte [eax + 0xa5], 0
jne 0x44a315
cmp dword [0x4cdb38], 0
jne 0x44a2d6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44a260
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4cdb38], eax
cmp dword [0x4cdb34], 0
jne 0x44a2f1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4cdb34], eax
cmp dword [0x4cdb3c], 0
jne 0x44a315
push esp
push 0
push 0
push 0x44a204
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4cdb3c], eax
pop edx
ret