joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5df5c8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x228], eax
push esi
mov ax, word [ebx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x14], ax
mov ax, word [ebx + 8]
push edi
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
mov edi, 0x4e4
mov ax, word [ebx + 8]
mov word [ebp - 0xe], ax
mov ax, word [ebx + 4]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], di
call esi
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], di
push dword [ebp - 0x224]
movzx eax, word [ebp + ecx*2 - 0x12]
lea edi, [ecx + 2]
push eax
movzx eax, word [ebp + ecx*2 - 0x14]
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00403e80
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x22c]
add esp, 0x1c
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5df697
mov esi, dword [ebp - 0x220]
test esi, esi
jne 0x5df6b1
mov ecx, edi
cmp edi, 8
jb 0x5df633
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a6a7
leave
ret 8
push esi
call fcn.005f0068
pop ecx
mov ecx, dword [ebp - 0x228]
push eax
push esi
call fcn.005df72d
mov al, 1
jmp 0x5df6a0

Function at 0x5ff519
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ff398

Function at 0x6053df
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0060509f
Function at 0x4045a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x56100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x563448]
mov dword [ebp - 0x18], esi
push edi
test esi, esi
je 0x4045c5
mov ebx, dword [esi + 0x74]
jmp 0x4045c7
xor ebx, ebx
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x14], xmm0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
movd xmm1, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x10], xmm1
movss dword [esi + 0x14], xmm0
cmp byte [ebx + 0x26], 0
je 0x404609
call fcn.004044d0
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x28]
mov ecx, edi
sub ecx, dword [ebx + 0x10]
mov esi, dword [ebp - 0x24]
mov edx, esi
sbb edx, dword [ebx + 0x14]
call fcn.00482360
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x1c], xmm0
call fcn.00482360
movss xmm1, dword [ebp - 0x1c]
cvtsd2ss xmm0, xmm0
mov eax, dword [ebp - 0x18]
divss xmm1, xmm0
movss dword [eax + 0x18], xmm1
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], esi
call fcn.00403a60
mov eax, dword [0x563448]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
cmp byte [eax + 0x2ecc], 0
je 0x4046bb
push 0xa0
call edi
shr eax, 0xf
test al, 1
jne 0x4046bb
mov esi, dword [0x563448]
cmp byte [esi + 0x37b1], 0
je 0x4046a7
push 0
push 0x210
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.00408b10
mov dword [esi + 0x33c], 0x210
mov dword [esi + 0x8fc], 0xa0
mov eax, dword [0x563448]
cmp byte [eax + 0x2f0c], 0
je 0x40470c
push 0xa1
call edi
shr eax, 0xf
test al, 1
jne 0x40470c
mov esi, dword [0x563448]
cmp byte [esi + 0x37b1], 0
je 0x4046f8
push 0
push 0x214
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.00408b10
mov dword [esi + 0x340], 0x214
mov dword [esi + 0x90c], 0xa1
mov eax, dword [0x563448]
cmp byte [eax + 0x2eec], 0
je 0x40475a
push 0x5b
call edi
shr eax, 0xf
test al, 1
jne 0x40475a
mov esi, dword [0x563448]
cmp byte [esi + 0x37b1], 0
je 0x404746
push 0
push 0x212
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.00408b10
mov dword [esi + 0x228], 0x212
mov dword [esi + 0x904], 0x5b
mov eax, dword [0x563448]
cmp byte [eax + 0x2f2c], 0
je 0x4047a8
push 0x5c
call edi
shr eax, 0xf
test al, 1
jne 0x4047a8
mov esi, dword [0x563448]
cmp byte [esi + 0x37b1], 0
je 0x404794
push 0
push 0x216
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.00408b10
mov dword [esi + 0x22c], 0x216
mov dword [esi + 0x914], 0x5c
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x60], 0
je 0x4047b6
or eax, 0xffffffff
jmp 0x4047c1
mov eax, dword [0x563448]
mov eax, dword [eax + 0x4290]
cmp dword [ebx + 0x20], eax
je 0x4047ce
mov dword [ebx + 0x20], eax
call fcn.00403930
call fcn.00403d20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00480d36
mov esp, ebp
pop ebp
ret
Function at 0x408e80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x408ee1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x408ec4
cmp edi, 2
jb 0x408ec4
cmp byte [esi], cl
jne 0x408ec4
cmp byte [esi + 1], cl
jne 0x408ec4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x488a30]
jmp 0x408e95
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x488a30]
test edi, edi
jne 0x408e95
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x408f10
cmp cl, 0x23
jne 0x408ef7
cmp byte [esi], cl
jne 0x408ef7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x488a30]
test cl, cl
jne 0x408ee8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x408ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x409004
mov dword [ebx], 0
mov edx, 0x4881f0
call fcn.00408f20
mov esi, eax
test esi, esi
je 0x4090f2
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4090e8
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x4090e8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x4090e8
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x4090e8
mov eax, dword [0x563448]
test eax, eax
je 0x40907c
inc dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x4090e8
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x4090cd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x563448]
add esp, 4
test eax, eax
je 0x4090ba
dec dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x4090df
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416b20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x563448]
lea edx, [ebp - 4]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3f04]
mov esi, 4
mov eax, dword [edi + 0xfc]
add edi, 0xfc
mov dword [ebp - 4], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x488a30]
sub esi, 1
jne 0x416b52
mov esi, dword [edi + 4]
not ebx
mov ecx, dword [edi]
cmp ecx, esi
jne 0x416b99
inc ecx
test esi, esi
je 0x416b87
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x416b8c
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.00428ee0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d1e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x53c0], 0
lea esi, [edi + 0x53c4]
je 0x41d262
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41d21c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00428bc0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.004096b0
mov edx, dword [esi]
mov ecx, 0x563444
push dword [edi + 0x53c0]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x53cc]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.004096b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d560
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
mov dword [ebp - 4], ecx
push esi
lea esi, [ecx + 1]
push edi
test bl, bl
je 0x41d5a8
or edi, 0xffffffff
nop dword [eax]
cmp bl, 0x23
jne 0x41d58f
cmp byte [esi], bl
jne 0x41d58f
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x488a30]
test bl, bl
jne 0x41d580
mov ebx, dword [0x563448]
mov edi, dword [ebx + 0x5398]
test edi, edi
je 0x41d5e0
lea esi, [edi + 4]
test esi, esi
je 0x41d5e0
not eax
cmp dword [esi], eax
je 0x41d5ef
mov edx, dword [esi - 4]
mov ecx, dword [ebx + 0x5390]
add edx, esi
add ecx, 4
xor esi, esi
add ecx, edi
cmp edx, ecx
cmovne esi, edx
test esi, esi
jne 0x41d5c1
mov ecx, dword [ebp - 4]
call fcn.0041d480
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d600
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x563448]
test bl, bl
je 0x41d646
or edi, 0xffffffff
cmp bl, 0x23
jne 0x41d627
cmp byte [esi], bl
jne 0x41d627
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x488a30]
test bl, bl
jne 0x41d618
mov edi, dword [0x563448]
mov esi, dword [edi + 0x5384]
xor ecx, ecx
not eax
test esi, esi
jle 0x41d66c
mov edi, dword [edi + 0x538c]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x41d672
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x41d660
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x44f450
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x56100c]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x258], 0x44
push esi
push 0x1f4
lea eax, [ebp - 0x200]
movlpd qword [ebp - 0x254], xmm0
push 0
push eax
mov esi, ecx
movlpd qword [ebp - 0x24c], xmm0
movlpd qword [ebp - 0x244], xmm0
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x22c], xmm0
movlpd qword [ebp - 0x224], xmm0
movlpd qword [ebp - 0x21c], xmm0
movups xmmword [ebp - 0x210], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x258]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x200]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x210]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20c]
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00480d36
mov esp, ebp
pop ebp
ret
Function at 0x450050
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482bf8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x54
mov eax, dword [0x56100c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 0x10
cmovae eax, dword [ebx + 8]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
lea ecx, [ebp - 0x5c]
mov edx, eax
call fcn.0044f230
mov esi, eax
mov byte [ebp - 4], 1
mov ecx, 0x7fffffff
mov edx, dword [ebx + 0x18]
sub ecx, edx
cmp ecx, 0x15
jb 0x45023b
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
push edx
cmovae eax, dword [ebx + 8]
push eax
push 0x15
push str._CreateDir____Dir__
push ecx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x2c]
call fcn.004298c0
push str._Return_value_
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00429850
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
lea eax, [ebp - 0x44]
mov dword [ebp - 0x60], ecx
push esi
push eax
push dword [ebp - 0x60]
call fcn.0047d930
call fcn.0044fb20
mov ecx, dword [ebp - 0x30]
add esp, 0x18
cmp ecx, 0x10
jb 0x450170
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450166
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4501d8
push ecx
push edx
call fcn.00480f52
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x4501a0
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450196
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4501d8
push ecx
push edx
call fcn.00480f52
add esp, 8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0x10
jb 0x4501e8
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4501de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4501de
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00480f52
add esp, 8
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x45021e
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450214
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x450214
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00480f52
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00480d36
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00407f80
int3
Function at 0x453140
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x56100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x5636a4
mov edi, ecx
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x45316e
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov eax, dword [0x561404]
lea ecx, [ebp - 0x1c]
push 0x561408
mov dword [ebp - 0x20], eax
call fcn.00479be0
push 0x5636a4
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
movups xmm1, xmmword [ebp - 0x1c]
lea eax, [ebp - 0x38]
mov edx, dword [0x5638c4]
movq xmm0, qword [ebp - 0xc]
mov ecx, 0x5638b4
movq qword [ebp - 0x28], xmm0
cmp dword [ebp - 0x24], 0x10
push dword [ebp - 0x28]
movd ebx, xmm1
movups xmmword [ebp - 0x38], xmm1
cmovae eax, ebx
mov dword [ebp - 0x3c], ebx
cmp dword [0x5638c8], 0x10
push eax
cmovae ecx, dword [0x5638b4]
call fcn.004299b0
add esp, 0xc
test al, al
jne 0x4532a3
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov esi, dword [eax]
cmp esi, ebx
je 0x4532a0
nop dword [eax]
mov eax, dword [edi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
cmp byte [eax], 0
je 0x45325e
mov edx, dword [esi]
cmp edx, 1
jne 0x453241
mov eax, dword [edi + 8]
xor ecx, ecx
cmp byte [eax], cl
sete cl
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x10], ecx
cmp edx, 2
jne 0x453287
mov eax, dword [edi + 8]
xor ecx, ecx
cmp byte [eax], cl
sete cl
lea ecx, [ecx*8 + 8]
mov dword [ebp - 0x10], ecx
jmp 0x453287
cmp edx, 4
jne 0x453226
mov eax, dword [edi + 8]
mov ecx, 0x40
cmp byte [eax], 0
mov eax, 0x20
cmovne ecx, eax
mov dword [ebp - 0x10], ecx
jmp 0x453287
movzx eax, byte [esi]
push eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp - 0x18]
mov word [ebp - 0x1c], ax
mov eax, dword [edi + 8]
cmp byte [eax], 0
mov eax, 2
cmove ecx, eax
mov dword [ebp - 0x18], ecx
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 1
call dword [sym.imp.USER32.dll_SendInput]
add esi, 4
cmp esi, ebx
jne 0x4531f0
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x4532d8
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4532ce
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4532ce
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.00480f52
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00480d36
mov esp, ebp
pop ebp
ret
Function at 0x457ec0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x5638cc]
mov ebx, ecx
push edi
mov edi, dword [0x5638d0]
mov dword [ebp - 4], ebx
cmp esi, edi
je 0x457f02
nop
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x457eec
xor eax, eax
jmp 0x457ef4
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0xf
test al, 1
jne 0x457f14
add esi, 0x20
cmp esi, edi
jne 0x457ee0
push 0xffffffffffffffff
mov ecx, ebx
call fcn.004562a0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi]
lea ecx, [ebx + 8]
mov byte [ebx], al
mov eax, dword [esi + 4]
add esi, 8
push esi
mov dword [ebx + 4], eax
call fcn.00479be0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x457fa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x457fbd
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov ebx, dword [edi + 0x44]
mov esi, dword [edi + 0x40]
cmp esi, ebx
je 0x457fe5
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x457fd3
xor al, al
jmp 0x457fda
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
mov byte [esi], al
add esi, 0x20
cmp esi, ebx
jne 0x457fc7
mov eax, dword [edi]
mov dword [edi + 4], eax
lea eax, [edi + 0xc]
push eax
mov byte [edi + 0x3c], 0
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
pop edi
pop esi
pop ebx
ret

Function at 0x458000
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x458024
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
xor bh, bh
mov dword [esp + 0xc], edi
cmp byte [edi + 0x58], bh
je 0x45803e
call fcn.00450250
test al, al
je 0x45803e
mov bh, 1
xor bl, bl
jmp 0x458049
lea ecx, [esp + 0xc]
call fcn.004580c0
mov bl, al
cmp dword [edi + 0x54], 1
jne 0x458096
test bl, bl
jne 0x458096
mov ecx, dword [edi + 0x44]
mov eax, ecx
mov esi, dword [edi + 0x40]
sub eax, esi
and eax, 0xffffffe0
mov dword [esp + 0xc], ecx
cmp eax, 0x20
je 0x45806d
test bh, bh
je 0x458093
cmp esi, ecx
je 0x458093
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x45807d
xor al, al
jmp 0x458088
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [esp + 0xc]
and al, 1
mov byte [esi], al
add esi, 0x20
cmp esi, ecx
jne 0x458071
lea esi, [edi + 0xc]
cmp byte [edi + 0x5b], 0
je 0x45809f
xor bl, 1
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4582b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ecx]
push ebx
push esi
push edi
mov ebx, dword [edx + 0x44]
mov eax, ebx
mov esi, dword [edx + 0x40]
sub eax, esi
mov dword [ebp - 4], ecx
test eax, 0xffffffe0
je 0x4583aa
mov eax, dword [edx + 0x54]
sub eax, 0
je 0x4583b3
sub eax, 1
jne 0x4583aa
cmp esi, ebx
je 0x458321
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
cmp byte [esi], 0
mov eax, dword [esi + 4]
je 0x45830a
cmp eax, 0xffffffff
jne 0x458303
xor al, al
not al
jmp 0x458316
push eax
call edi
not al
jmp 0x458316
cmp eax, 0xffffffff
jne 0x458313
xor al, al
jmp 0x458316
push eax
call edi
test al, 1
je 0x45832a
add esi, 0x20
cmp esi, ebx
jne 0x4582f0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, 0x40
mov ebx, dword [eax + 4]
mov esi, dword [eax]
cmp esi, ebx
je 0x4583aa
nop dword [eax + eax]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x45834e
xor edx, edx
or ecx, eax
jmp 0x458359
push eax
call edi
mov ecx, dword [esi + 4]
movsx edx, ax
mov eax, ecx
shr edx, 0xf
test dl, 1
jne 0x4583a3
cmp byte [esi], 0
je 0x45837d
cmp ecx, 0xffffffff
jne 0x458371
xor cl, cl
not cl
jmp 0x45838e
push ecx
call edi
mov cl, al
mov eax, dword [esi + 4]
not cl
jmp 0x45838e
cmp ecx, 0xffffffff
jne 0x458386
xor cl, cl
jmp 0x45838e
push ecx
call edi
mov cl, al
mov eax, dword [esi + 4]
test cl, 1
je 0x4583a3
cmp eax, 0xffffffff
jne 0x45839c
xor al, al
jmp 0x45839f
push eax
call edi
and al, 1
mov byte [esi], al
add esi, 0x20
cmp esi, ebx
jne 0x458340
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov esi, dword [eax + 0x40]
mov edi, dword [eax + 0x44]
cmp esi, edi
je 0x458321
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
nop dword [eax]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x4583dc
xor eax, eax
jmp 0x4583e0
push eax
call ebx
cwde
shr eax, 0xf
test al, 1
je 0x4583aa
add esi, 0x20
cmp esi, edi
jne 0x4583d0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret