joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4183d8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esi + 0x2e7a], al
call fcn.00418364
lea edi, [esi + 0x2e08]
mov ecx, edi
call fcn.004028df
test al, al
je 0x418431
mov ecx, edi
call fcn.00402060
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41859e
mov ecx, edi
call fcn.00402060
mov dword [esi + 0x2e60], eax
push eax
mov ecx, esi
call fcn.0041839a
mov al, 1
jmp 0x4185a0
cmp dword [esi + 0x2e64], 4
mov ecx, edi
jne 0x418531
call fcn.00401f26
cmp byte [eax], 0
je 0x418522
push str.last
mov ecx, edi
call fcn.00401f26
push eax
call fcn.00432c00
pop ecx
test eax, eax
pop ecx
je 0x418522
push str.active
mov ecx, edi
call fcn.00401f26
push eax
call fcn.00432c00
pop ecx
test eax, eax
pop ecx
je 0x41854b
push 7
push str.handle
mov ecx, edi
call fcn.00401f26
push eax
call fcn.00432cd0
add esp, 0xc
test eax, eax
jne 0x4184d8
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.00401f26
add eax, 7
push eax
call fcn.004274d5
mov eax, dword [ebp + 8]
pop ecx
pop ecx
lea edi, [esi + 0x2e60]
push eax
mov dword [edi], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41859e
push dword [edi]
jmp 0x418423
push 7
push str.regexp
mov ecx, edi
call fcn.00401f26
push eax
call fcn.00432cd0
add esp, 0xc
test eax, eax
jne 0x418556
lea ebx, [esi + 0x2e38]
mov ecx, ebx
call fcn.00423387
mov ecx, edi
call fcn.00401f26
sub esp, 0xc
add eax, 7
mov ecx, esp
push eax
call fcn.0040101d
mov ecx, ebx
call fcn.0042302e
test eax, eax
jge 0x418556
jmp 0x41859e
mov eax, dword [esi + 0x2e60]
test eax, eax
je 0x41859e
jmp 0x418422
call fcn.00401f26
cmp byte [eax], 0
jne 0x418556
lea ecx, [esi + 0x2e20]
call fcn.00401f26
cmp byte [eax], 0
jne 0x418556
call dword [sym.imp.USER32.dll_GetForegroundWindow]
jmp 0x41841c
cmp byte [esi + 0x2e79], 0
push 0
push 0x4185a7
jne 0x41856e
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x41857b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp dword [esi + 0x2e74], 0
je 0x418597
mov eax, dword [esi + 0x2e6c]
mov eax, dword [eax]
mov dword [esi + 0x2e60], eax
jmp 0x41842a
and dword [esi + 0x2e60], 0
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4185bc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov al, byte [0x43a030]
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push edi
mov byte [ebp - 0x404], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
mov edi, 0x400
lea eax, [ebp - 0x404]
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esi + 0x2e64]
mov dword [esi + 0x2e60], ebx
dec eax
je 0x41873b
dec eax
je 0x41871d
dec eax
je 0x41870d
dec eax
jne 0x41876b
lea ebx, [esi + 0x2e08]
push 0xa
push str.classname
mov ecx, ebx
call fcn.00401f26
push eax
call fcn.00432cd0
add esp, 0xc
test eax, eax
jne 0x418673
lea eax, [ebp - 0x404]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov ecx, ebx
call fcn.00401f26
add eax, 0xa
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00428f30
pop ecx
pop ecx
jmp 0x418767
push 0x4353d8
mov ecx, ebx
call fcn.00401f26
push eax
call fcn.00432c00
pop ecx
test eax, eax
pop ecx
je 0x4186f6
mov ecx, ebx
call fcn.00401f26
push eax
call fcn.00428ea0
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
mov ecx, ebx
call fcn.00401f26
push eax
call fcn.00428fc0
add esp, 0xc
test eax, eax
je 0x4186f6
push 7
push str.regexp
mov ecx, ebx
call fcn.00401f26
push eax
call fcn.00432cd0
add esp, 0xc
test eax, eax
jne 0x41876b
push eax
push eax
sub esp, 0xc
lea eax, [ebp - 0x404]
mov ecx, esp
push eax
call fcn.0040101d
lea ecx, [esi + 0x2e38]
call fcn.004230f4
test al, al
je 0x41876b
mov ecx, esi
call fcn.00418775
cmp al, 1
jne 0x41876b
cmp byte [esi + 0x2e7a], al
jne 0x41876b
xor eax, eax
jmp 0x41876e
lea ecx, [esi + 0x2e08]
call fcn.00401f26
jmp 0x41865f
lea ecx, [esi + 0x2e08]
call fcn.00401f26
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0042a620
pop ecx
pop ecx
test eax, eax
jmp 0x4186f4
lea edi, [esi + 0x2e08]
mov ecx, edi
call fcn.00401f26
push eax
call fcn.00428ea0
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
mov ecx, edi
call fcn.00401f26
push eax
call fcn.00428fc0
add esp, 0xc
test eax, eax
je 0x4186f6
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4187fb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000
call fcn.004294c0
and byte [ebp - 0x8000], 0
push esi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x418828
cmp byte [esi + 0x2e78], 1
jne 0x418896
cmp dword [esi + 0x2e68], 2
jne 0x418848
lea eax, [ebp - 0x8000]
push 0x7fff
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41885f
lea eax, [ebp - 0x8000]
push eax
push 0x7fff
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
and byte [ebp - 1], 0
test eax, eax
je 0x418896
lea ecx, [esi + 0x2e20]
call fcn.00401f26
push eax
lea eax, [ebp - 0x8000]
push eax
call fcn.0042a620
pop ecx
test eax, eax
pop ecx
je 0x418896
push dword [esi + 0x2e60]
mov ecx, esi
call fcn.0041839a
xor eax, eax
jmp 0x418899
push 1
pop eax
pop esi
leave
ret 8
Function at 0x418dcc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
push 1
mov eax, dword [esi + 0x2e88]
pop ebx
cmp eax, 2
jne 0x418e05
lea ecx, [esi + 0x2e90]
call fcn.00401f9e
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp edi, eax
jmp 0x418ec3
test eax, eax
jne 0x418e92
lea eax, [ebp - 0x404]
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x404]
lea edi, [esi + 0x2e90]
push eax
call fcn.00428ea0
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
mov ecx, edi
call fcn.00401f26
push eax
call fcn.00428fc0
add esp, 0xc
test eax, eax
jne 0x418ed7
inc dword [esi + 0x2ea8]
push dword [esi + 0x2ea8]
lea eax, [esi + 0x2ea8]
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x404]
push str._s_u
push eax
call fcn.00429357
add esp, 0x10
mov ecx, edi
call fcn.00401f26
push eax
lea eax, [ebp - 0x404]
jmp 0x418eb9
lea eax, [ebp - 0x404]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x404]
lea ecx, [esi + 0x2e90]
push eax
call fcn.00401f26
push eax
call fcn.00428f30
pop ecx
pop ecx
test eax, eax
jne 0x418ed7
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x2eb0], eax
mov byte [esi + 0x2eac], 1
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 8

Function at 0x41b18f
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov esi, ecx
call fcn.0041b3c1
cmp byte [esi + 0xc], 1
jne 0x41b1bd
push 0xffffffffffffffff
mov edi, 0x43cb10
push dword [esi + 0x10]
mov ecx, edi
push 1
call fcn.0042427b
jmp 0x41b1eb
lea ebx, [esi + 0x1c]
mov edi, 0x43cb10
push ebx
mov ecx, edi
call fcn.00424590
test al, al
je 0x41b20d
lea eax, [esi + 0x124]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov ecx, edi
call fcn.0042455b
lea eax, [esi + 0x1c]
mov ebx, 0x43ce60
push eax
mov ecx, ebx
call fcn.0040750c
test eax, eax
je 0x41b219
mov ecx, edi
call fcn.00424447
mov dword [0x440040], 1
jmp 0x41b266
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, esi
call fcn.0041b26b
mov ecx, esi
call fcn.0041b350
cmp byte [0x43cb08], 1
jne 0x41b249
mov ecx, esi
call fcn.0041b85b
push 1
mov ecx, ebx
call fcn.0040763c
mov ecx, edi
call fcn.00424447
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c496
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push 0x44
mov edi, 0x4415d8
push ebx
push edi
call fcn.00429a60
push 0x10
mov esi, 0x4415c8
push ebx
push esi
call fcn.00429a60
add esp, 0x18
mov dword [0x4415d8], 0x44
push 1
pop eax
push esi
push edi
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [esp + 0x30]
mov dword [0x441604], eax
mov word [0x441608], ax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
pop ebx
je 0x41c4f9
push dword [0x4415c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4
Function at 0x41cda7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push edi
mov ebx, ecx
mov edi, dword [esi]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x40fc], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x4100], eax
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp ecx, dword [esi + 0x4104]
lea eax, [esi + 0x4104]
jne 0x41cdfd
cmp edx, dword [esi + 0x4108]
je 0x41ce17
cmp byte [ebp + 0xc], 0
mov dword [eax], ecx
mov dword [esi + 0x4108], edx
je 0x41ce17
push edx
push ecx
push esi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.0041c32a
push dword [ebx + 0x18]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
call ebx
mov di, ax
mov eax, dword [ebp - 4]
shr edi, 0xf
push dword [eax + 0x1c]
and edi, 1
call ebx
mov bx, ax
shr ebx, 0xf
and ebx, 1
cmp edi, dword [esi + 0x410c]
je 0x41ce63
cmp byte [ebp + 0xc], 0
je 0x41ce63
push dword [ebp - 8]
test edi, edi
push dword [ebp - 0xc]
push esi
je 0x41ce59
push 0xfffffffffffffff9
jmp 0x41ce5b
push 0xfffffffffffffff8
mov ecx, dword [ebp - 4]
call fcn.0041c32a
cmp ebx, dword [esi + 0x4110]
mov dword [esi + 0x410c], edi
je 0x41ce90
cmp byte [ebp + 0xc], 0
je 0x41ce90
push dword [ebp - 8]
test ebx, ebx
push dword [ebp - 0xc]
push esi
je 0x41ce86
push 0xfffffffffffffff7
jmp 0x41ce88
push 0xfffffffffffffff6
mov ecx, dword [ebp - 4]
call fcn.0041c32a
mov dword [esi + 0x4110], ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41da46
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
push esi
push edi
mov edi, ecx
je 0x41da61
push dword [ebp + 0xc]
call fcn.0041bea0
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
jne 0x41da70
xor eax, eax
jmp 0x41db9a
mov esi, dword [edi + eax*4 + 0x2c]
mov eax, dword [esi]
cmp byte [esi + 0x25], 0
mov dword [ebp + 0xc], eax
je 0x41db0b
and byte [esi + 0x25], 0
cmp dword [esi + 0x4118], 0
push ebx
jl 0x41dab1
cmp byte [esi + 0x4124], 0
lea ebx, [esi + 0x4124]
je 0x41dab1
push dword [esi + 0x4120]
mov ecx, edi
push esi
call fcn.0042102b
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]
pop ebx
movsx eax, ax
test eax, eax
movsx ecx, cx
je 0x41db2c
test ecx, ecx
je 0x41db2c
mov word [esi + 0x2a], ax
mov word [esi + 0x26], ax
lea eax, [ebp - 0x10]
mov word [esi + 0x2c], cx
push eax
mov word [esi + 0x28], cx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov word [esi + 0x2e], ax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov word [esi + 0x30], ax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp edi, 6
jg 0x41db4b
je 0x41db40
test edi, edi
je 0x41db31
cmp edi, 1
je 0x41db6e
cmp edi, 2
je 0x41db40
jle 0x41db97
cmp edi, 5
jle 0x41db6e
jmp 0x41db97
or eax, 0xffffffff
jmp 0x41db9a
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x24], 0
jmp 0x41db97
push 6
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41db97
cmp edi, 8
jl 0x41db97
cmp edi, 9
jle 0x41db6e
cmp edi, 0x40
je 0x41db63
cmp edi, 0x41
jne 0x41db97
push 0
jmp 0x41db65
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x41db97
cmp byte [esi + 0x24], 0
jne 0x41db97
push edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x41db93
cmp edi, 4
je 0x41db93
push dword [ebp + 0xc]
mov ecx, 0x43cd40
call fcn.004259ed
mov byte [esi + 0x24], 1
push 1
pop eax
pop edi
pop esi
leave
ret 8
Function at 0x420979
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x420a15
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp - 0x10]
push esi
push ecx
push dword [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 8]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
push eax
push 0x433080
push esi
push esi
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 edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x420a1c
xor eax, eax
jmp 0x420aa8
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push eax
call dword [ecx + 0xc]
push 0x2000
push esi
push esi
push esi
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]
mov ebx, dword [ebp + 0x1c]
cmp ebx, esi
jne 0x420a67
cmp dword [ebp + 0x20], esi
jne 0x420a67
lea eax, [ebp - 0x28]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov dword [ebp + 0x20], eax
push dword [ebp + 0xc]
push esi
push 0x172
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x30]
cmp eax, esi
je 0x420a8a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x20]
mov dword [edi + 0x30], eax
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x42102b
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x411c]
cmp eax, dword [esp + 0xc]
je 0x421107
push ebx
push edi
push 3
pop ebx
cmp dword [esi + 0xc], ebx
jl 0x4210a0
lea edi, [esi + 0x44]
mov eax, dword [edi]
test eax, eax
je 0x421097
movzx ecx, byte [eax + 0x5e]
cmp ecx, dword [esi + 0x411c]
jne 0x42106f
cmp byte [eax + 0x5c], 0xb
je 0x42106f
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esi + 0x4124], 0
je 0x421097
mov eax, dword [edi]
mov cl, byte [eax + 0x5c]
cmp cl, 0xb
je 0x421097
cmp byte [eax + 0x5e], 0xff
je 0x421097
cmp cl, 0xa
je 0x421097
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
inc ebx
add edi, 4
cmp ebx, dword [esi + 0xc]
jle 0x42104d
mov eax, dword [esp + 0x14]
push 3
pop ebx
mov dword [esi + 0x411c], eax
cmp dword [esi + 0xc], ebx
jl 0x4210e0
lea edi, [esi + 0x44]
mov eax, dword [edi]
test eax, eax
je 0x4210d7
movzx ecx, byte [eax + 0x5e]
cmp ecx, dword [esi + 0x411c]
jne 0x4210d7
test byte [eax + 0x5d], 0x20
jne 0x4210d7
push 4
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
inc ebx
add edi, 4
cmp ebx, dword [esi + 0xc]
jle 0x4210b5
push dword [esi + 0x4114]
add esi, 0x4114
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push dword [esp + 0x18]
push 0x1330
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop ebx
pop esi
ret 8
Function at 0x421f6b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
lea eax, [ebp - 0x94]
push esi
mov esi, ecx
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x90]
mov dword [esi], eax
mov eax, dword [ebp - 0x8c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esi + 8], eax
lea eax, [ebp - 0x80]
push eax
call fcn.00428ea0
xor ebx, ebx
pop ecx
cmp eax, ebx
jle 0x421ff1
dec eax
cmp eax, ebx
jle 0x421fcd
cmp byte [ebp + eax - 0x80], 0x20
lea ecx, [ebp + eax - 0x80]
jne 0x421fcd
mov byte [ecx], bl
jmp 0x421fb9
xor ecx, ecx
cmp eax, ebx
jle 0x421fdf
cmp byte [ebp + ecx - 0x80], 0x20
jne 0x421fdf
inc ecx
cmp ecx, eax
jl 0x421fd3
lea eax, [ebp + ecx - 0x80]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.00428db0
pop ecx
pop ecx
jmp 0x421ff4
mov byte [esi + 0xc], bl
cmp dword [ebp - 0x84], 2
mov byte [esi + 0x10c], bl
mov byte [esi + 0x10d], bl
mov byte [esi + 0x10e], bl
mov byte [esi + 0x10f], bl
mov byte [esi + 0x112], bl
mov byte [esi + 0x113], bl
mov byte [esi + 0x110], bl
mov byte [esi + 0x111], bl
mov byte [esi + 0x114], bl
mov byte [esi + 0x115], bl
mov byte [esi + 0x116], bl
mov byte [esi + 0x117], bl
mov byte [esi + 0x118], bl
mov byte [esi + 0x119], bl
mov byte [esi + 0x11a], bl
mov byte [esi + 0x11b], bl
jne 0x4220ea
mov eax, dword [esi]
mov byte [esi + 0x10c], 1
sub eax, 4
je 0x4220da
dec eax
jne 0x422141
mov eax, dword [esi + 4]
mov byte [esi + 0x10f], 1
cmp eax, ebx
jne 0x422097
mov byte [esi + 0x113], 1
mov byte [esi + 0x112], 1
jmp 0x422141
cmp eax, 1
jne 0x4220b3
mov byte [esi + 0x113], al
mov byte [esi + 0x111], al
mov byte [esi + 0x110], al
jmp 0x422141
cmp eax, 2
jb 0x422141
mov byte [esi + 0x113], 1
mov byte [esi + 0x111], 1
mov byte [esi + 0x115], 1
mov byte [esi + 0x114], 1
jmp 0x422141
mov byte [esi + 0x10f], 1
mov byte [esi + 0x10e], 1
jmp 0x422141
movzx eax, word [ebp - 0x88]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
cmp eax, ebx
mov byte [esi + 0x10d], 1
mov byte [esi + 0x119], 1
je 0x42213a
cmp eax, 0xa
je 0x42212a
cmp eax, 0x5a
jne 0x422141
mov byte [esi + 0x117], 1
mov byte [esi + 0x11b], 1
mov byte [esi + 0x11a], 1
jmp 0x422141
mov byte [esi + 0x117], 1
mov byte [esi + 0x116], 1
jmp 0x422141
mov byte [esi + 0x118], 1
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42489f
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov esi, ecx
push ebx
push 0x5b
mov dword [esi], 5
mov dword [esi + 4], 1
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 + 0x436b88]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
je 0x42491d
lea eax, [ebp - 6]
push 0x436f54
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
jne 0x424924
mov byte [esi + 0x436b88], 0x20
inc esi
cmp esi, 7
jle 0x4248f6
lea eax, [ebp - 6]
push 0x436f50
push eax
call fcn.00428f30
pop ecx
pop ecx
pop edi
pop esi
pop ebx
test eax, eax
jne 0x42494a
mov byte [0x436b8c], 0x20
leave
ret
lea eax, [ebp - 6]
push 0x436f4c
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
jne 0x424965
mov byte [0x436b8b], 0x20
leave
ret

Function at 0x424b95
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 0x424bb5
mov al, bl
jmp 0x424bf1
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.0042786e
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.0042786e
pop ecx
mov al, bl
pop ebp
pop edi
pop esi
pop ebx
ret 8

Function at 0x424bf7
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 0x424c1a
push dword [esp + 0xc]
mov ecx, edi
call fcn.00424c8a
jmp 0x424c4d
push ebx
mov ecx, edi
call fcn.00424d25
mov ecx, edi
call fcn.00424fd6
cmp dword [esp + 0x10], 0
je 0x424c46
push esi
movzx esi, bl
mov ebx, dword [esp + 0x14]
push 0
push esi
mov ecx, edi
call fcn.00425269
dec ebx
jne 0x424c38
pop esi
mov ecx, edi
call fcn.00425117
pop edi
pop ebx
ret 8
Function at 0x424d25
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 0x424d3c
or dword [esi + 0xc], 4
test ah, 4
je 0x424d45
or dword [esi + 0xc], 1
test ah, 1
je 0x424d4e
or dword [esi + 0xc], 2
mov eax, dword [esi + 0xc]
test al, 4
je 0x424d5f
test al, 0x40
je 0x424d5f
xor eax, 4
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 1
je 0x424d70
test al, 0x10
je 0x424d70
xor eax, 1
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 2
je 0x424d81
test al, 0x20
je 0x424d81
xor eax, 2
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 8
je 0x424d92
test al, 0x80
je 0x424d92
xor eax, 8
mov dword [esi + 0xc], eax
cmp dword [esi + 0x10], 0
je 0x424dda
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
test al, 0x40
jne 0x424daf
and byte [esp + 0x19], 0
test al, 0x10
jne 0x424db8
and byte [esp + 0x1a], 0
test al, 0x20
jne 0x424dc1
and byte [esp + 0x18], 0
test al, 0x80
jne 0x424dca
and byte [esp + 0x63], 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x424ea3
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, 0x80000000
movsx eax, ax
test ebp, eax
jne 0x424e01
push 0x11
call ebx
test ah, 0x80
je 0x424e1a
test byte [esi + 0xc], 0x40
jne 0x424e1a
push 0
push 0x11
mov ecx, esi
call fcn.0042534f
push dword [esi]
call fcn.0042786e
pop ecx
push 0x12
call edi
movsx eax, ax
test ebp, eax
jne 0x424e2e
push 0x12
call ebx
test ah, 0x80
je 0x424e47
test byte [esi + 0xc], 0x10
jne 0x424e47
push 0
push 0x12
mov ecx, esi
call fcn.0042534f
push dword [esi]
call fcn.0042786e
pop ecx
push 0x10
call edi
movsx eax, ax
test ebp, eax
jne 0x424e5b
push 0x10
call ebx
test ah, 0x80
je 0x424e74
test byte [esi + 0xc], 0x20
jne 0x424e74
push 0
push 0x10
mov ecx, esi
call fcn.0042534f
push dword [esi]
call fcn.0042786e
pop ecx
push 0x5b
call edi
movsx eax, ax
pop edi
test ebp, eax
pop ebp
jne 0x424e8a
push 0x5b
call ebx
test ah, 0x80
je 0x424ea3
test byte [esi + 0xc], 0x80
jne 0x424ea3
push 0
push 0x5b
mov ecx, esi
call fcn.0042534f
push dword [esi]
call fcn.0042786e
pop ecx
pop esi
pop ebx
add esp, 0x100
ret 4