joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474820
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e2ebb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x831704]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebx + 0x10]
mov edi, dword [0x881ecc]
mov esi, dword [sym.imp.MSVCR120.dll___RTtypeid]
mov dword [ebp - 0x10], 0
call esi
add esp, 4
push eax
push edi
call esi
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCR120.dll_public:_bool___thiscall_type_info::operator_class_type_info_const__const]
test al, al
jne 0x4748b1
cmp dword [0x82e960], 0
je 0x4748b1
push str.Incorrect_or_non_convertible_data_type
push str.Assert_failure
push str.wxAny::As
push 0x3d0
push str.C:DevelopmentJPDebug_toolswinincludewx_3.0wx_any.h
call fcn.005c6f20
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x4748b1
mov byte [0x87c8e0], 0
int3
mov edi, dword [ebx]
mov ebx, dword [ebp + 8]
push 0xffffffffffffffff
mov eax, dword [edi + 8]
mov dword [ebx], eax
lea ecx, [ebx + 8]
mov eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 0x1c], 7
mov dword [ebx + 0x18], 0
push eax
mov word [ebx + 8], ax
lea eax, [edi + 0x10]
push eax
call fcn.00419170
mov dword [ebx + 0x20], 0
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebx + 0x28]
call fcn.0043f8d0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x475280
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x7f5678
push 0x6d2a21
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x831704]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push 0xf01ff
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x47535c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x475355
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
je 0x47535c
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
xor esi, esi
mov dword [ebp - 0x28], esi
cmp esi, dword [ebp - 0x20]
jae 0x475349
lea eax, [esi + esi*8]
push dword [edi + eax*4]
mov ecx, dword [ebp - 0x24]
call fcn.00475390
inc esi
jmp 0x475330
mov dword [ebp - 4], 0xfffffffe
call fcn.00475376
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x475390
Capabilities:
Check for time delay via gettickcount
Continue service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x831704]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 1
push edi
push esi
mov edi, ecx
call fcn.00475280
push 0xf01ff
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x47543b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x47543b
mov ecx, dword [ebp - 0x24]
mov eax, ecx
sub eax, 3
je 0x47540c
dec eax
jne 0x47542f
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call edi
mov dword [ebp - 0x24], 3
jmp 0x4753d6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x48]
xor ecx, ecx
cmp eax, 0x2710
push 0x64
cmova ebx, ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 1
jne 0x475434
mov ecx, dword [ebp - 0x24]
cmp ecx, 3
je 0x4753d6
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d1ba7
mov esp, ebp
pop ebp
ret 4

Function at 0x475450
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x831704]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf01ff
push str.Spooler
push dword [ecx]
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4754e2
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x2c], eax
nop
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4754e1
mov ecx, dword [ebp - 0x24]
mov eax, ecx
dec eax
je 0x4754f4
dec eax
jne 0x4754d5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp eax, 0x2710
push 0x64
cmova edi, ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 1
jne 0x4754da
mov ecx, dword [ebp - 0x24]
cmp ecx, 2
je 0x475490
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.006d1ba7
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push esi
call ebx
mov dword [ebp - 0x24], 2
jmp 0x475490
Function at 0x482fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e4138
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], 0
lea eax, [esp + 0x30]
mov dword [esp + 0xc], eax
test esi, esi
je 0x483125
push 4
mov ecx, esi
call fcn.005e6a20
cmp dword [0x82e960], 0
je 0x48303e
mov ecx, eax
and ecx, 6
cmp ecx, eax
je 0x48303e
push str.format_specifier_doesnt_match_argument_type
push str._argtype___wxFormatString::Arg_String____argtype
push str.wxArgNormalizerWchar_class_wxString_const__::wxArgNormalizerWchar
push 0x214
push str.C:SourceSvn_trunk_tools_sourcewxWidgets_3.0includewx_strvararg.h
call fcn.005c6f20
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x48303e
mov byte [0x87c8e0], 0
int3
push 3
mov ecx, esi
call fcn.005e6a20
cmp dword [0x82e960], 0
je 0x48308b
mov ecx, eax
and ecx, 9
cmp ecx, eax
je 0x48308b
push str.format_specifier_doesnt_match_argument_type
push str._argtype___wxFormatStringSpecifier_T_::value____argtype
push str.wxArgNormalizer_int_::wxArgNormalizer
push 0x1c8
push str.C:SourceSvn_trunk_tools_sourcewxWidgets_3.0includewx_strvararg.h
call fcn.005c6f20
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x48308b
mov byte [0x87c8e0], 0
int3
push 2
mov ecx, esi
call fcn.005e6a20
cmp dword [0x82e960], 0
je 0x4830d8
mov ecx, eax
and ecx, 9
cmp ecx, eax
je 0x4830d8
push str.format_specifier_doesnt_match_argument_type
push str._argtype___wxFormatStringSpecifier_T_::value____argtype
push str.wxArgNormalizer_int_::wxArgNormalizer
push 0x1c8
push str.C:SourceSvn_trunk_tools_sourcewxWidgets_3.0includewx_strvararg.h
call fcn.005c6f20
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x4830d8
mov byte [0x87c8e0], 0
int3
push 1
mov ecx, esi
call fcn.005e6a20
cmp dword [0x82e960], 0
je 0x483125
mov ecx, eax
and ecx, 9
cmp ecx, eax
je 0x483125
push str.format_specifier_doesnt_match_argument_type
push str._argtype___wxFormatStringSpecifier_T_::value____argtype
push str.wxArgNormalizer_int_::wxArgNormalizer
push 0x1c8
push str.C:SourceSvn_trunk_tools_sourcewxWidgets_3.0includewx_strvararg.h
call fcn.005c6f20
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x483125
mov byte [0x87c8e0], 0
int3
mov ecx, esi
call fcn.005e6500
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.005e7850
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push esi
push edi
call fcn.005c88c0
push dword [esp + 0x60]
mov esi, eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 0x1c
cmp dword [esp + 0x44], 8
jb 0x48316d
push dword [esp + 0x30]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x30
Function at 0x4835f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e7060
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x54]
call fcn.005c92f0
mov dword [esp + 0xc], eax
mov dword [esp + 0x4c], 0
call fcn.005c92f0
mov dword [esp + 0x10], eax
push 0xffffffffffffffff
lea eax, [esp + 0x18]
mov byte [esp + 0x50], 1
push 0x722850
push eax
call fcn.00439000
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x5c], 2
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00482d20
add esp, 0x18
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [esp + 0x58], 3
call fcn.0041aea0
push dword [esp + 0x38]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [esp + 0x34], 8
jb 0x4836b2
push dword [esp + 0x20]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x4c], 0xffffffff
call fcn.00420020
mov eax, edi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x44
ret 4

Function at 0x483750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x704a78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xc]
mov esi, dword [esp + 0x40]
push eax
call fcn.00418040
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x38], 0
cmp ecx, dword [esi + 0x10]
je 0x4837a6
xor bl, bl
jmp 0x4837b3
push esi
mov ecx, eax
call fcn.005ca970
test eax, eax
sete bl
push dword [esp + 0x24]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [esp + 0x20], 8
jb 0x4837d3
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x30
ret
Function at 0x48b970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e50c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, dword [esp + 0x48]
lea ecx, [esp + 0x14]
mov esi, dword [esp + 0x4c]
xor eax, eax
push 0x34
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00419290
mov dword [esp + 0x2c], 0
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push 0
push 0
push 0
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], 0
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call dword [eax + 0x270]
mov eax, dword [esp + 0x10]
push dword [esp + 0x2c]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 4], eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [esp + 0x28], 8
jb 0x48ba2b
push dword [esp + 0x14]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 0x4ec4ec4f
imul dword [edi]
sar edx, 3
mov eax, edx
inc edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [edi], eax
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x38
ret

Function at 0x48c890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e5388
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x80]
xor ecx, ecx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], cx
mov dword [esp + 0x24], ecx
push 0xffffffffffffffff
push ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x44], ecx
mov word [esp + 0x34], cx
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x4c], 7
call fcn.00419170
mov dword [esp + 0x44], 0
xor eax, eax
mov byte [esp + 0x78], 1
push 0xffffffffffffffff
push eax
mov word [esp + 0x54], ax
lea ecx, [esp + 0x54]
lea eax, [esp + 0x14]
mov dword [esp + 0x68], 7
push eax
mov dword [esp + 0x68], 0
call fcn.00419170
mov dword [esp + 0x64], 0
lea eax, [esp + 0xb]
mov byte [esp + 0x78], 2
push eax
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.006588c0
lea ecx, [esp + 0x2c]
lea esi, [eax + 0x24]
call fcn.00429770
push dword [esp + 0x24]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [esp + 0x20], 8
jb 0x48c987
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x74
ret 4
Function at 0x4954e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e5da9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], 0
push dword [esp + 0x24]
mov edi, dword [esp + 0x24]
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.004aa6b0
push esi
push dword [esp + 0x30]
mov esi, dword [esp + 0x30]
push esi
push edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 1
call fcn.0049ca20
add esp, 0x10
mov word [edi + 0x3c], si
cmp esi, 0x80
jae 0x495558
mov dword [edi + 0x38], esi
jmp 0x495596
mov ecx, dword [0x87c820]
movzx eax, si
mov dword [esp + 0x2c], eax
test ecx, ecx
jne 0x495576
call fcn.005c3760
mov ecx, eax
mov dword [0x87c820], ecx
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push 1
push edx
push 1
lea edx, [esp + 0x30]
push edx
call dword [eax + 4]
cmp eax, 0xffffffff
je 0x495596
movzx eax, byte [esp + 0x24]
mov dword [edi + 0x38], eax
mov cl, byte [edi + 0x2c]
test cl, 1
je 0x4955ce
test cl, 4
je 0x4955ce
mov eax, dword [edi + 0x38]
cmp eax, 0x20
jl 0x4955ce
cmp eax, 0x100
mov eax, edi
jge 0x4955d0
and cl, 0xfa
mov byte [edi + 0x2c], cl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10
Function at 0x49a820
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
push esi
push edi
push ecx
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x78]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov eax, edi
sub eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, edx
mov esi, dword [esp + 0x24]
mov dword [ebx + 0x30], eax
mov eax, esi
sub eax, dword [esp + 0x14]
mov dword [ebx + 0x34], eax
mov eax, edx
shr ecx, 2
and cl, 1
shr eax, 3
add cl, cl
and al, 1
or cl, al
movzx eax, byte [ebx + 0x2c]
and al, 0xfc
or cl, al
mov eax, edx
mov byte [ebx + 0x2c], cl
mov ecx, edx
shr ecx, 6
and cl, 1
shr eax, 5
and al, 1
add cl, cl
or cl, al
mov eax, edx
shr eax, 1
add cl, cl
and al, 1
or cl, al
mov eax, edx
shr eax, 4
add cl, cl
and al, 1
and dl, 1
or cl, al
movzx eax, byte [ebx + 0x2d]
add cl, cl
and al, 0xe0
or cl, al
or cl, dl
push 0x12
mov byte [ebx + 0x2d], cl
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
sets al
shl al, 2
xor al, byte [ebx + 0x2c]
and al, 4
xor byte [ebx + 0x2c], al
call dword [sym.imp.USER32.dll_GetMessageTime]
mov dword [ebx + 0x10], eax
lea ecx, [esp + 0x1c]
mov dword [ebx + 8], ebp
mov eax, dword [ebp + 0x40]
push ecx
mov dword [ebx + 0x14], eax
lea ecx, [esp + 0x24]
mov eax, dword [ebp]
push ecx
mov ecx, ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
call dword [eax + 0x274]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [0x8520b4], eax
mov dword [0x8520b8], ecx
mov eax, dword [ebx + 0xc]
pop ebp
mov dword [0x8520bc], eax
pop ebx
add esp, 8
ret 0x10

Function at 0x49ca20
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 8]
test ecx, ecx
je 0x49ca38
mov eax, dword [ecx + 0x40]
mov dword [edi + 0x14], eax
mov dword [edi + 8], ecx
jmp 0x49ca3f
mov dword [edi + 0x14], 0xffffffff
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
push 0x11
sets al
add al, al
xor al, byte [edi + 0x2c]
and al, 2
xor byte [edi + 0x2c], al
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [esp + 0x10]
test ax, ax
mov eax, edx
mov dword [edi + 0x44], edx
sets cl
shr eax, 0x10
shr eax, 0xd
and cl, 1
and al, 1
shl al, 2
or cl, al
mov al, byte [edi + 0x2c]
and al, 0xfa
or cl, al
mov eax, dword [esp + 0xc]
mov byte [edi + 0x2c], cl
mov dword [edi + 0x40], eax
call dword [sym.imp.USER32.dll_GetMessageTime]
mov dword [edi + 0x10], eax
pop edi
ret
Function at 0x49f600
Capabilities:
Log keystrokes

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
movzx ecx, dx
lea esp, [esp]
cmp dword [eax*8 + 0x7264f0], ecx
je 0x49f829
inc eax
cmp eax, 0x3c
jb 0x49f610
lea eax, [ecx - 0xd]
cmp eax, 0xd5
ja case.0x49f638.14
movzx eax, byte [eax + 0x49f878]
jmp dword [eax*4 + 0x49f844]
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ecx, eax
shr eax, 0x10
test eax, 0x8000
mov eax, 0
cmovne ecx, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x49f665
mov word [eax], cx
cmp ecx, 0xff
jle 0x49f826
xor ecx, ecx
mov eax, ecx
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x49f690
shr eax, 0x10
test eax, 0x100
jne 0x49f690
mov ecx, 0x17c
mov eax, ecx
ret
mov ecx, 0x16e
mov eax, ecx
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x49f6b2
shr eax, 0x10
test eax, 0x100
jne 0x49f6b2
mov ecx, 0x17d
mov eax, ecx
ret
mov ecx, 0x16f
mov eax, ecx
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x49f6d4
shr eax, 0x10
test eax, 0x100
jne 0x49f6d4
mov ecx, 0x17e
mov eax, ecx
ret
mov ecx, pe_nt_image_headers32
mov eax, ecx
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x49f6f6
shr eax, 0x10
test eax, 0x100
jne 0x49f6f6
mov ecx, 0x177
mov eax, ecx
ret
mov ecx, 0x139
mov eax, ecx
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x49f718
shr eax, 0x10
test eax, 0x100
jne 0x49f718
mov ecx, 0x178
mov eax, ecx
ret
mov ecx, 0x13a
mov eax, ecx
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x49f73a
shr eax, 0x10
test eax, 0x100
jne 0x49f73a
mov ecx, 0x179
mov eax, ecx
ret
mov ecx, 0x13b
mov eax, ecx
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x49f75c
shr eax, 0x10
test eax, 0x100
jne 0x49f75c
mov ecx, 0x17a
mov eax, ecx
ret
mov ecx, 0x13c
mov eax, ecx
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x49f77e
shr eax, 0x10
test eax, 0x100
jne 0x49f77e
mov ecx, 0x17b
mov eax, ecx
ret
mov ecx, 0x13d
mov eax, ecx
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x49f7a0
shr eax, 0x10
test eax, 0x100
jne 0x49f7a0
mov ecx, 0x180
mov eax, ecx
ret
mov ecx, 0x142
mov eax, ecx
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x49f7bf
shr eax, 0x10
mov ecx, 0x181
test eax, 0x100
je 0x49f7c4
mov ecx, 0x7f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x49f826
mov edx, 0x7f
mov word [eax], dx
mov eax, ecx
ret
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
shr ecx, 0x10
and ecx, 0x100
neg ecx
sbb ecx, ecx
and ecx, 0x165
add ecx, 0xd
test eax, eax
je 0x49f826
mov edx, 0xd
mov word [eax], dx
mov eax, ecx
ret
cmp dx, 0x30
jb 0x49f810
cmp dx, 0x39
jbe 0x49f81b
lea eax, [edx - 0x41]
cmp ax, 0x19
jbe 0x49f81b
xor ecx, ecx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x49f826
mov word [eax], dx
mov eax, ecx
ret
mov eax, dword [eax*8 + 0x7264f4]
cmp eax, 0x12c
jge 0x49f842
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x49f842
mov word [ecx], ax
ret
Function at 0x49f950
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
jmp 0x49f960
cmp dword [eax*8 + 0x7264f4], esi
je 0x49fa22
inc eax
cmp eax, 0x3c
jb 0x49f960
push ebx
xor bl, bl
cmp esi, 0x177
jg 0x49f9f2
je 0x49f9b5
lea eax, [esi - 0x7f]
cmp eax, 0xf0
ja case.0x49f9fd.383
movzx eax, byte [eax + 0x49fa64]
jmp dword [eax*4 + 0x49fa38]
mov bl, 1
mov eax, 0x21
jmp 0x49fa15
mov bl, 1
mov eax, 0x22
jmp 0x49fa15
mov bl, 1
mov eax, 0x23
jmp 0x49fa15
mov bl, 1
mov eax, 0x24
jmp 0x49fa15
mov bl, 1
mov eax, 0x25
jmp 0x49fa15
mov bl, 1
mov eax, 0x26
jmp 0x49fa15
mov bl, 1
mov eax, 0x27
jmp 0x49fa15
mov bl, 1
mov eax, 0x28
jmp 0x49fa15
mov bl, 1
mov eax, 0x2d
jmp 0x49fa15
mov bl, 1
mov eax, 0x2e
jmp 0x49fa15
lea eax, [esi - 0x178]
cmp eax, 9
ja case.0x49f9fd.383
jmp dword [eax*4 + 0x49fb58]
push esi
call dword [sym.imp.USER32.dll_VkKeyScanW]
cmp al, 0xff
movzx eax, al
jne 0x49fa15
movzx eax, si
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x49fa1f
mov byte [ecx], bl
pop ebx
pop esi
ret
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x49fa2d
mov byte [ecx], 0
mov ax, word [eax*8 + 0x7264f0]
pop esi
ret
Function at 0x4a13c0
Capabilities:
Log keystrokes via application hook

Disassembly:
push 0xffffffffffffffff
push 0x701410
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
cmp byte [esp + 0x78], 0
je 0x4a157e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4a1180
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x8520a4], eax
test eax, eax
jne 0x4a158e
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 6
call fcn.00439d10
add esp, 0x24
test al, al
je 0x4a158e
call fcn.005c92f0
mov dword [esp + 4], eax
mov dword [esp + 0x70], 0
call fcn.005c92f0
mov dword [esp + 8], eax
push 0xffffffffffffffff
lea eax, [esp + 0x10]
mov byte [esp + 0x74], 1
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.00439000
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
push 0
mov dword [esp + 0x80], 2
mov dword [esp + 0x2c], 6
mov dword [esp + 0x34], str....._srcmswwindow.cpp
mov dword [esp + 0x3c], str.wxSetKeyboardHook
mov dword [esp + 0x38], 0x1a96
mov dword [esp + 0x40], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov dword [esp + 0x6c], eax
mov byte [esp + 0x80], 3
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.005e5210
add esp, 0x14
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push str.SetWindowsHookEx_wxKeyboardHook_
push 0x1a96
push str....._srcmswwindow.cpp
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
call fcn.00479740
push dword [esp + 0x5c]
mov byte [esp + 0x74], 2
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [esp + 0x58], 8
jb 0x4a154b
push dword [esp + 0x44]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
call fcn.00439c40
lea ecx, [esp + 4]
mov dword [esp + 0x70], 0xffffffff
call fcn.00420020
jmp 0x4a158e
mov eax, dword [0x8520a4]
test eax, eax
je 0x4a158e
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x70
ret