joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421e24
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 0x421efa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406e1c
lea eax, [ebp - 4]
call fcn.00406fb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040753c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x421ee4
mov eax, ebx
call fcn.004044ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x421edd
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.0040753c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x421ec7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x421f0c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x421ec7
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 0x421ee4
mov eax, dword [ebp - 0x10]
call fcn.00404508
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421f01
lea eax, [ebp - 4]
call fcn.00406a24
ret

Function at 0x4227a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406ef0
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a100
mov edi, eax
cmp edi, 0x104
jbe 0x42274b
mov eax, edi
add eax, eax
call fcn.004044ec
mov esi, eax
jmp 0x42274d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a100
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x422788
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x422772
mov eax, esp
cmp esi, eax
je 0x422795
mov eax, esi
call fcn.00404508
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4227d0
cmp bl, 0
je 0x4227cc
cmp bl, 0x41
jl 0x4227c7
cmp bl, 0x5a
jg 0x4227c7
or bl, 0x20
xor al, bl
inc esi
jmp 0x4227ab
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42270c

Function at 0x422fd0
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004075d0
add esp, 0x800
pop ebx
ret
Function at 0x449618
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4496b6
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x44967a
cmp byte [ebx + 0x10], 0
jne 0x44967a
cmp byte [ebx + 0x3c], 0
jne 0x44967a
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x44969b
lea edx, [ebp - 4]
mov eax, dword [0x4fe5cc]
call fcn.0040a06c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4393b8]
call fcn.004211ac
call fcn.00406158
jmp 0x44969b
lea edx, [ebp - 8]
mov eax, dword [0x4fe5cc]
call fcn.0040a06c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4393b8]
call fcn.004211ac
call fcn.00406158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4496bd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406a84
ret

Function at 0x4499dc
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x449a2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00449550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x449a43
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x449a4c
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.00449550
dec esi
jne 0x449a6e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x44ba94
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x503fc0
cmp dword [edi], 0
jne 0x44bb10
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x503fbc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4fc7fc
mov ecx, 2
call fcn.004046b0
mov edx, 0x44ba6c
lea eax, [esi + 5]
call fcn.0044ba8c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0044ba8c
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 0x44bae5
mov dword [0x503fbc], 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 0x44e53c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x44e58e
test eax, edx
je 0x44e591
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x44e551
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 0x44e577
add ecx, 4
js 0x44e567
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x44e574
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 0x44e59d
test edx, edx
jne 0x44e544
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4519bc
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.0040753c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.00451494
test al, al
jne 0x451a1d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4fe7a8]
mov dl, 1
mov eax, dword [0x4501d0]
call fcn.004212a4
call fcn.00406158
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004513fc
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 0x458b74
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 0x458b7a
ret
Function at 0x471ee8
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 - 0xc]
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 [0x5041b0], 0
je 0x472029
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4fe5a0]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x472029
mov eax, dword [0x5041b4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5041b0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x471ff8
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5041b0]
call fcn.0043e610
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x471ff0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1f2], 0
je 0x471ff0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x471ff0
mov eax, dword [ebp - 0x14]
call fcn.0047d6a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x471ff0
push ebp
call fcn.00471ea4
pop ecx
test al, al
jne 0x471ff0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00405148
test al, al
je 0x471ff0
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00405148
cmp byte [ebp - 1], 0
je 0x471ff0
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040b770
test al, al
je 0x471ff0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5041b4]
call fcn.00471604
inc edi
dec ebx
jne 0x471f4d
mov eax, dword [0x5041b4]
cmp dword [eax + 8], 0
jle 0x472010
mov eax, dword [0x5041b4]
call fcn.004716bc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x472029
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00471d0c
pop ecx
test al, al
jne 0x472029
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
Function at 0x47a22c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040b758
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00474494
test ebx, ebx
jne 0x47a27f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0047a0a8
mov ebx, eax
test ebx, ebx
je 0x47a375
cmp esi, ebx
je 0x47a2a8
mov eax, dword [esp]
sub eax, dword [ebx + 0x48]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x4c]
mov dword [esp + 0x118], eax
jmp 0x47a2bd
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x47a2f5
add eax, 0xffffff5f
sub eax, 2
jb 0x47a30d
dec eax
sub eax, 2
jb 0x47a321
dec eax
sub eax, 2
jb 0x47a317
jmp 0x47a32b
add eax, 0xfffffdff
sub eax, 2
jb 0x47a30d
dec eax
sub eax, 2
jb 0x47a321
dec eax
sub eax, 2
jb 0x47a317
jmp 0x47a32b
mov byte [esp + 0x120], 0
jmp 0x47a333
mov byte [esp + 0x120], 2
jmp 0x47a333
mov byte [esp + 0x120], 1
jmp 0x47a333
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004dbafc
mov esi, eax
call fcn.00470f94
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00475d38
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x47a377
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x49bc8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, word [0x49bcc8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49bca4
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49bcb4
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49bcc4
or bx, 2
mov eax, ebx
pop ebx
ret

Function at 0x4b8c1c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.004b8ccc
test eax, eax
je 0x4b8c57
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.004b8ccc
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406b7c
jmp 0x4b8c65
mov ecx, esi
mov edx, 0x4b8c84
mov eax, ebx
call fcn.004b8b64
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00406dd4
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4cbb64
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00406a24
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x4cbbb6
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x4cbbaf
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004075d0
jmp 0x4cbbb6
mov eax, esi
call fcn.00406a24
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4d0fdc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d113b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x4fe0f8], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4503ec]
call fcn.00451424
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4d1111
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004514d0
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004075d0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4d1154
call fcn.00407780
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00451534
test al, al
je 0x4d10fb
lea ecx, [ebp - 4]
mov edx, 0x4d11c8
mov eax, dword [ebp - 0xc]
call fcn.00451940
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00423294
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d10fb
xor edx, edx
push ebp
push 0x4d10f4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4d11e0
mov eax, dword [ebp - 8]
push eax
call fcn.0040c85c
test eax, eax
je 0x4d10dd
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x4d10dd
call fcn.004d0f68
test eax, eax
je 0x4d10cd
mov eax, dword [ebx + 0x50]
jmp 0x4d10d0
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x4fe0f8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d10fb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1118
mov eax, dword [ebp - 0xc]
call fcn.00404e74
ret

Function at 0x4d1244
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 0x4d128b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d126e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d127f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4d128b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4db5e8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x4db60f
test edi, 0x40000
je 0x4db629
test bl, bl
jne 0x4db6b8
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x4db6b8
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x4db65c
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x4db678
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0x40000
or ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
jmp 0x4db68e
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0xfffbffff
and ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4db69f
cmp byte [esp + 2], 0
je 0x4db6b8
cmp byte [esp + 2], 0
je 0x4db6b0
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4db6b8
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4db96c
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 0x4db992
mov eax, esp
push eax
push 0x4db934
call sub.user32.dll_EnumWindows
jmp 0x4db9a5
mov eax, esp
push eax
push 0x4db914
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 0x4dba68
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4dbab8]
test bl, 4
je 0x4dba7c
or si, 1
test bl, 8
je 0x4dba85
or si, 4
test bl, 1
je 0x4dba8e
or si, 8
test bl, 2
je 0x4dba97
or si, 0x10
test bl, 0x10
je 0x4dbaa0
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dbab0
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4dbabc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4dbaf8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dbad7
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dbae7
or bx, 4
test esi, 0x20000000
je 0x4dbaf3
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4e4248
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4e425a
add esp, 0xfffffff0
call fcn.004053e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00449b6c
mov eax, dword [0x4fe354]
mov dword [eax + 4], ebx
mov dword [eax], 0x4e4688
mov eax, dword [0x4fe360]
mov dword [eax + 4], ebx
mov dword [eax], 0x4e4694
mov eax, ebx
call fcn.004e46a0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x4311d0]
call fcn.00404e44
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4311d0]
call fcn.00404e44
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4311d0]
call fcn.00404e44
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x4311d0]
call fcn.00404e44
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x4311d0]
call fcn.00404e44
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 + 0x48], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x60]
push eax
mov eax, 0x4df514
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4548d8]
call fcn.004594b0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4548d8]
call fcn.004594b0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4548d8]
call fcn.004594b0
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4548d8]
call fcn.004594b0
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4548d8]
call fcn.004594b0
mov dword [ebx + 0x90], eax
mov eax, ebx
call fcn.004e4bfc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4e4a68
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4e4a68
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4e4a68
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4e4a68
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4e4a68
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4e43d7
call fcn.0040543c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4e4808
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e49b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x4e4994
mov dl, 1
mov eax, dword [0x4347e0]
call fcn.00442214
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00406a24
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4e4983
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.004839cc
test al, al
je 0x4e4976
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4e49c4
lea eax, [ebp - 0x394]
call fcn.0041cd5c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4e4976
xor eax, eax
push ebp
push 0x4e496f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4e4a34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4e4958
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004075d0
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
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 + 0x44]
jne 0x4e4958
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004075d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4976
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4e4879
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.00442150
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e49ba
lea eax, [ebp - 0x3a0]
call fcn.00406a24
ret

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

Disassembly:
push ecx
mov eax, dword [0x5042bc]
cmp byte [eax + 0xb1], 0
jne 0x4e558e
cmp dword [0x5042dc], 0
jne 0x4e554e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4fe20c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5042dc], eax
cmp dword [0x5042d8], 0
jne 0x4e5569
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5042d8], eax
cmp dword [0x5042e0], 0
jne 0x4e558e
push esp
push 0
push 0
mov eax, dword [0x4fe208]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5042e0], eax
pop edx
ret