joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1017d5f0
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1034a058
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, edx
xor eax, eax
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.100cd9d0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0xc]
call fcn.1014d810
mov eax, dword [esp + 0x1c]
cmp eax, 2
jbe 0x1017d73c
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
mov edx, dword [esp + 0xc]
cmp ecx, 8
cmovae eax, edx
cmp word [eax], 0x5c
jne 0x1017d6a4
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax + 2], 0x5c
jne 0x1017d6a4
mov bl, 1
jmp 0x1017d7ac
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x2f
jne 0x1017d6c9
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax + 2], 0x2f
je 0x1017d7aa
push 0x5c
mov edx, 0x2f
lea ecx, [esp + 0x10]
call fcn.1014d680
mov edx, dword [esp + 0x10]
mov eax, ecx
mov ecx, dword [esp + 0x24]
add esp, 4
cmp ecx, 8
cmovae eax, edx
cmp word [eax + 2], 0x3a
jne 0x1017d7aa
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax + 4], 0x5c
jne 0x1017d7aa
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x61
jb 0x1017d7aa
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x7a
ja 0x1017d7aa
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
jmp 0x1017d793
jne 0x1017d7aa
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
mov edx, dword [esp + 0xc]
cmp ecx, 8
cmovae eax, edx
cmp word [eax + 2], 0x3a
jne 0x1017d7aa
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x61
jb 0x1017d7aa
cmp ecx, 8
lea eax, [esp + 0xc]
cmovae eax, edx
cmp word [eax], 0x7a
ja 0x1017d7aa
push 0x10368480
lea ecx, [esp + 0x10]
call fcn.100cd700
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1017d7aa
shr eax, 4
mov bl, 1
and al, 1
mov byte [esi], al
jmp 0x1017d7ac
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x1017d7c8
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1033d458
add esp, 0x28
ret
Function at 0x1017eee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
push edi
push esi
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x1017ef21
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1033d458
add esp, 0xc
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1017ef0b
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x1017efe5
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x1017efe5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1017efde
push ebx
push ebp
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1017efde
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1017efde
call fcn.1017edc0
mov ebx, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, ebx
call fcn.1017f010
mov eax, dword [ebx]
pop ebp
pop edi
pop esi
mov ecx, dword [eax + 8]
mov dword [eax + 8], 0
xor eax, eax
test ecx, ecx
pop ebx
sete al
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1033d458
add esp, 0xc
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x18]
xor al, al
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1033d458
add esp, 0xc
ret 8
Function at 0x1017fcc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x103537c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
call fcn.1017fde0
mov eax, dword [esp + 0x40]
mov esi, dword [edi + 8]
push 2
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov ebp, dword [eax + 8]
sub ebx, ecx
push dword [esi]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax]
sub ebp, ecx
mov dword [esp + 0x24], ecx
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
test eax, eax
je 0x1017fd28
mov dword [esi + 4], eax
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x20], vtable.Gdiplus::Brush.0
mov dword [esp + 0x28], 6
mov dword [esp + 0x38], 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x48]
mov dword [esp + 0x28], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x1c], 0
call dword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], 1
mov edi, dword [edi + 8]
push ebx
push ebp
push dword [esp + 0x20]
push dword [esp + 0x28]
push esi
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
test eax, eax
je 0x1017fda1
mov dword [edi + 4], eax
mov dword [esp + 0x38], 0xffffffff
push esi
mov dword [esp + 0x24], vtable.Gdiplus::Brush.0
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1033d458
add esp, 0x28
ret 8
mov ecx, dword [ecx + 0xc]
jmp 0x1017fcc0
Function at 0x1017fe70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10353818
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x1017fec6
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0xc], 0
mov esi, dword [edi + 8]
test esi, esi
je 0x1017fee3
push dword [esi]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push esi
call dword [sym.imp.gdiplus.dll_GdipFree]
mov dword [edi + 8], 0
mov esi, dword [sym.imp.gdiplus.dll_GdipAlloc]
push 0x10
call esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
test eax, eax
je 0x1017ff1a
push 0x26200a
push dword [esp + 0x18]
xorps xmm0, xmm0
mov ecx, eax
push dword [esp + 0x18]
movdqu xmmword [eax], xmm0
call fcn.100d1680
jmp 0x1017ff1c
xor eax, eax
mov dword [esp + 0x38], 0xffffffff
push 8
mov dword [edi + 0xc], eax
call esi
mov esi, eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x38], 1
test esi, esi
je 0x1017ff6a
xorps xmm0, xmm0
xor eax, eax
movq qword [esi], xmm0
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1017ff66
lea eax, [esp + 0x18]
push eax
push dword [ecx + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi], eax
jmp 0x1017ff6c
xor esi, esi
mov dword [esp + 0x38], 0xffffffff
xorps xmm0, xmm0
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x28], 0
mov dword [edi + 8], esi
mov dword [esp + 0x20], vtable.Gdiplus::Brush.0
mov dword [esp + 0x28], 6
mov dword [esp + 0x38], 2
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x4c]
mov dword [esp + 0x28], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x20], 0
call dword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], 3
push dword [esp + 0x14]
mov edi, dword [edi + 8]
push dword [esp + 0x14]
push 0
push 0
push esi
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
test eax, eax
je 0x1017fff4
mov dword [edi + 4], eax
jmp 0x1017fff6
xor eax, eax
test eax, eax
sete byte [esp + 0x1f]
mov dword [esp + 0x38], 0xffffffff
push esi
mov dword [esp + 0x24], vtable.Gdiplus::Brush.0
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov al, byte [esp + 0x1f]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1033d458
add esp, 0x30
ret 0xc
Function at 0x10180620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10353a2c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], vtable.RC::ICoolMenuTheme.0
mov dword [esp + 0x18], 0
xor eax, eax
mov dword [edi], vtable.RC::RCCoolMenuTheme.0
mov word [edi + 0x24], ax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], 0x16
mov dword [edi + 0x54], 0x12
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], eax
mov dword [edi + 0xa0], eax
mov dword [edi + 0xa4], eax
mov dword [edi + 0xa8], eax
mov dword [edi + 0xac], eax
mov dword [edi + 0xb0], eax
mov dword [edi + 0xb4], 0x808080
mov byte [edi + 0xb8], 0xff
mov dword [edi + 0x4bc], eax
mov byte [esp + 0x18], 1
mov dword [edi + 0x4c0], eax
mov byte [esp + 0x18], 2
mov dword [edi + 0x4c4], eax
mov byte [esp + 0x18], 3
mov dword [edi + 0x4c8], eax
mov byte [esp + 0x18], 4
mov dword [edi + 0x4cc], eax
mov byte [esp + 0x18], 5
mov dword [edi + 0x4d0], eax
mov byte [esp + 0x18], 6
lea eax, [edi + 4]
mov esi, dword [sym.imp.USER32.dll_SetRectEmpty]
push eax
call esi
lea eax, [edi + 0x14]
push eax
call esi
lea eax, [edi + 0x28]
push eax
call esi
lea eax, [edi + 0x90]
push eax
call esi
mov ecx, str.RC_Cool_MENU_FOUNDATION
lea eax, [edi + 0xba]
xor esi, esi
mov edx, 0x52
lea ecx, [ecx]
mov word [eax], dx
lea ecx, [ecx + 2]
movzx edx, word [ecx]
lea esi, [esi + 1]
lea eax, [eax + 2]
test dx, dx
jne 0x10180760
xor eax, eax
mov word [edi + esi*2 + 0xba], ax
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x10181170
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10353ae6
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], vtable.RC::ICoolPopupMenu.0
mov dword [esp + 0x18], 0
mov dword [edi], vtable.RC::RCCoolPopupMenu.2.0
mov dword [edi + 4], vtable.RC::RCCoolPopupMenu.0
mov dword [edi + 8], vtable.RC::RCCoolPopupMenu.1.0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xffffffff
mov dword [edi + 0x50], 0xffffffff
mov dword [edi + 0x54], 0x16
mov dword [edi + 0x58], 0xffffffff
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0xffffffff
mov dword [edi + 0x74], 0xffffffff
mov dword [edi + 0x78], 0
mov word [edi + 0x7c], 0x100
mov byte [edi + 0x7e], 0
mov dword [edi + 0x80], 0xffffffff
mov dword [edi + 0x84], 0xffffffff
mov dword [edi + 0x88], 0xffffffff
mov dword [edi + 0x8c], 0x1000000
mov byte [edi + 0x90], 0
mov dword [edi + 0x94], 0xffffffff
mov dword [edi + 0x98], 0xffffffff
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov byte [edi + 0xb8], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
mov dword [edi + 0xfc], 0
mov byte [esp + 0x18], 1
cmp word [0x105e1f2c], 0
movsd xmm0, qword [0x10588b18]
movsd qword [edi + 0x130], xmm0
jne 0x10181376
call fcn.101839a0
mov word [0x105e1f2c], ax
lea eax, [edi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0xc4]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [edi + 0x120]
mov dword [edi + 0xf0], 0
push eax
mov dword [edi + 0xec], 0
mov word [edi + 0x8c], 0
mov byte [edi + 0x8e], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0x104], 0
mov dword [edi + 0x108], 0
mov dword [edi + 0x10c], 0
mov dword [edi + 0x110], 0
mov dword [edi + 0x114], 0
mov dword [edi + 0x118], 0
mov dword [edi + 0x11c], 0
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x14
ret
Function at 0x10187280
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x101872a8
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x101872a8
push 0
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x101872cd
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x101872cd
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
Function at 0x1018a590
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x1018a65c
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1018a65c
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x40]
call eax
test eax, eax
je 0x1018a65c
mov ecx, esi
call fcn.101836e0
test al, al
je 0x1018a65c
mov eax, dword [ebp + 0x18]
and eax, 1
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [ebp + 0x18]
mov ecx, edx
shr eax, 0xf
and eax, 0xffffff01
mov dword [esi + 0x30], edi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov al, dl
and al, 1
shr ecx, 1
mov byte [edi + 0x1e], al
and cl, 1
mov eax, edx
mov byte [edi + 0x1c], cl
shr eax, 2
mov ecx, edi
and al, 1
mov byte [edi + 0x23], al
mov eax, edx
shr eax, 3
and al, 1
mov byte [edi + 0x24], al
mov eax, edx
shr eax, 4
and al, 1
mov byte [edi + 0x25], al
mov eax, edx
shr eax, 5
and al, 1
mov byte [edi + 0x26], al
mov eax, edx
shr eax, 8
and al, 1
push esi
mov byte [edi + 0x27], al
call fcn.1018c350
push ecx
mov ecx, edi
call fcn.1018c2d0
test al, al
jne 0x1018a666
mov ecx, esi
call fcn.10183840
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp byte [edi + 0x23], 0
mov eax, dword [esp + 8]
mov byte [edi + 0x1f], al
mov byte [edi + 0x1d], al
jne 0x1018a6a1
mov eax, dword [edi + 0xc]
push 0
push dword [esi + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x117
push dword [eax + 0x18]
call esi
mov eax, dword [edi + 0xc]
push eax
push 0
push 0x2117
push dword [eax + 0x18]
call esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push 0x10
push dword [ebp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1018a6d7
mov eax, dword [ebp + 0x1c]
movdqu xmm0, xmmword [eax]
jmp 0x1018a6da
xorps xmm0, xmm0
movdqu xmmword [esi + 0xc4], xmm0
movzx eax, byte [edi + 0x26]
mov ecx, esi
push eax
lea eax, [esp + 0xc]
push eax
call fcn.10183580
mov ecx, dword [ebp + 0x18]
mov eax, ecx
shr eax, 7
and al, 1
shr ecx, 6
movzx eax, al
and cl, 1
push eax
movzx eax, cl
push eax
push dword [ebp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.1018b540
push 0x250
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x20]
push dword [esp + 0x20]
push 0xffffffffffffffff
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, esi
call fcn.10183530
push ecx
mov ecx, edi
call fcn.1018c3a0
cmp byte [edi + 0x2b], 0
jne 0x1018a65c
mov ecx, esi
call fcn.10183560
push esi
mov ecx, edi
call fcn.1018b1d0
mov ecx, esi
call fcn.10183840
cmp byte [edi + 0x1e], 0
je 0x1018a65c
mov eax, dword [edi + 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1018c350
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
push 1
mov dword [edi + 0xc], esi
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [edi + 0x1d], al
mov byte [esi + 0x79], 0
mov eax, dword [edi + 0xc]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1018c39a
cmp byte [edi + 0x23], 0
jne 0x1018c39a
mov eax, dword [edi + 0xc]
push 0
push 0
push 0x211
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
ret 4

Function at 0x1018eb90
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0xa8
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push edi
mov edi, edx
mov bl, cl
push 0x10
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x1018ebd0
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.1033d458
add esp, 0xa8
ret
push ebp
lea eax, [ebx - 0x70]
xor ebp, ebp
push esi
cmp al, 0xb
ja 0x1018ebf7
movzx eax, bl
sub eax, 0x6f
push eax
push 0x1055aeb8
push 8
push edi
call fcn.10158c30
add esp, 0x10
jmp 0x1018ed0e
lea eax, [ebx - 0x41]
cmp al, 0x19
ja 0x1018ec17
movzx eax, bl
push eax
push 0x1055fd6c
push 8
push edi
call fcn.10158c30
add esp, 0x10
jmp 0x1018ed0e
lea eax, [ebx - 0x60]
cmp al, 9
ja 0x1018ec3a
movzx eax, bl
sub eax, 0x60
push eax
push 0x1055fd54
push 8
push edi
call fcn.10158c30
add esp, 0x10
jmp 0x1018ed0e
lea eax, [ebx - 0x30]
cmp al, 9
ja 0x1018ec5d
movzx eax, bl
sub eax, 0x30
push eax
push 0x1055ab70
push 8
push edi
call fcn.10158c30
add esp, 0x10
jmp 0x1018ed0e
movzx esi, bl
lea eax, [esi - 0x25]
cmp eax, 0x98
ja case.0x1018ec71.41
movzx eax, byte [eax + 0x1018ed84]
jmp dword [eax*4 + 0x1018ed5c]
push 0x1055aec4
jmp 0x1018ed02
push 0x1055aeb4
jmp 0x1018ed02
push 0x1055fd50
jmp 0x1018ed02
push 0x1055ee78
jmp 0x1018ed02
push 0x1055fd64
jmp 0x1018ed02
push 0x1055fd60
jmp 0x1018ed02
push 0x1055fd48
jmp 0x1018ed02
push 0x1055fd44
jmp 0x1018ed02
push 0x1055fd4c
jmp 0x1018ed02
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
xor eax, eax
push 0x9e
push eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
shl esi, 0x10
lea eax, [esp + 0x14]
push 0x50
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
jle 0x1018ed39
lea eax, [esp + 0x14]
push eax
mov edx, 8
mov ecx, edi
call fcn.100f0eb0
test eax, eax
je 0x1018ed19
cmp eax, 0x8007007a
jne 0x1018ed39
mov dword [esp + 0x10], ebp
test edi, edi
je 0x1018ed37
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.1018e930
test eax, eax
js 0x1018ed37
mov ebp, dword [esp + 0x10]
jmp 0x1018ed39
xor ebp, ebp
mov ecx, dword [esp + 0xb4]
xor eax, eax
cmp eax, ebp
pop esi
sbb eax, eax
and eax, ebp
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.1033d458
add esp, 0xa8
ret
Function at 0x1018f6b0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x1033f169
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, edx
mov edi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], 0
xor eax, eax
mov dword [esp + 0x14], 0
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [esp + 0x24], eax
push ebp
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x1018f782
lea esi, [eax + eax]
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1033d1c5
add esp, 4
mov ebx, eax
push esi
push ebx
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jg 0x1018f778
xor ecx, ecx
mov word [ebx + eax*2], cx
cmp word [ebx], cx
jne 0x1018f756
xor eax, eax
jmp 0x1018f76f
mov eax, ebx
lea edx, [eax + 2]
jmp 0x1018f760
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1018f760
sub eax, edx
sar eax, 1
push eax
push ebx
mov ecx, edi
call fcn.100cdd90
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x1018f840
Capabilities:
Log keystrokes

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1018f90d
push esi
call dword [sym.imp.USER32.dll_GetLastActivePopup]
push esi
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1018f874
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [esp + 8]
push 0
push eax
push 0
push 0x2000
mov dword [esp + 0x18], 0
call esi
cmp dword [esp + 8], 0x64
jb 0x1018f8a6
push 3
push 0
push 0
push 0x2001
call esi
push ebx
push ebp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
mov ebx, eax
push ebx
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [esp + 0x24]
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [esp + 0x24]
call esi
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push ebx
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
pop ebx
pop esi
add esp, 8
ret