joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413350
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 0x413426
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405b94
lea eax, [ebp - 4]
call fcn.00406458
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405bcc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x413410
mov eax, ebx
call fcn.0040305c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x413409
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.00405bcc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4133f3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x413438
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4133f3
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 0x413410
mov eax, dword [ebp - 0x10]
call fcn.00403078
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41342d
lea eax, [ebp - 4]
call fcn.00405b30
ret

Function at 0x414a48
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.00405494
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x4149f2
mov eax, edi
add eax, eax
call fcn.0040305c
mov esi, eax
jmp 0x4149f4
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x414a2d
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 0x414a17
mov eax, esp
cmp esi, eax
je 0x414a3a
mov eax, esi
call fcn.00403078
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 0x414a74
cmp bl, 0
je 0x414a70
cmp bl, 0x41
jl 0x414a6b
cmp bl, 0x5a
jg 0x414a6b
or bl, 0x20
xor al, bl
inc esi
jmp 0x414a4f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4149b4
Function at 0x4152a0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
xor edx, edx
call fcn.00405b40
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405bcc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4152e7
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00405c7c
jmp 0x415300
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405dfc
push ebx
mov eax, dword [esi]
call fcn.00405bcc
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42d390
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 0x42d3de
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.0042d068
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42d3f7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x42d400
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.0042d068
dec esi
jne 0x42d422
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x42e5cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x555e64
cmp dword [edi], 0
jne 0x42e648
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x555e60]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x548dc0
mov ecx, 2
call fcn.00403214
mov edx, 0x42e5a4
lea eax, [esi + 5]
call fcn.0042e5c4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042e5c4
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 0x42e61d
mov dword [0x555e60], 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 0x432af0
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.00405bcc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x432b48
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x550210]
mov dl, 1
mov eax, dword [0x432450]
call fcn.0041283c
call fcn.00404968
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004325d8
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 0x433e90
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 0x433e96
ret
Function at 0x440ecc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x440efb
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x440f7a
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0043f79c
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x440f48
mov cx, word [esp]
sub cx, si
jmp 0x440f4a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x440f31
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x440f70
mov cx, word [esp]
sub cx, si
jmp 0x440f72
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x440f59
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x440fd7
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00440ba0
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x440fc2
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x440fd7
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x440ed6
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x467db0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405b28
xor eax, eax
push ebp
push 0x467f45
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x467f13
xor edx, edx
push ebp
push 0x467f0c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405b94
mov eax, dword [ebp - 8]
test eax, eax
je 0x467e1f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x467e1f
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.004052f4
test eax, eax
je 0x467e28
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x467ee1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x467ed0
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405b94
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x467e8a
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x467e8a
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004052f4
test eax, eax
je 0x467e93
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00405bcc
lea ecx, [esi + 2]
mov edx, ebx
call fcn.00403214
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467ed7
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x54f914]
mov dl, 1
mov eax, dword [0x40a278]
call fcn.00412800
call fcn.00404968
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467f4c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405b38
ret

Function at 0x46a668
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405b40
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x46a6af
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00405d40
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x46faf4
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 0x46fc2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4324c4]
call fcn.00432600
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x46fc03
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004326a0
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00405d40
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x46fc48
call fcn.00405f14
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0043282c
test al, al
je 0x46fbed
lea ecx, [ebp - 4]
mov edx, 0x46fcbc
mov eax, dword [ebp - 0xc]
call fcn.00432a78
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0041521c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x46fbe6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x46fcd4
mov eax, dword [ebp - 8]
push eax
call fcn.00408970
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x54d36c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fbed
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fc0a
mov eax, dword [ebp - 0xc]
call fcn.00403ee0
ret

Function at 0x46fd38
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 0x46fd7f
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46fd62
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46fd73
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x46fd7f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x475c60
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 [0x55616c], 0
je 0x475da1
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x54febc]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x475da1
mov eax, dword [0x556170]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x55616c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x475d70
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x55616c]
call fcn.00423048
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x475d68
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x475d68
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x475d68
mov eax, dword [ebp - 0x14]
call fcn.00480ea8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x475d68
push ebp
call fcn.00475c1c
pop ecx
test al, al
jne 0x475d68
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00404128
test al, al
je 0x475d68
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, 0xffbc
call fcn.00404128
cmp byte [ebp - 1], 0
je 0x475d68
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.004085c0
test al, al
je 0x475d68
mov edx, dword [ebp - 0x14]
mov eax, dword [0x556170]
call fcn.00475394
inc edi
dec ebx
jne 0x475cc5
mov eax, dword [0x556170]
cmp dword [eax + 8], 0
jle 0x475d88
mov eax, dword [0x556170]
call fcn.0047544c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x475da1
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00475a80
pop ecx
test al, al
jne 0x475da1
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 0x47db5c
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.004085a8
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.004780dc
test ebx, ebx
jne 0x47dbaf
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0047d9f0
mov ebx, eax
test ebx, ebx
je 0x47dc9a
cmp esi, ebx
je 0x47dbd8
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x47dbed
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 0x47dc25
add eax, 0xffffff5f
sub eax, 2
jb 0x47dc3d
dec eax
sub eax, 2
jb 0x47dc51
dec eax
sub eax, 2
jb 0x47dc47
jmp 0x47dc5b
add eax, 0xfffffdff
sub eax, 2
jb 0x47dc3d
dec eax
sub eax, 2
jb 0x47dc51
dec eax
sub eax, 2
jb 0x47dc47
jmp 0x47dc5b
mov byte [esp + 0x120], 0
jmp 0x47dc63
mov byte [esp + 0x120], 2
jmp 0x47dc63
mov byte [esp + 0x120], 1
jmp 0x47dc63
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0048e4a0
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004798cc
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x47dc9c
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x48dfa8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x48dfc9
test edi, 0x40000
je 0x48dfe3
test bl, bl
jne 0x48e064
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x48e064
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 0x48e016
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x48e02b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x48e03a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x48e04b
cmp byte [esp + 2], 0
je 0x48e064
cmp byte [esp + 2], 0
je 0x48e05c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x48e064
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x48e30c
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 0x48e332
mov eax, esp
push eax
push 0x48e2d4
call sub.user32.dll_EnumWindows
jmp 0x48e345
mov eax, esp
push eax
push 0x48e2b4
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 0x48e408
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x48e45c]
test si, 4
je 0x48e41d
or bl, 1
test si, 8
je 0x48e427
or bl, 4
test si, 1
je 0x48e431
or bl, 8
test si, 2
je 0x48e43b
or bl, 0x10
test si, 0x10
je 0x48e445
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x48e454
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x48e460
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x48e49c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x48e47a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x48e489
or bl, 4
test esi, 0x20000000
je 0x48e494
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4967f0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x496802
add esp, 0xfffffff0
call fcn.004043c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042d50c
mov eax, dword [0x54fa38]
mov dword [eax + 4], ebx
mov dword [eax], 0x496c04
mov eax, dword [0x54fa4c]
mov dword [eax + 4], ebx
mov dword [eax], 0x496c10
mov eax, ebx
call fcn.00496c1c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x420500]
call fcn.00403eb0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x420500]
call fcn.00403eb0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x420500]
call fcn.00403eb0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x420500]
call fcn.00403eb0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x420500]
call fcn.00403eb0
mov dword [ebx + 0x74], 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, 0x491c24
push eax
push 0
push 0
mov eax, dword [0x54fd90]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x433040]
call fcn.00434ec8
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x433040]
call fcn.00434ec8
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x433040]
call fcn.00434ec8
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x433040]
call fcn.00434ec8
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.00497114
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x496fec
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x496fec
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x496fec
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x496fec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x496955
call fcn.0040441c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x496d8c
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 0x496f39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x496f1a
mov dl, 1
mov eax, dword [0x420be4]
call fcn.00426370
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.00405b40
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x496f09
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.00486998
test al, al
je 0x496efc
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, 0x496f48
lea eax, [ebp - 0x394]
call fcn.0040dd1c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x496efc
xor eax, eax
push ebp
push 0x496ef5
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 0x496fb8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x496ede
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00405d40
mov edx, dword [ebp - 0x3a0]
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 0x496ede
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00405d40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496efc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x496dff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0042615c
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 0x496f40
lea eax, [ebp - 0x3a0]
call fcn.00405b30
ret

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

Disassembly:
push ecx
mov eax, dword [0x5561c4]
cmp byte [eax + 0xa9], 0
jne 0x49799a
cmp dword [0x5561dc], 0
jne 0x49795a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x54d660]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5561dc], eax
cmp dword [0x5561d8], 0
jne 0x497975
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5561d8], eax
cmp dword [0x5561e0], 0
jne 0x49799a
push esp
push 0
push 0
mov eax, dword [0x54d65c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5561e0], eax
pop edx
ret