joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a190
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004397cc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004063d8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x43a1ef
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5d4888]
mov dl, 1
mov eax, dword [0x439644]
call fcn.00414840
call fcn.00404d18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43a1f8
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.004063d8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x43a250
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5d4d94]
mov dl, 1
mov eax, dword [0x439644]
call fcn.00414840
call fcn.00404d18
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004397fc
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 0x43b60c
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 0x43b612
ret
Function at 0x448730
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 0x44875f
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x4487de
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00447000
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 0x4487ac
mov cx, word [esp]
sub cx, si
jmp 0x4487ae
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x448795
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 0x4487d4
mov cx, word [esp]
sub cx, si
jmp 0x4487d6
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4487bd
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x44883b
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00448404
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x448826
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 0x44883b
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x44873a
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x458e68
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x458f3a
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x458f0c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x458efb
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.00403214
mov eax, dword [ebp - 4]
call fcn.00458d4c
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458f02
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret

Function at 0x458fd8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x459080
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x459053
mov edx, ebx
mov eax, dword [0x43afc0]
call fcn.00440298
test al, al
je 0x459043
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004401b0
call fcn.00404e0c
jmp 0x459087
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x45900b
mov ecx, dword [0x5d4504]
mov dl, 1
mov eax, dword [0x458c94]
call fcn.00414804
call fcn.00404d18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459087
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x459090
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4590ec
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4590f3
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4590fc
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x459151
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459158
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4591c8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x45923d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00458d4c
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.00440274
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x459227
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459244
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x45924c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4592c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00458d4c
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x68]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4592ab
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4592c8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x477c48
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.00406334
xor eax, eax
push ebp
push 0x477ddd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x477dab
xor edx, edx
push ebp
push 0x477da4
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004063a0
mov eax, dword [ebp - 8]
test eax, eax
je 0x477cb7
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x477cb7
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.0040572c
test eax, eax
je 0x477cc0
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 0x477d79
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 0x477d68
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004063a0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x477d22
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x477d22
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.0040572c
test eax, eax
je 0x477d2b
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.004063d8
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 0x477d6f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x5d43fc]
mov dl, 1
mov eax, dword [0x40b01c]
call fcn.00414804
call fcn.00404d18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477de4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406344
ret

Function at 0x47a5cc
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.0040634c
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x47a613
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.0040654c
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x47fa2c
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 0x47fb65
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 [0x4396b8]
call fcn.00439974
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x47fb3b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00439a14
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040654c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x47fb80
call fcn.00406820
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00439ba0
test al, al
je 0x47fb25
lea ecx, [ebp - 4]
mov edx, 0x47fbf4
mov eax, dword [ebp - 0xc]
call fcn.00439e98
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004172e8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x47fb1e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x47fc0c
mov eax, dword [ebp - 8]
push eax
call fcn.0040930c
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x5c731c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fb25
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 0x47fb42
mov eax, dword [ebp - 0xc]
call fcn.00403e80
ret

Function at 0x47fc70
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 0x47fcb7
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47fc9a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47fcab
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x47fcb7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x485af0
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 [0x5da160], 0
je 0x485c31
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5d49bc]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x485c31
mov eax, dword [0x5da164]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5da160]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x485c00
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5da160]
call fcn.00425ec0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x485bf8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x485bf8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x485bf8
mov eax, dword [ebp - 0x14]
call fcn.00490e44
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x485bf8
push ebp
call fcn.00485aac
pop ecx
test al, al
jne 0x485bf8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004040c8
test al, al
je 0x485bf8
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.004040c8
cmp byte [ebp - 1], 0
je 0x485bf8
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00408f58
test al, al
je 0x485bf8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5da164]
call fcn.00485224
inc edi
dec ebx
jne 0x485b55
mov eax, dword [0x5da164]
cmp dword [eax + 8], 0
jle 0x485c18
mov eax, dword [0x5da164]
call fcn.004852dc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x485c31
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00485910
pop ecx
test al, al
jne 0x485c31
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 0x48db30
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.00408f40
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.00487f6c
test ebx, ebx
jne 0x48db83
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0048d9c4
mov ebx, eax
test ebx, ebx
je 0x48dc6e
cmp esi, ebx
je 0x48dbac
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 0x48dbc1
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 0x48dbf9
add eax, 0xffffff5f
sub eax, 2
jb 0x48dc11
dec eax
sub eax, 2
jb 0x48dc25
dec eax
sub eax, 2
jb 0x48dc1b
jmp 0x48dc2f
add eax, 0xfffffdff
sub eax, 2
jb 0x48dc11
dec eax
sub eax, 2
jb 0x48dc25
dec eax
sub eax, 2
jb 0x48dc1b
jmp 0x48dc2f
mov byte [esp + 0x120], 0
jmp 0x48dc37
mov byte [esp + 0x120], 2
jmp 0x48dc37
mov byte [esp + 0x120], 1
jmp 0x48dc37
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0049ed3c
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00489770
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x48dc70
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x49e840
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 0x49e861
test edi, 0x40000
je 0x49e87b
test bl, bl
jne 0x49e8fc
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x49e8fc
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 0x49e8ae
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x49e8c3
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x49e8d2
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x49e8e3
cmp byte [esp + 2], 0
je 0x49e8fc
cmp byte [esp + 2], 0
je 0x49e8f4
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x49e8fc
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x49eba8
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 0x49ebce
mov eax, esp
push eax
push 0x49eb70
call sub.user32.dll_EnumWindows
jmp 0x49ebe1
mov eax, esp
push eax
push 0x49eb50
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 0x49eca4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x49ecf8]
test si, 4
je 0x49ecb9
or bl, 1
test si, 8
je 0x49ecc3
or bl, 4
test si, 1
je 0x49eccd
or bl, 8
test si, 2
je 0x49ecd7
or bl, 0x10
test si, 0x10
je 0x49ece1
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49ecf0
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x49ecfc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x49ed38]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49ed16
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49ed25
or bl, 4
test esi, 0x20000000
je 0x49ed30
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x49ed88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0049ed3c
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x4a4d50
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, dword [esi + 8]
dec eax
je 0x4a4d66
sub eax, 2
je 0x4a4dac
jmp 0x4a4dee
mov eax, ebx
call fcn.00490e44
call fcn.0049e7c0
test eax, eax
je 0x4a4d7f
mov byte [ebx + 0x284], 2
jmp 0x4a4da0
mov eax, ebx
call fcn.00490e44
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x4a4d99
mov byte [ebx + 0x284], 3
jmp 0x4a4da0
mov byte [ebx + 0x284], 1
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
pop esi
pop ebx
ret
cmp byte [ebx + 0x284], 0
je 0x4a4df7
movzx eax, byte [ebx + 0x284]
mov eax, dword [eax*4 + 0x5c7588]
push eax
mov eax, ebx
call fcn.00490e44
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x284], 0
mov eax, dword [0x5da1b8]
cmp ebx, dword [eax + 0x40]
jne 0x4a4df7
mov eax, dword [0x5da1b8]
mov byte [eax + 0x30], 0
pop esi
pop ebx
ret
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
pop esi
pop ebx
ret
Function at 0x4a7180
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4a7192
add esp, 0xfffffff0
call fcn.00404364
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004328c0
mov eax, dword [0x5d4524]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a7594
mov eax, dword [0x5d4530]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a75a0
mov eax, ebx
call fcn.004a75ac
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x423074]
call fcn.00403e50
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x423074]
call fcn.00403e50
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x423074]
call fcn.00403e50
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x423074]
call fcn.00403e50
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x423074]
call fcn.00403e50
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, 0x4a24e0
push eax
push 0
push 0
mov eax, dword [0x5d4870]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x43a868]
call fcn.0043c668
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x43a868]
call fcn.0043c668
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x43a868]
call fcn.0043c668
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x43a868]
call fcn.0043c668
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.004a7b40
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a79c8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a79c8
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a79c8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a79c8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a72e5
call fcn.004043bc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret