joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451ea8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4f47d0]
cmp byte [eax + 0xc], 0
je 0x452015
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45200e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f5b2c], 0
jne 0x451efc
push 0x45201c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x452024
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b2c], eax
cmp dword [0x4f2008], 0
jne 0x451ff7
push 0x452034
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4f2008], eax
cmp dword [0x4f2008], 0
je 0x451ff7
push 0x452040
mov eax, dword [0x4f2008]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b30], eax
push 0x452050
mov eax, dword [0x4f2008]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b34], eax
push 0x452064
mov eax, dword [0x4f2008]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b38], eax
push 0x45207c
mov eax, dword [0x4f2008]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b3c], eax
push 0x452094
mov eax, dword [0x4f2008]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b40], eax
push 0x4520a8
mov eax, dword [0x4f2008]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b44], eax
push 0x4520c0
mov eax, dword [0x4f2008]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b48], eax
push 0x4520d8
mov eax, dword [0x4f2008]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b4c], eax
push 0x4520f4
mov eax, dword [0x4f2008]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b50], eax
push 0x452100
mov eax, dword [0x4f2008]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b54], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452015
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404828
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4563fa
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404aa8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a36c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a4a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41d8c8]
call fcn.0041d998
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x45a477
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041da38
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404aa8
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x45a4b8
call fcn.00404b44
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.0041da9c
lea ecx, [ebp - 4]
mov edx, 0x45a4f4
mov eax, dword [ebp - 0xc]
call fcn.0041ddf0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040e310
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x45a45a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x45a500
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4f2114]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a461
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x45a550
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 0x45a597
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a57a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a58b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x45a597
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x45e0a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45e0f8]
test si, 4
je 0x45e0b9
or bl, 1
test si, 8
je 0x45e0c3
or bl, 4
test si, 1
je 0x45e0cd
or bl, 8
test si, 2
je 0x45e0d7
or bl, 0x10
test si, 0x10
je 0x45e0e1
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45e0f0
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45e0fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45e138]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45e116
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45e125
or bl, 4
test esi, 0x20000000
je 0x45e130
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x465174
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x465186
add esp, 0xfffffff0
call fcn.00403d00
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c478
mov eax, dword [0x4f4124]
mov dword [eax + 4], ebx
mov dword [eax], 0x465518
mov eax, dword [0x4f4134]
mov dword [eax + 4], ebx
mov dword [eax], 0x465524
mov eax, ebx
call fcn.00465530
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412cc0]
call fcn.004039ac
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412cc0]
call fcn.004039ac
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412cc0]
call fcn.004039ac
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412cc0]
call fcn.004039ac
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412cc0]
call fcn.004039ac
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, 0x461238
push eax
push 0
push 0
mov eax, dword [0x4f4400]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e6d4]
call fcn.0041fe7c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e6d4]
call fcn.0041fe7c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e6d4]
call fcn.0041fe7c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046596c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x465830
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x465830
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x465830
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4652c3
call fcn.00403d58
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x465614
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 0x4657bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4657a0
mov dl, 1
mov eax, dword [0x41332c]
call fcn.004039ac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404828
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46578f
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.00452204
test al, al
je 0x465782
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, 0x4657d0
lea eax, [ebp - 0x254]
call fcn.00409db0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x465782
xor eax, eax
push ebp
push 0x46577b
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 0x465808
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x465764
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404aa8
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 0x465764
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465782
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x465685
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00417c68
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 0x4657c6
lea eax, [ebp - 0x260]
call fcn.00404828
ret

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

Disassembly:
push ecx
mov eax, dword [0x4f5b78]
cmp byte [eax + 0xad], 0
jne 0x4661b5
cmp dword [0x4f5b90], 0
jne 0x466176
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x466100
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f5b90], eax
cmp dword [0x4f5b8c], 0
jne 0x466191
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4f5b8c], eax
cmp dword [0x4f5b94], 0
jne 0x4661b5
push esp
push 0
push 0
push 0x4660a4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4f5b94], eax
pop edx
ret
Function at 0x466388
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46639f
add esp, 0xfffffff0
call fcn.00403d00
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c478
mov eax, dword [0x4f43d0]
cmp word [eax + 2], 0
jne 0x4663c7
mov eax, dword [0x4f43d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00467de0
mov eax, dword [0x4f4534]
cmp word [eax + 2], 0
jne 0x4663e1
mov eax, dword [0x4f4534]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00467fec
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412cc0]
call fcn.004039ac
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412cc0]
call fcn.004039ac
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x412cc0]
call fcn.004039ac
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41f1d8]
call fcn.00426dec
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x466590
mov eax, dword [0x4f41fc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004271c0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x468718
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4f41fc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d664
test eax, eax
je 0x4664e8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004097d0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d698
test eax, eax
je 0x4664fc
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404aa8
push ebx
push 0x467928
call fcn.0041d5e0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4f3f6c]
cmp byte [eax], 0
jne 0x466546
mov eax, ebx
call fcn.004666d4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004688f4
mov eax, ebx
call fcn.00469444
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x466586
call fcn.00403d58
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466954
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f5b78]
cmp dword [eax + 0x30], 0
je 0x4669fe
cmp dword [ebx + 0x94], 0
jne 0x4669f8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4668e4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4669f8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4669be
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4669f8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00415368
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4669cd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x467710
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x467745
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404918
jmp 0x467752
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040487c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x468ad8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x468b46
mov eax, esi
call fcn.0044d12c
test al, al
je 0x468b46
mov eax, dword [ebx + 0x84]
call fcn.0044ce2c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x468b46
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x468b3a
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044ce2c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00445d4c
jmp 0x468b46
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00468914
pop esi
pop ebx
ret

Function at 0x4905ec
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x490646
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004905dc
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0048e374
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0048decc
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49064d
lea eax, [ebp - 4]
call fcn.00404828
ret
Function at 0x49717c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4971aa
mov eax, ebx
call fcn.00497c30
cmp dword [ebx + 0x40], 0
je 0x4971a3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x49721b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x49720d
cmp dword [ebx + 8], 0
je 0x4971cc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4971de
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49720d
cmp dword [ebx + 8], 0
je 0x4971bf
cmp eax, 3
je 0x4971f1
dec eax
jne 0x4971bf
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4971bf
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4971bf
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x497239
cmp dword [ebx + 0x14], 0xcc
je 0x497239
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00497244
pop ebx
ret
Function at 0x4a9af0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a9d4f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4a9b53
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004a95b8
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d198
cmp al, 1
jne 0x4a9b53
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004a98d0
test al, al
je 0x4a9cde
cmp dword [ebp - 8], 0
jge 0x4a9b71
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004a95b8
mov eax, dword [ebp - 0x210]
call fcn.00404af8
cmp ebx, eax
jge 0x4a9bba
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004a95b8
mov eax, dword [ebp - 0x214]
movzx eax, byte [eax + ebx - 1]
mov edx, dword [0x4f47a8]
movzx eax, al
bt dword [edx], eax
jae 0x4a9bba
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x240]
cmp eax, dword [ebp - 8]
jg 0x4a9bce
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a9acc
cmp ebx, dword [ebp - 8]
je 0x4a9cd0
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4a9bfa
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bd8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f39ec]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x254], 1
xor eax, eax
push ebp
push 0x4a9cbd
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bd8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f39ec]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044ce2c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bd8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f39ec]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044ce2c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9cc4
mov eax, dword [ebp - 4]
mov byte [eax + 0x254], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x248], edx
jmp 0x4a9d31
cmp dword [ebp - 8], 0
jge 0x4a9ce9
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004a95b8
mov eax, dword [ebp - 0x218]
call fcn.00404af8
cmp eax, dword [ebp - 8]
jg 0x4a9d23
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004a95b8
mov eax, dword [ebp - 0x21c]
call fcn.00404af8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004a9acc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9d56
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040484c
ret
Function at 0x4eb2a0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x4eb34a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f7908]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x4f7930
push 1
mov eax, dword [0x4f7904]
push eax
call sub.advapi32.dll_ControlService
mov eax, dword [0x4f7904]
push eax
call sub.advapi32.dll_DeleteService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [0x4f7928], al
cmp byte [0x4f7928], 0
jne 0x4eb324
call sub.kernel32.dll_GetLastError_1
mov dword [0x4f792c], eax
mov eax, dword [0x4f792c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 8]
call fcn.0040910c
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x4eb360
call fcn.00404b44
mov eax, dword [ebp - 4]
call fcn.0043f36c
mov eax, dword [0x4f7904]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eb351
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040484c
ret
Function at 0x100162c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp + 8]
lea edi, [ebp - 0x140]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 0x18]
and dword [ebp - 0x148], 0
and dword [ebp - 0x144], 0
movsd dword es:[edi], dword [esi]
push 0x28
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
push eax
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x140]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.01001578
test eax, eax
jne 0x1001687
xor eax, eax
jmp 0x100176f
lea eax, [ebp - 0x2c]
push eax
push 0x1001158
mov esi, 0x104
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.01001407
add esp, 0x10
test eax, eax
jl 0x1001680
lea eax, [ebp - 0x144]
push eax
push 0x20019
xor edi, edi
push edi
lea eax, [ebp - 0x130]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001755
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x14c]
push eax
push edi
mov dword [ebp - 0x150], esi
push edi
push dword [ebp - 0x144]
xor esi, esi
inc esi
mov dword [ebp - 0x14c], esi
call dword [entry0]
test eax, eax
jne 0x1001755
cmp dword [ebp - 0x14c], 2
mov byte [ebp - 0x2d], al
lea eax, [ebp - 0x130]
jne 0x100173e
push dword [ebp + 0x1c]
push ebx
push eax
call dword [0x1001018]
cmp eax, edi
jbe 0x1001736
cmp eax, dword [ebp + 0x1c]
ja 0x1001736
mov dword [ebp - 0x148], esi
jmp 0x1001755
mov dword [ebp - 0x148], edi
jmp 0x1001755
push eax
push dword [ebp + 0x1c]
push ebx
call fcn.0100139f
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x148], ecx
cmp dword [ebp - 0x144], edi
je 0x1001769
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001bf9
leave
ret 0x18