joyce8/EMBER2024-capa huggingface dataset:
Function at 0x518be0
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowsHookExW]
push eax
push 0
push 0x517c50
push 7
call ebx
mov dword [esi], eax
call edi
push eax
push 0
push 0x517cb0
push 2
call ebx
mov dword [esi + 0xc], eax
call edi
push eax
push 0
push 0x517d10
push 4
call ebx
pop edi
mov dword [esi + 0x18], eax
pop esi
pop ebx
ret

Function at 0x51b370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp dword [esp + 4], 0
jne 0x51b37c
xor eax, eax
ret 8
push ebx
push ebp
push esi
push edi
call fcn.0051b2b0
movzx ebx, word [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x17
mov esi, eax
push ebx
push esi
call ebp
mov edi, eax
test edi, edi
jne 0x51b3b8
push 0x17
push ebx
call sub.mfc90u.dll_AfxFindResourceHandle
mov esi, eax
test esi, esi
je 0x51b3f2
push 0x17
push ebx
push esi
call ebp
mov edi, eax
test edi, edi
je 0x51b3f2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x51b3f2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x51b3f2
mov ecx, dword [esp + 0x14]
lea esi, [ebx + ebx + 2]
push esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov edi, eax
test edi, edi
jne 0x51b3fb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
push esi
push 0
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
push edi
push ebx
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
setg al
pop ebx
ret 8

Function at 0x51b440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push edi
mov edi, dword [esp + 0xc]
push 0xe
push eax
push edi
call esi
test eax, eax
jne 0x51b45f
pop edi
pop esi
ret 0x10
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push edi
call ebp
test eax, eax
jne 0x51b474
pop ebp
pop edi
pop esi
ret 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
push ecx
push edx
push 1
push eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
movzx eax, ax
push 3
push eax
push edi
call esi
mov esi, eax
test esi, esi
je 0x51b4aa
push esi
push edi
call ebp
test eax, eax
jne 0x51b4b3
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
ret 0x10
push eax
call ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
push ecx
push edx
push 0x30000
push 1
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
pop ebx
pop ebp
pop edi
pop esi
ret 0x10
Function at 0x51b630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push edi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov eax, edi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x51b666
pop edi
pop ebp
xor eax, eax
pop ebx
ret 0xc
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x51b65e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x51b6ab
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x51b6a0
nop
cmp esi, eax
jae 0x51b6ab
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x51b690
cmp esi, eax
jae 0x51b6ab
movzx edi, word [esi]
test edi, edi
jne 0x51b6b4
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov ebx, dword [esp + 0x1c]
push edi
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBufferSetLength]
lea ecx, [edi + edi]
push ecx
add esi, 2
push esi
push eax
call fcn.0051b230
add esp, 0xc
push edi
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret 0xc

Function at 0x51ba50
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x51b9a0
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov ax, word [esp]
pop ecx
ret
Function at 0x528690
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e21d4
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.005dfbb2
xor edi, edi
push 0xa
lea ecx, [esi + 0x90]
mov dword [esp + 0x1c], edi
mov dword [esi], vtable.CXTPCommandBarsOptions.0
call fcn.00528540
push 0xa
lea ecx, [esi + 0xac]
call fcn.00528540
mov eax, 1
xor ecx, ecx
xor edx, edx
mov dword [esi + 0x70], ecx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x78], ecx
mov ecx, esi
mov byte [esp + 0x18], 2
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x74], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x54], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0xd0], edi
mov dword [esi + 0x64], eax
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
call sub.mfc90u.dll_CCmdTarget::EnableAutomation
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x529f40
Capabilities:
Log keystrokes

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x74]
cmp dword [eax + 0x60], 2
jne 0x529f52
xor eax, eax
pop edi
ret 4
push ebp
mov ebp, dword [esp + 0xc]
lea ecx, [ebp - 0x60]
cmp ecx, 9
ja 0x529f68
cmp dword [eax + 0x80], 0
je 0x529f75
push 2
push ebp
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x529f7c
pop ebp
xor eax, eax
pop edi
ret 4
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
push ebx
push esi
mov ecx, edi
call eax
mov ebx, eax
push ebx
call fcn.00527da0
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
and esi, ebx
xor ebx, ebx
cmp dword [edi + 0x84], ebx
jle 0x529fe4
push ebx
mov ecx, edi
call fcn.00528b40
mov ebp, eax
cmp dword [ebp + 0xe0], 0
jne 0x529fde
mov ecx, dword [edi + 0x74]
test byte [ecx + 0x60], 1
je 0x529fd3
test esi, esi
jne 0x529fd3
push ebp
call fcn.00527da0
add esp, 4
test eax, eax
je 0x529fd3
mov esi, ebp
inc ebx
cmp ebx, dword [edi + 0x84]
jl 0x529fa4
jmp 0x529fe0
mov esi, ebp
mov ebp, dword [esp + 0x14]
test esi, esi
je 0x52a08e
push esi
call fcn.00527da0
add esp, 4
test eax, eax
je 0x52a08e
mov edx, dword [esi]
mov eax, dword [edx + 0x1f8]
push ebp
mov ecx, esi
call eax
test eax, eax
jne 0x52a082
lea ecx, [esp + 0x14]
push ecx
push ebp
push esi
mov ecx, edi
call fcn.00529cb0
mov ebx, eax
test ebx, ebx
je 0x52a08e
mov esi, dword [ebx + 0x100]
cmp dword [esi + 0xe0], 0
mov ebp, dword [ebx + 0x80]
jne 0x52a03e
mov ecx, edi
call fcn.00529f10
push 1
mov ecx, edi
call fcn.00529b60
push 1
mov dword [edi + 0x44], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x148]
push 0
push 1
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x150]
push 1
push ebp
mov ecx, esi
call eax
cmp dword [esp + 0x14], 0
jne 0x52a082
mov edx, dword [ebx]
mov eax, dword [edx + 0xb0]
mov ecx, ebx
call eax
pop esi
pop ebx
pop ebp
mov eax, 1
pop edi
ret 4
pop esi
pop ebx
pop ebp
xor eax, eax
pop edi
ret 4
Function at 0x52a0a0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
cmp dword [ebx + 4], 0x104
push esi
mov esi, ecx
jne 0x52a14f
mov eax, 0x2000
test word [ebx + 0xe], ax
je 0x52a14f
call fcn.00529b90
cmp dword [eax + 4], 0
jg 0x52a14f
push 0
mov ecx, esi
call fcn.00529b90
mov ecx, eax
call fcn.00557df0
test eax, eax
jne 0x52a14f
mov ecx, esi
call fcn.00529b90
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x52a0fa
mov eax, dword [eax + 0x20]
push eax
call fcn.00557a40
add esp, 4
test eax, eax
je 0x52a14f
cmp dword [ebx + 8], 0x12
jne 0x52a120
push 1
mov ecx, esi
call fcn.00529b60
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret 4
cmp dword [esi + 0x24], 0
je 0x52a138
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x52a14f
mov eax, dword [ebx + 8]
test eax, eax
je 0x52a14f
push eax
mov ecx, esi
call fcn.00529f40
test eax, eax
jne 0x52a1da
mov eax, dword [ebx + 4]
cmp eax, 0x105
je 0x52a160
cmp eax, 0x101
jne 0x52a18e
cmp dword [esi + 0xc4], 0
je 0x52a18e
cmp dword [esi + 0xb0], 0
je 0x52a18e
push 0
mov ecx, esi
call fcn.00529b90
mov ecx, eax
call fcn.00557df0
test eax, eax
jne 0x52a18e
push eax
mov ecx, esi
call fcn.00529b60
mov eax, dword [ebx + 4]
cmp eax, 0x7b
je 0x52a19d
cmp eax, 0x105
jne 0x52a1e7
push 0
mov ecx, esi
call fcn.00529b90
mov ecx, eax
call fcn.00557df0
test eax, eax
je 0x52a1e7
push 0x5283e0
mov ecx, 0x741254
call sub.mfc90u.dll_CThreadLocalObject::GetData
test eax, eax
jne 0x52a1c9
call fcn.005df2b2
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
push edx
push ecx
push 0x7b
mov ecx, eax
call fcn.00586d70
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
cmp dword [ebx + 4], 0x20a
push edi
jne 0x52a2b3
push 0x5283e0
mov ecx, 0x741254
call sub.mfc90u.dll_CThreadLocalObject::GetData
test eax, eax
jne 0x52a20d
call fcn.005df2b2
cmp dword [eax + 0x20], 0
jle 0x52a248
push 0x5283e0
mov ecx, 0x741254
call sub.mfc90u.dll_CThreadLocalObject::GetData
test eax, eax
jne 0x52a22b
call fcn.005df2b2
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
push edx
push ecx
push 0x20a
mov ecx, eax
call fcn.00586d70
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
mov ecx, esi
call eax
lea ecx, [esp + 0xc]
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test edi, edi
je 0x52a2b3
cmp dword [edi + 0xf8], 3
jne 0x52a2b3
mov edx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], edx
call fcn.0055c8a0
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
push eax
call dword [sym.imp.USER32.dll_PtInRect]
pop ebp
test eax, eax
je 0x52a2b3
xor edx, edx
cmp word [ebx + 0xa], dx
mov ecx, edi
setle dl
push edx
call fcn.0058fd00
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
mov eax, dword [ebx + 4]
cmp eax, 0x100
jb 0x52a2d7
cmp eax, 0x108
ja 0x52a2d7
push ebx
mov ecx, esi
call fcn.00527e30
mov ecx, eax
call fcn.00537f10
test eax, eax
jne 0x52a2a5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret 4
Function at 0x531420
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, ecx
cmp esi, 8
je 0x531465
cmp esi, 0x21
jb 0x53143a
cmp esi, 0x2e
jbe 0x531465
cmp esi, 0x43
je 0x53144e
cmp esi, 0x56
je 0x53144e
cmp esi, 0x58
je 0x53144e
cmp esi, 0x5a
jne 0x53145b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x531465
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0x20]
lea edx, [esp + 8]
mov dword [esp + 0x14], ecx
push edx
mov ecx, edi
mov dword [esp + 0x10], 0x100
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], esi
call sub.mfc90u.dll_CWnd::IsDialogMessageW
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x1c
ret 8

Function at 0x5315d0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
push edi
mov edi, ecx
cmp dword [edi + 8], 0
jne 0x5315e5
xor eax, eax
pop edi
add esp, 0x1c
ret 8
push ebx
mov ebx, dword [esp + 0x28]
cmp ebx, 0x26
je 0x5315fe
cmp ebx, 0x28
je 0x5315fe
cmp ebx, 0x22
je 0x5315fe
cmp ebx, 0x21
jne 0x53160b
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x531615
pop ebx
xor eax, eax
pop edi
add esp, 0x1c
ret 8
mov eax, dword [edi + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push eax
call esi
push 1
push eax
call esi
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
push edx
push eax
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
neg eax
pop esi
sbb eax, eax
pop ebx
neg eax
pop edi
add esp, 0x1c
ret 8

Function at 0x5316b0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
je 0x5316c0
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x533580
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x218]
push edi
call edx
mov ebx, dword [esp + 0x30]
cmp dword [ebx + 0x184], 0
mov ebp, eax
je 0x5335e3
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x5335d7
mov eax, dword [esp + 0x34]
cmp eax, 0x26
je 0x5335c7
cmp eax, 0x28
je 0x5335c7
cmp eax, 0x21
je 0x5335c7
cmp eax, 0x22
jne 0x5335d7
mov ecx, dword [esp + 0x38]
push ecx
push eax
push 0x100
jmp 0x533667
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0xc
mov edi, dword [esp + 0x34]
cmp edi, 0x73
jne 0x5335fb
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x5335d7
jmp 0x533612
cmp edi, 0x26
je 0x533605
cmp edi, 0x28
jne 0x533612
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x5335d7
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
mov edx, dword [esi + 0x20]
push 1
push 0x102
push 0x102
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x53366e
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0x102
mov ecx, esi
call sub.mfc90u.dll_CWnd::DefWindowProcW
mov eax, dword [esi]
mov edx, dword [eax + 0x218]
mov ecx, esi
call edx
cmp ebp, eax
je 0x5336be
mov eax, dword [ebx]
mov edx, dword [eax + 0x168]
mov ecx, ebx
call edx
mov esi, dword [ebx + 0x184]
test esi, esi
je 0x5336be
cmp dword [esi + 0x20], 0
je 0x5336be
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xb7
push ecx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x535720
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
call edx
test eax, eax
jne 0x535732
pop esi
ret 8
push edi
mov edi, dword [esp + 0xc]
cmp edi, 0x2e
je 0x535745
cmp edi, 8
je 0x535745
xor eax, eax
jmp 0x53574a
mov eax, 1
mov dword [esi + 0x1b0], eax
mov eax, dword [esi + 0x184]
test eax, eax
je 0x53576a
cmp dword [eax + 0x54], 0
je 0x53576a
pop edi
mov eax, 2
pop esi
ret 8
cmp edi, 9
jne 0x535788
cmp dword [esi + 0x1d0], 0
je 0x535781
test byte [esi + 0x1b4], 8
jne 0x5357e0
pop edi
xor eax, eax
pop esi
ret 8
cmp edi, 0xd
je 0x535781
cmp edi, 0x1b
jne 0x5357e0
mov ecx, dword [esi + 0x178]
mov eax, dword [ecx]
mov edx, dword [eax + 0x188]
call edx
mov eax, dword [esi + 0x190]
push eax
mov ecx, esi
call fcn.00532f50
lea ecx, [esi + 0x194]
push ecx
mov ecx, esi
call fcn.00534660
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
push 0
mov ecx, esi
call eax
mov ecx, dword [esi + 0x100]
xor eax, eax
cmp dword [ecx + 0xf8], 2
pop edi
sete al
pop esi
ret 8
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
test eax, eax
je 0x535825
cmp dword [eax + 0x20], 0
je 0x535825
push 0x12
call ebp
test ax, ax
jge 0x535825
push 0x11
call ebp
test ax, ax
jl 0x535825
mov ecx, dword [esi + 0x100]
call fcn.00538eb0
test eax, eax
je 0x535825
movzx edx, di
push edx
mov ecx, eax
call fcn.00529f40
test eax, eax
jne 0x5358c3
cmp edi, 0x73
jne 0x53589d
push 0x12
call ebp
test ax, ax
jge 0x5358b0
mov ecx, dword [esi + 0x1d0]
push ebx
mov ebx, dword [esp + 0x18]
test ecx, ecx
je 0x53584d
push ebx
push edi
call fcn.005315d0
test eax, eax
jne 0x535891
cmp dword [esi + 0x184], 0
je 0x535873
cmp edi, 0x26
je 0x53586a
cmp edi, 0x28
je 0x53586a
cmp edi, 0x22
je 0x53586a
cmp edi, 0x21
jne 0x5358ce
push 0x12
call ebp
test ax, ax
jl 0x5358ce
mov ecx, esi
call fcn.005350d0
test eax, eax
je 0x5358ce
mov ecx, dword [esi + 0x178]
mov edx, dword [ecx]
mov eax, dword [edx + 0x230]
push ebx
push edi
push esi
call eax
pop ebx
pop ebp
pop edi
mov eax, 1
pop esi
ret 8
cmp edi, 0x26
je 0x5358a7
cmp edi, 0x28
jne 0x535833
push 0x12
call ebp
test ax, ax
jge 0x535833
mov edx, dword [esi]
xor ecx, ecx
push ecx
xor eax, eax
push eax
mov eax, dword [edx + 0xd4]
push ecx
mov ecx, esi
call eax
pop ebp
pop edi
mov eax, 1
pop esi
ret 8
mov ecx, dword [esi + 0x184]
test ecx, ecx
je 0x5358ee
cmp dword [ecx + 0x20], 0
je 0x5358ee
push ebx
push edi
call fcn.00531420
test eax, eax
mov eax, 1
jne 0x5358f3
mov eax, 2
pop ebx
pop ebp
pop edi
pop esi
ret 8
Function at 0x536790
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x5e30a9
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x72d630]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
xor esi, esi
push 0x32
lea eax, [esp + 0x1c]
push esi
push eax
mov dword [esp + 0x20], esi
call sub.MSVCR90.dll_memset
mov edi, dword [esp + 0xa4]
add esp, 0xc
cmp edi, 3
jne 0x536800
push 0x6b70dc
mov ecx, ebp
call dword [0x612678]
jmp 0x5368c8
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
shl eax, 0x10
add edi, 0xffffffdf
or eax, 1
cmp edi, 0xe
ja 0x536823
or eax, 0x1000000
push 0x32
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call dword [0x612678]
lea ecx, [esp + 0x14]
mov dword [esp + 0x8c], esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::IsEmpty]
test al, al
jne 0x5368b1
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeLower]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetLength]
test eax, eax
jle 0x5368b1
mov ebx, dword [sym.imp.USER32.dll_IsCharLowerW]
push esi
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
movzx edi, ax
push edi
call ebx
test eax, eax
jne 0x536899
lea ecx, [esp + 0x14]
inc esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetLength]
cmp esi, eax
jl 0x536873
jmp 0x5368b1
push edi
call fcn.00535f50
movzx eax, ax
add esp, 4
push eax
push esi
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::SetAt]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call dword [0x612600]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, ebp
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005e038a
add esp, 0x7c
ret
Function at 0x536f20
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x5e314b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x72d630]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov edi, dword [esp + 0x14c]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x536f81
movzx ecx, word [esp + 0x148]
add edi, 0xffffffd0
xor eax, eax
cmp ecx, edi
sete al
jmp 0x5370fc
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx eax, ax
test ax, ax
je 0x537021
mov esi, dword [esp + 0x148]
push esi
call fcn.00535f50
movzx eax, ax
add esp, 4
mov dword [esp + 0x18], eax
cmp si, di
je 0x5370f7
cmp ax, di
je 0x5370f7
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
call esi
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp ebx, 1
jbe 0x537021
lea ecx, [esp + 0x20]
call fcn.00536960
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x148], 0
call fcn.00536010
mov ebp, dword [esp + 0x24]
push ebp
push ebx
call esi
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x537028
lea ecx, [esp + 0x20]
mov dword [esp + 0x140], 0xffffffff
call fcn.00536980
xor eax, eax
jmp 0x5370fc
xor esi, esi
test ebx, ebx
jbe 0x53700d
mov dword [esp + 0x14], 0
test esi, esi
jl 0x537124
cmp esi, dword [esp + 0x28]
jge 0x537124
mov eax, dword [ebp + esi*4]
push eax
push 0
push 1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x537087
mov eax, dword [esp + 0x14]
cmp word [esp + 0x148], ax
je 0x5370e3
push eax
call fcn.00535f50
add esp, 4
cmp word [esp + 0x18], ax
je 0x5370e3
mov bl, byte [esp + 0x44]
mov byte [esp + 0x44], 0x81
mov eax, dword [ebp + esi*4]
push eax
push 0
push 1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x5370cf
mov eax, dword [esp + 0x14]
cmp word [esp + 0x148], ax
je 0x5370e3
push eax
call fcn.00535f50
add esp, 4
cmp word [esp + 0x18], ax
je 0x5370e3
inc esi
mov byte [esp + 0x44], bl
cmp esi, dword [esp + 0x1c]
jb 0x53702e
jmp 0x53700d
lea ecx, [esp + 0x20]
mov dword [esp + 0x140], 0xffffffff
call fcn.00536980
mov eax, 1
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.005e038a
add esp, 0x130
ret
call fcn.005df2b2
int3