joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f881
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x42f89d
push dword [ebp + 0xc]
call fcn.0042cabf
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x42fa47
mov esi, dword [edi + eax*4 + 0x44c]
mov ecx, dword [esi]
cmp byte [esi + 0x2d], 0
mov dword [ebp + 0xc], ecx
je 0x42f945
and byte [esi + 0x2d], 0
cmp dword [esi + 0x4140], 0
jl 0x42f8ec
cmp byte [esi + 0x414c], 0
lea ebx, [esi + 0x414c]
je 0x42f8ec
push dword [esi + 0x4148]
mov ecx, edi
push esi
call fcn.00433fbd
and byte [ebx], 0
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
sub eax, dword [ebp - 0x10]
sub ecx, dword [ebp - 0xc]
movsx eax, ax
test eax, eax
movsx ecx, cx
je 0x42f981
test ecx, ecx
je 0x42f981
mov word [esi + 0x36], ax
mov word [esi + 0x32], ax
lea eax, [ebp - 0x10]
mov word [esi + 0x38], cx
push eax
mov word [esi + 0x34], cx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ebp - 0x10]
mov word [esi + 0x3a], ax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov word [esi + 0x3c], ax
mov edi, dword [ebp + 8]
push 1
cmp edi, 8
pop ebx
jg 0x42f9e7
je 0x42f9b9
test edi, edi
je 0x42f9a4
cmp edi, ebx
je 0x42f9b9
cmp edi, 2
je 0x42f989
cmp edi, 3
je 0x42fa28
jle 0x42fa43
cmp edi, 5
jle 0x42f9b9
cmp edi, 6
je 0x42f98c
jmp 0x42fa43
or eax, 0xffffffff
jmp 0x42fa49
mov byte [esi + 0x2c], bl
cmp byte [esi + 0x2c], 0
je 0x42fa47
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42fa43
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x2c], 0
push 1
pop eax
jmp 0x42fa49
cmp byte [esi + 0x2c], 0
jne 0x42fa47
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x42f9e2
cmp edi, 4
je 0x42f9e2
push dword [ebp + 0xc]
mov ecx, 0x4602e0
call fcn.0043b7ca
mov byte [esi + 0x2c], bl
jmp 0x42fa43
mov eax, edi
sub eax, 9
je 0x42fa28
sub eax, 0x37
je 0x42fa1e
dec eax
je 0x42fa1a
dec eax
je 0x42fa11
dec eax
jne 0x42fa43
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push ebx
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x42fa43
push ecx
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x42fa43
push 0
jmp 0x42fa1f
push ebx
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x42fa43
cmp byte [esi + 0x2c], 0
je 0x42fa47
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 0xc]
mov ecx, 0x4602e0
call fcn.0043b7ca
mov eax, ebx
jmp 0x42fa49
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43384f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
cmp byte [eax], bl
push edi
mov dword [ebp - 4], ebx
je 0x433959
push ebx
push ebx
push 3
push ebx
push ebx
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4338f4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp - 0x10]
push ebx
push ecx
push dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 8]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
push eax
push 0x451278
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x4338fb
xor eax, eax
jmp 0x433986
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x28]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov edx, dword [ecx]
cmp edx, ebx
jne 0x433930
cmp dword [eax], ebx
jne 0x433930
mov edx, dword [ebp - 0x24]
mov dword [ecx], edx
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
jmp 0x433938
mov dword [ebp - 0x24], edx
mov edx, dword [eax]
mov dword [ebp - 0x20], edx
push 0x2000
push dword [eax]
push dword [ecx]
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x43395c
mov dword [ebp + 0xc], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x43396d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push ebx
push 0x172
mov dword [esi + 0x44], eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x433fbd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x4144]
cmp eax, dword [ebp + 0xc]
je 0x434048
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp + 8], eax
jl 0x43403f
lea edi, [esi + 0x50]
mov eax, dword [edi]
test eax, eax
je 0x434031
cmp byte [eax + 0x78], 0xb
je 0x434031
mov cl, byte [eax + 0x7a]
movzx edx, cl
cmp edx, dword [esi + 0x4144]
je 0x434013
cmp byte [esi + 0x414c], 0
je 0x434031
cmp cl, 0xff
je 0x434031
cmp byte [eax + 0x78], 0xa
je 0x434031
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x79], 0x40
je 0x434031
cmp byte [eax + 0x78], 0x1a
jne 0x434031
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp + 8]
add edi, 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x14]
jle 0x433fe5
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x4144], eax
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp + 8], eax
jl 0x4340a8
lea edi, [esi + 0x50]
mov eax, dword [edi]
test eax, eax
je 0x43409a
cmp byte [eax + 0x78], 0xb
je 0x43409a
movzx ecx, byte [eax + 0x7a]
cmp ecx, dword [esi + 0x4144]
jne 0x43409a
test byte [eax + 0x79], 0x20
jne 0x43409a
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
push 4
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x79], 0x40
je 0x43409a
cmp byte [eax + 0x78], 0x1a
jne 0x43409a
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp + 8]
add edi, 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x14]
jle 0x434056
push dword [esi + 0x413c]
add esi, 0x413c
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push dword [ebp + 0xc]
push 0x130c
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x436921
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x450aa1
call fcn.004419dc
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x24]
call fcn.00401000
xor ebx, ebx
lea ecx, [esi + 0x30]
mov dword [ebp - 4], ebx
call fcn.00401000
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 1
call fcn.00401000
mov edi, 0x45cb90
lea ecx, [esi + 0x24]
push edi
mov byte [ebp - 4], 2
mov dword [esi + 0x48], ebx
mov byte [esi + 0x20], bl
call fcn.00401132
fld qword [0x451080]
or eax, 0xffffffff
push edi
fstp qword [esi + 0x18]
lea ecx, [esi + 0x30]
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
call fcn.00401132
push edi
lea ecx, [esi + 0x3c]
call fcn.00401132
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x439611
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10324
call fcn.00442420
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x400
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x210], ebx
mov dword [esi + 0x218], ebx
call fcn.00441226
pop ecx
mov dword [esi + 0x214], eax
mov edi, 0x104
lea eax, [ebp - 0x118]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
lea eax, [ebp - 0x21c]
push ebx
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0044250d
push edi
lea eax, [ebp - 0x21c]
push str.Include
push eax
call fcn.00443280
push ebx
lea eax, [ebp - 0x21c]
push ebx
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00443f89
push 0x105
call fcn.00441226
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x214]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x214]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x218], eax
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.00441de0
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x439819
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xffff
push eax
lea eax, [ebp - 0x10324]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x439810
mov eax, dword [ebp - 0x10]
mov byte [ebp - 0x118], bl
mov byte [ebp + eax - 0x10324], bl
mov byte [ebp + eax - 0x10323], bl
lea eax, [ebp - 0x10324]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov byte [ebp - 1], bl
mov al, byte [eax]
cmp al, bl
mov byte [ebp - 2], al
je 0x439780
cmp al, 0x3b
je 0x439780
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00441df0
pop ecx
pop ecx
jmp 0x439808
lea eax, [ebp - 0x118]
push eax
call fcn.00441580
test eax, eax
pop ecx
je 0x4397bb
lea eax, [ebp - 0x118]
push eax
call fcn.00441580
cmp byte [ebp + eax - 0x119], 0x5c
pop ecx
je 0x4397bb
lea eax, [ebp - 0x118]
push 0x456b28
push eax
call fcn.00441df0
pop ecx
pop ecx
push 0x105
call fcn.00441226
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x214]
push edi
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x214]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x218], eax
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.00442a20
mov eax, dword [ebp - 8]
add esp, 0x10
mov byte [ebp - 0x118], bl
cmp byte [eax], bl
je 0x439810
inc dword [ebp - 8]
jmp 0x439756
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43a5d5
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push 5
xor ebx, ebx
pop eax
mov esi, ecx
push ebx
push 0x5b
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov byte [esi + 8], 1
mov byte [esi + 9], bl
call edi
push ebx
push 0x10
mov dword [esi + 0x20], eax
call edi
push ebx
push 0x11
mov dword [esi + 0x1c], eax
call edi
push ebx
push 0x12
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push 1
pop esi
mov al, byte [esi + 0x459228]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
je 0x43a64e
lea eax, [ebp - 6]
push 0x4595f4
push eax
call fcn.00441f20
pop ecx
test eax, eax
pop ecx
jne 0x43a655
mov byte [esi + 0x459228], 0x20
inc esi
cmp esi, 7
jle 0x43a627
lea eax, [ebp - 6]
push 0x4595f0
push eax
call fcn.00441f20
pop ecx
pop ecx
pop edi
pop esi
pop ebx
test eax, eax
jne 0x43a67b
mov byte [0x45922c], 0x20
leave
ret
lea eax, [ebp - 6]
push 0x4595ec
push eax
call fcn.00441f20
pop ecx
test eax, eax
pop ecx
jne 0x43a696
mov byte [0x45922b], 0x20
leave
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
mov bx, ax
and bl, 1
cmp byte [esp + 0x14], bl
jne 0x43a905
mov al, bl
jmp 0x43a941
xor eax, eax
push ebp
mov ebp, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push eax
push eax
push edi
call ebp
push eax
push edi
call dword [sym.imp.USER32.dll_keybd_event]
push dword [esi + 4]
call fcn.0043ef79
pop ecx
push 0
push 2
push 0
push edi
call ebp
push eax
push edi
call dword [sym.imp.USER32.dll_keybd_event]
push dword [esi]
call fcn.0043ef79
pop ecx
mov al, bl
pop ebp
pop edi
pop esi
pop ebx
ret 8

Function at 0x43a947
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push edi
push dword [esp + 0xc]
mov edi, ecx
call dword [sym.imp.USER32.dll_VkKeyScanA]
movsx ebx, ax
cmp ebx, 0xffffffff
jne 0x43a96a
push dword [esp + 0xc]
mov ecx, edi
call fcn.0043a9f2
jmp 0x43a9a7
push ebx
mov ecx, edi
call fcn.0043aa8d
mov ecx, edi
call fcn.0043ad1e
cmp dword [esp + 0x10], 0
je 0x43a9a0
push esi
movzx esi, bl
mov ebx, dword [esp + 0x14]
push 0
push esi
mov ecx, edi
call fcn.0043afc3
push 0
push esi
mov ecx, edi
call fcn.0043b0a7
dec ebx
jne 0x43a988
pop esi
mov ecx, edi
call fcn.0043ae68
pop edi
pop ebx
ret 8
Function at 0x43aa8d
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x100
test ah, 2
push ebx
push esi
mov esi, ecx
je 0x43aaa4
or dword [esi + 0xc], 4
test ah, 4
je 0x43aaad
or dword [esi + 0xc], 1
test ah, 1
je 0x43aab6
or dword [esi + 0xc], 2
mov eax, dword [esi + 0xc]
test al, 4
je 0x43aac7
test al, 0x40
je 0x43aac7
xor eax, 4
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 1
je 0x43aad8
test al, 0x10
je 0x43aad8
xor eax, 1
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 2
je 0x43aae9
test al, 0x20
je 0x43aae9
xor eax, 2
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 8
je 0x43aafa
test al, 0x80
je 0x43aafa
xor eax, 8
mov dword [esi + 0xc], eax
cmp dword [esi + 0x10], 0
je 0x43ab42
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
test al, 0x40
jne 0x43ab17
and byte [esp + 0x19], 0
test al, 0x10
jne 0x43ab20
and byte [esp + 0x1a], 0
test al, 0x20
jne 0x43ab29
and byte [esp + 0x18], 0
test al, 0x80
jne 0x43ab32
and byte [esp + 0x63], 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x43abeb
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov ebp, connect
movsx eax, ax
test ebp, eax
jne 0x43ab69
push 0x11
call ebx
test ah, 0x80
je 0x43ab7a
test byte [esi + 0xc], 0x40
jne 0x43ab7a
push 0
push 0x11
mov ecx, esi
call fcn.0043b0a7
push 0x12
call edi
movsx eax, ax
test ebp, eax
jne 0x43ab8e
push 0x12
call ebx
test ah, 0x80
je 0x43ab9f
test byte [esi + 0xc], 0x10
jne 0x43ab9f
push 0
push 0x12
mov ecx, esi
call fcn.0043b0a7
push 0x10
call edi
movsx eax, ax
test ebp, eax
jne 0x43abb3
push 0x10
call ebx
test ah, 0x80
je 0x43abc4
test byte [esi + 0xc], 0x20
jne 0x43abc4
push 0
push 0x10
mov ecx, esi
call fcn.0043b0a7
push 0x5b
call edi
movsx eax, ax
pop edi
test ebp, eax
pop ebp
jne 0x43abda
push 0x5b
call ebx
test ah, 0x80
je 0x43abeb
test byte [esi + 0xc], 0x80
jne 0x43abeb
push 0
push 0x5b
mov ecx, esi
call fcn.0043b0a7
pop esi
pop ebx
add esp, 0x100
ret 4
Function at 0x43ad1e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test al, 0xf
je 0x43ae65
push ebx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
push edi
jne 0x43ad89
mov edi, dword [sym.imp.USER32.dll_keybd_event]
test al, 8
je 0x43ad52
mov al, byte [esi + 0x20]
push ebx
push ebx
push eax
push 0x5b
call edi
test byte [esi + 0xc], 2
je 0x43ad62
mov al, byte [esi + 0x1c]
push ebx
push ebx
push eax
push 0x10
call edi
test byte [esi + 0xc], 4
je 0x43ad72
mov al, byte [esi + 0x14]
push ebx
push ebx
push eax
push 0x11
call edi
test byte [esi + 0xc], 1
je 0x43ae5a
mov al, byte [esi + 0x18]
push ebx
push ebx
push eax
push 0x12
jmp 0x43ae58
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
test al, 8
je 0x43ada4
or byte [ebp - 0xa5], 0x80
test al, 2
je 0x43adaf
or byte [ebp - 0xf0], 0x80
test al, 4
je 0x43adba
or byte [ebp - 0xef], 0x80
test al, 1
je 0x43adc5
or byte [ebp - 0xee], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test byte [esi + 0xc], 8
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, 0x100
je 0x43adf4
mov eax, dword [esi + 0x20]
shl eax, 0x10
or al, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 2
je 0x43ae0b
mov eax, dword [esi + 0x1c]
shl eax, 0x10
or al, 1
push eax
push 0x10
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 4
je 0x43ae22
mov eax, dword [esi + 0x14]
shl eax, 0x10
or al, 1
push eax
push 0x11
push ebx
push dword [esi + 0x10]
call edi
mov eax, dword [esi + 0xc]
mov ecx, eax
and ecx, 1
je 0x43ae45
test al, 0x44
jne 0x43ae45
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x43ae55
test ecx, ecx
je 0x43ae5a
mov eax, dword [esi + 0x18]
shl eax, 0x10
or al, 1
push eax
push 0x12
push ebx
push dword [esi + 0x10]
call edi
push dword [esi + 4]
call fcn.0043ef79
pop ecx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x43ae68
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test al, 0xf
je 0x43afc0
push ebx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
push edi
jne 0x43aed9
mov edi, dword [sym.imp.USER32.dll_keybd_event]
test al, 1
je 0x43ae9d
mov al, byte [esi + 0x18]
push ebx
push 2
push eax
push 0x12
call edi
test byte [esi + 0xc], 4
je 0x43aeae
mov al, byte [esi + 0x14]
push ebx
push 2
push eax
push 0x11
call edi
test byte [esi + 0xc], 2
je 0x43aebf
mov al, byte [esi + 0x1c]
push ebx
push 2
push eax
push 0x10
call edi
test byte [esi + 0xc], 8
je 0x43afb6
mov al, byte [esi + 0x20]
push ebx
push 2
push eax
push 0x5b
call edi
jmp 0x43afb6
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, eax
mov ebx, 0x101
and ecx, 1
je 0x43af14
test al, 0x44
jne 0x43af14
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x43af27
test ecx, ecx
je 0x43af2c
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 4
je 0x43af46
mov eax, dword [esi + 0x14]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 2
je 0x43af60
mov eax, dword [esi + 0x1c]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 8
je 0x43af7a
mov eax, dword [esi + 0x20]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x10]
call edi
mov eax, dword [esi + 0xc]
test al, 8
je 0x43af88
xor byte [ebp - 0xa5], 0x80
test al, 2
je 0x43af93
xor byte [ebp - 0xf0], 0x80
test al, 4
je 0x43af9e
xor byte [ebp - 0xef], 0x80
test al, 1
je 0x43afa9
xor byte [ebp - 0xee], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
push dword [esi]
call fcn.0043ef79
pop ecx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x43afc3
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
mov ebx, ecx
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp dword [ebx + 0x10], 0
mov esi, eax
je 0x43b073
cmp edi, 0x14
je 0x43b073
cmp edi, 0x90
je 0x43b073
cmp edi, 0x91
je 0x43b073
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + edi - 0x100], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
shl esi, 0x10
or esi, 1
cmp byte [ebp + 0xc], 1
je 0x43b03c
push edi
mov ecx, ebx
call fcn.0043abf6
cmp al, 1
jne 0x43b042
or esi, 0x1000000
mov eax, dword [ebx + 0xc]
test al, 0x11
jne 0x43b04e
cmp edi, 0x12
jne 0x43b06a
test al, 0x44
jne 0x43b06a
or esi, 0x20000000
push esi
push edi
push 0x104
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x43b097
push esi
push edi
push 0x100
jmp 0x43b05f
cmp byte [ebp + 0xc], 1
je 0x43b08b
push edi
mov ecx, ebx
call fcn.0043abf6
cmp al, 1
je 0x43b08b
push 0
push 0
jmp 0x43b08f
push 0
push 1
push esi
push edi
call dword [sym.imp.USER32.dll_keybd_event]
push dword [ebx + 4]
call fcn.0043ef79
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov esi, ecx
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp dword [esi + 0x10], 0
mov edi, eax
je 0x43b165
cmp ebx, 0x14
je 0x43b165
cmp ebx, 0x90
je 0x43b165
cmp ebx, 0x91
je 0x43b165
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl edi, 0x10
or edi, 0xc0000001
cmp byte [ebp + 0xc], 1
je 0x43b112
push ebx
mov ecx, esi
call fcn.0043abf6
cmp al, 1
jne 0x43b118
or edi, 0x1000000
mov eax, dword [esi + 0xc]
test al, 0x11
jne 0x43b124
cmp ebx, 0x12
jne 0x43b137
test al, 0x44
jne 0x43b137
or edi, 0x20000000
push edi
push ebx
push 0x105
jmp 0x43b13e
push edi
push ebx
push 0x101
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
xor byte [ebp + ebx - 0x100], 0x80
lea eax, [ebp + ebx - 0x100]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x43b189
cmp byte [ebp + 0xc], 1
je 0x43b17d
push ebx
mov ecx, esi
call fcn.0043abf6
cmp al, 1
je 0x43b17d
push 0
push 2
jmp 0x43b181
push 0
push 3
push edi
push ebx
call dword [sym.imp.USER32.dll_keybd_event]
push dword [esi]
call fcn.0043ef79
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8