joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fc530
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
imul eax, dword [edx], 0x100011b
push esi
imul esi, dword [edx + 4], 0x1000193
push edi
mov edi, ecx
xor esi, eax
lea eax, [ebp - 8]
push esi
push edx
push eax
call fcn.004d4e81
mov eax, dword [eax + 4]
test eax, eax
jne 0x4fc55d
mov eax, dword [edi + 4]
cmp eax, dword [edi + 4]
pop edi
pop esi
jne 0x4fc568
xor eax, eax
leave
ret
mov eax, dword [eax + 0x10]
leave
ret

Function at 0x4fd5e1
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [esi + 4]
jmp 0x4fd5f8
imul ecx, ecx, 5
movsx eax, al
add ecx, eax
inc edx
mov al, byte [edx]
test al, al
jne 0x4fd5ef
imul eax, dword [esi], 0x1000193
pop esi
xor eax, ecx
pop ebp
ret 4

Function at 0x4ffa66
Capabilities:
Hash data using fnv

Disassembly:
push 0x14
mov eax, 0x524649
call fcn.0051c582
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 0xc]
imul eax, dword [edi], 0x100011b
imul ecx, dword [edi + 4], 0x1000193
xor ecx, eax
lea eax, [ebp - 0x18]
push ecx
push edi
mov dword [ebp + 0xc], ecx
mov ecx, esi
push eax
call fcn.004d4e81
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4ffaae
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x4ffba7
cmp dword [esi + 8], 0xccccccc
jne 0x4ffac2
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [esi + 4]
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4ffae5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_]
mov esi, edi
mov dword [ebp - 0x1c], ebx
lea edi, [ebx + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov eax, dword [esi + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x567510]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x567510]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [esi]
jbe 0x4ffb58
mov ecx, esi
call fcn.004fffd5
mov edi, dword [ebp + 0xc]
lea eax, [ebx + 8]
push edi
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004d4e81
mov edx, dword [eax]
jmp 0x4ffb5e
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
mov eax, dword [edx + 4]
inc dword [esi + 8]
mov dword [ebx + 4], eax
mov dword [ebx], edx
mov dword [eax], ebx
mov dword [edx + 4], ebx
mov ecx, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x18]
and eax, edi
mov edi, dword [ebp - 0x20]
mov esi, dword [ecx + eax*8]
cmp esi, dword [edi]
jne 0x4ffb88
mov dword [ecx + eax*8], ebx
jmp 0x4ffb9a
cmp esi, edx
jne 0x4ffb91
mov dword [ecx + eax*8], ebx
jmp 0x4ffb9e
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x4ffb9e
mov dword [ecx + eax*8 + 4], ebx
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [eax + 4], 1
call fcn.0051c556
ret 8
Function at 0x51714b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov edx, dword [ebp + 8]
mov esi, edi
mov dword [ebp - 4], esi
mov ecx, edi
lea eax, [edx - 1]
sar eax, 1
mov dword [ebp - 8], eax
cmp edi, eax
jge 0x51719b
lea esi, [ecx + ecx]
push dword [ebx + esi*4 + 4]
push dword [ebx + esi*4 + 8]
call fcn.00514c99
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, esi
mov eax, dword [ebx + ecx*4]
mov dword [ebx + edi*4], eax
mov edi, ecx
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x51716d
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 4]
cmp ecx, eax
jne 0x5171ae
test dl, 1
jne 0x5171ae
mov eax, dword [ebx + edx*4 - 4]
mov dword [ebx + edi*4], eax
lea edi, [edx - 1]
cmp esi, edi
jge 0x5171d6
mov eax, dword [ebp + 0xc]
lea esi, [edi - 1]
sar esi, 1
push dword [eax]
mov ecx, dword [ebx + esi*4]
push ecx
call fcn.00514c99
test al, al
je 0x5171d6
mov eax, dword [ebx + esi*4]
mov dword [ebx + edi*4], eax
mov edi, esi
cmp dword [ebp - 4], esi
jl 0x5171b2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x51b04c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x51b08b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x51b08b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x51b08b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x51b08b
cmp dword [ecx + 0x74], 0xe
jbe 0x51b08b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4010b6
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
mov eax, 0x455cb4
call fcn.00454198
sub esp, 0x224
push ebx
push esi
push edi
lea eax, [ebp - 0x128]
push eax
push 0x104
mov ebx, ecx
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
push ebx
call fcn.00401401
lea edi, [ebx + 0x10]
cmp dword [edi], 0
jne 0x401103
mov eax, dword [ebx + 0x14]
push 0xffffffffffffffff
push eax
push 1
mov esi, 0x46fd68
call fcn.0040cf2f
jmp 0x40113e
push edi
lea esi, [ebx + 0x20]
push 0x46fd68
lea eax, [ebp - 0xd]
call fcn.0040d393
test al, al
jne 0x401127
mov dword [0x463b08], 1
jmp 0x401280
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x230]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
mov esi, 0x46fd68
call fcn.0040d362
push dword [edi]
lea eax, [ebx + 0x20]
mov esi, 0x46e1b8
push eax
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.0041c2fe
test eax, eax
je 0x401187
mov esi, 0x46fd68
call fcn.0040d0df
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov dword [0x463b08], 1
jmp 0x40128d
cmp byte [0x463b00], 1
jne 0x401250
cmp byte [0x46dfdd], 1
jne 0x401250
call fcn.00412b8c
test al, al
jne 0x401250
push 0x105
lea eax, [ebp - 0x230]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
cmp byte [ebp - 0xd], 0
je 0x401226
mov edi, 0x459330
push edi
lea esi, [ebp - 0x20]
call fcn.00413004
push dword [ebp - 0x14]
and dword [ebp - 4], 0
or eax, 0xffffffff
mov ecx, esi
call fcn.0041332a
push edi
or eax, 0xffffffff
mov ecx, esi
call fcn.0041332a
push 1
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x230]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x20]
call fcn.0044627e
pop ecx
jmp 0x401276
push 1
lea eax, [ebp - 0x128]
push eax
push dword [0x46fc50]
lea eax, [ebp - 0x230]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x401276
call fcn.0040129c
call fcn.00401390
cmp byte [0x463aee], 1
jne 0x40126d
mov ebx, 0x46eaa0
call fcn.0040f5f5
push 1
mov ecx, esi
call fcn.0041c543
mov esi, 0x46fd68
call fcn.0040d0df
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403875
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [esi]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x411c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x4120], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [esi + 0x4124]
cmp ecx, dword [eax]
jne 0x4038bd
cmp edx, dword [esi + 0x4128]
je 0x4038d9
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [esi + 0x4128], edx
jne 0x4038d9
push edx
push ecx
mov ecx, dword [ebp + 8]
push esi
push 0xfffffffffffffff5
pop ebx
call fcn.004022c4
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 1
call ebx
mov edi, 0x8000
test di, ax
jne 0x403901
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x403901
and dword [ebp - 8], 0
jmp 0x403908
mov dword [ebp - 8], 1
push 2
call ebx
test di, ax
jne 0x403924
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x403924
and dword [ebp - 4], 0
jmp 0x40392b
mov dword [ebp - 4], 1
mov edi, dword [ebp - 8]
cmp edi, dword [esi + 0x412c]
je 0x40398d
cmp dword [ebp + 0xc], 1
jne 0x40398d
test edi, edi
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x10]
push esi
je 0x40394e
push 0xfffffffffffffff9
jmp 0x403980
push 0xfffffffffffffff8
pop ebx
call fcn.004022c4
cmp byte [esi + 0x4134], 0
je 0x403986
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x1000000
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x10]
push esi
je 0x40397e
push 0xfffffffffffffffa
jmp 0x403980
push 0xfffffffffffffff4
pop ebx
call fcn.004022c4
mov byte [esi + 0x4134], 0
cmp dword [ebp + 0xc], 0
je 0x403999
mov dword [esi + 0x412c], edi
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x4130]
pop edi
je 0x4039cb
cmp dword [ebp + 0xc], 1
jne 0x4039cb
test eax, eax
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x10]
push esi
je 0x4039c3
push 0xfffffffffffffff7
pop ebx
call fcn.004022c4
jmp 0x4039d1
push 0xfffffffffffffff6
pop ebx
call fcn.004022c4
cmp dword [ebp + 0xc], 0
je 0x4039da
mov eax, dword [ebp - 4]
mov dword [esi + 0x4130], eax
pop ebx
leave
ret 8
Function at 0x408828
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [eax], bl
push esi
push edi
mov dword [ebp - 8], ebx
je 0x40892f
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4088ca
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
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 - 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 8]
push eax
push 0x457c60
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x4088d1
xor eax, eax
jmp 0x40895b
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, ebx
mov eax, dword [ebp + 0x10]
jne 0x408906
cmp dword [eax], ebx
jne 0x408906
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x40890e
mov dword [ebp - 0x28], edx
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
push 0x2000
push dword [eax]
push dword [ecx]
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x408932
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x408943
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
push eax
push ebx
mov dword [esi + 0x44], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409110
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov esi, eax
mov eax, dword [esi + 0x4140]
cmp eax, dword [ebp + 8]
push edi
je 0x40919b
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x409192
lea edi, [esi + 0x4c]
mov eax, dword [edi]
test eax, eax
je 0x409184
cmp byte [eax + 0x78], 0xb
je 0x409184
mov cl, byte [eax + 0x7a]
movzx edx, cl
cmp edx, dword [esi + 0x4140]
je 0x409166
cmp byte [esi + 0x4148], 0
je 0x409184
cmp cl, 0xff
je 0x409184
cmp byte [eax + 0x78], 0xa
je 0x409184
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x79], 0x40
je 0x409184
cmp byte [eax + 0x78], 0x1a
jne 0x409184
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x409138
mov eax, dword [ebp + 8]
mov dword [esi + 0x4140], eax
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x4091fb
lea edi, [esi + 0x4c]
mov eax, dword [edi]
test eax, eax
je 0x4091ed
cmp byte [eax + 0x78], 0xb
je 0x4091ed
movzx ecx, byte [eax + 0x7a]
cmp ecx, dword [esi + 0x4140]
jne 0x4091ed
test byte [eax + 0x79], 0x20
jne 0x4091ed
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 0x4091ed
cmp byte [eax + 0x78], 0x1a
jne 0x4091ed
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x4091a9
add esi, 0x4138
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push dword [ebp + 8]
push 0x130c
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ccef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10324
call fcn.0044f5b0
push ebx
xor ebx, ebx
push edi
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.00446688
pop ecx
mov dword [esi + 0x214], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00446e79
push edi
lea eax, [ebp - 0x21c]
push str.Include
push eax
call fcn.00446fd0
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00447105
push 0x105
call fcn.00446688
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.00446290
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 0x40cef8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10324]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0xffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ceef
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x10324], bl
mov byte [ebp + eax - 0x10323], bl
lea eax, [ebp - 0x10324]
mov byte [ebp - 0x118], bl
mov dword [ebp - 8], eax
mov cl, byte [eax]
cmp cl, bl
mov byte [ebp - 4], cl
mov byte [ebp - 3], bl
je 0x40ce59
cmp cl, 0x3b
je 0x40ce59
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004462a0
pop ecx
pop ecx
jmp 0x40cee4
lea eax, [ebp - 0x118]
push eax
call fcn.00446710
test eax, eax
pop ecx
je 0x40ce97
lea eax, [ebp - 0x118]
push eax
call fcn.00446710
pop ecx
lea ecx, [ebp - 0x118]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40ce97
lea eax, [ebp - 0x118]
push 0x4598b8
push eax
call fcn.004462a0
pop ecx
pop ecx
push 0x105
call fcn.00446688
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
push edi
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.00446820
mov eax, dword [ebp - 8]
add esp, 0x10
cmp byte [eax], bl
mov byte [ebp - 0x118], bl
je 0x40ceef
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
jmp 0x40ce31
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x40dc05
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]
mov esi, eax
push 5
pop eax
xor ebx, ebx
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]
xor edi, edi
inc edi
xor eax, eax
lea esi, [edi + 0x4628bc]
mov al, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x40dc71
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x40dc57
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x40dcb9
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.00447330
add esp, 0xc
test eax, eax
mov byte [0x4628c1], 0x20
mov byte [0x4628be], 0x20
je 0x40dd4b
jmp 0x40dd36
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
je 0x40dcfe
lea eax, [ebp - 6]
push 0x45990c
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
jne 0x40dcea
mov byte [0x4628c1], 0x20
jmp 0x40dd44
lea eax, [ebp - 6]
push 0x459908
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
jne 0x40dd07
mov byte [0x4628be], 0x20
jmp 0x40dd2f
lea eax, [ebp - 6]
push 0x459904
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
je 0x40dd44
lea eax, [ebp - 6]
push 0x459900
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
jne 0x40dd4b
mov byte [0x4628c1], 0x20
mov byte [0x4628bf], 0x20
mov byte [0x4628c2], 0x20
mov byte [0x4628c0], 0x20
leave
ret
Function at 0x40debf
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push edi
xor edi, edi
cmp ebx, edi
jne 0x40ded6
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], 0
je 0x40df99
push ebp
push esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp byte [esp + 0x1c], 0
mov ebp, eax
je 0x40df65
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebp
mov dword [0x471b9c], eax
call esi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x40df48
lea eax, [esp + 0x10]
push eax
push ebx
call edi
mov ecx, dword [0x471b9c]
cmp ecx, eax
mov dword [0x471b98], eax
je 0x40df3e
push 1
push eax
push ecx
call esi
mov dword [esp + 0xc], eax
mov eax, dword [0x471b98]
push 1
push eax
push ebp
call esi
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x1c], eax
jne 0x40df97
cmp dword [esp + 0xc], eax
jne 0x40df97
cmp dword [esp + 0x10], eax
jne 0x40df97
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x10], eax
jmp 0x40df97
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x40df8d
push edi
push dword [0x471b98]
push ebp
call esi
mov ecx, dword [0x471b9c]
mov eax, dword [0x471b98]
cmp ecx, eax
je 0x40df8d
push edi
push eax
push ecx
call esi
push edi
push dword [0x471b9c]
push ebp
call esi
pop esi
pop ebp
pop edi
pop ecx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
cmp byte [ebp + 0x10], al
mov byte [ebp - 1], al
je 0x40e001
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push edi
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0xc]
call esi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
call fcn.00412662
push 0
push 2
push 0
push dword [ebp + 0xc]
call esi
push eax
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call fcn.00412662
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40e005
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.USER32.dll_VkKeyScanA]
movsx ebx, ax
cmp ebx, 0xffffffff
jne 0x40e026
mov al, byte [esp + 0xc]
call fcn.0040e08b
jmp 0x40e054
mov eax, ebx
call fcn.0040e125
call fcn.0040e3aa
cmp dword [esp + 0x10], 0
je 0x40e04f
push edi
movzx edi, bl
mov ebx, dword [esp + 0x14]
push 0
push edi
mov eax, esi
call fcn.0040e659
dec ebx
jne 0x40e041
pop edi
call fcn.0040e4fb
pop esi
pop ebx
ret 8
Function at 0x40e125
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
test ah, 2
je 0x40e134
or dword [esi + 0xc], 4
test ah, 4
je 0x40e13d
or dword [esi + 0xc], 1
test ah, 1
je 0x40e146
or dword [esi + 0xc], 2
mov eax, dword [esi + 0xc]
test al, 4
je 0x40e157
test al, 0x40
je 0x40e157
xor eax, 4
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 1
je 0x40e168
test al, 0x10
je 0x40e168
xor eax, 1
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 2
je 0x40e179
test al, 0x20
je 0x40e179
xor eax, 2
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 8
je 0x40e18a
test al, al
jns 0x40e18a
xor eax, 8
mov dword [esi + 0xc], eax
push ebx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x40e1d0
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
test al, 0x40
jne 0x40e1a8
mov byte [esp + 0x15], bl
test al, 0x10
jne 0x40e1b0
mov byte [esp + 0x16], bl
test al, 0x20
jne 0x40e1b8
mov byte [esp + 0x14], bl
test al, al
js 0x40e1c0
mov byte [esp + 0x5f], bl
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40e281
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0x11
call ebp
mov edi, 0x8000
test di, ax
jne 0x40e1f3
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40e206
test byte [esi + 0xc], 0x40
jne 0x40e206
push ebx
push 0x11
pop eax
mov ebx, esi
call fcn.0040e754
xor ebx, ebx
push 0x12
call ebp
test di, ax
jne 0x40e21c
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40e22f
test byte [esi + 0xc], 0x10
jne 0x40e22f
push ebx
push 0x12
pop eax
mov ebx, esi
call fcn.0040e754
xor ebx, ebx
push 0x10
call ebp
test di, ax
jne 0x40e245
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40e258
test byte [esi + 0xc], 0x20
jne 0x40e258
push ebx
push 0x10
pop eax
mov ebx, esi
call fcn.0040e754
xor ebx, ebx
push 0x5b
call ebp
test di, ax
jne 0x40e26e
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40e27f
test byte [esi + 0xc], 0x80
jne 0x40e27f
push ebx
push 0x5b
pop eax
mov ebx, esi
call fcn.0040e754
pop edi
pop ebp
pop ebx
add esp, 0x100
ret