joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018780
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 0x100187e1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x100187c4
cmp edi, 2
jb 0x100187c4
cmp byte [esi], cl
jne 0x100187c4
cmp byte [esi + 1], cl
jne 0x100187c4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100a3bc0]
jmp 0x10018795
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100a3bc0]
test edi, edi
jne 0x10018795
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10018810
cmp cl, 0x23
jne 0x100187f7
cmp byte [esi], cl
jne 0x100187f7
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 + 0x100a3bc0]
test cl, cl
jne 0x100187e8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10018950
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 0x10018964
mov dword [ebx], 0
mov edx, 0x100a398c
call fcn.10018820
mov esi, eax
test esi, esi
je 0x10018a52
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 0x10018a48
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 0x10018a48
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x10018a48
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 0x10018a48
mov eax, dword [0x100b9cf4]
test eax, eax
je 0x100189dc
inc dword [eax + 0x36c]
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 0x10018a48
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 0x10018a2d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x100b9cf4]
add esp, 4
test eax, eax
je 0x10018a1a
dec dword [eax + 0x36c]
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 0x10018a3f
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 0x1001aa70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc4]
lea edx, [ebp - 8]
push ebx
mov ebx, dword [ecx + 0xcc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
mov dword [ebp - 8], edi
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100a3bc0]
sub esi, 1
jne 0x1001aaa3
mov eax, dword [0x100b9cf4]
not ebx
cmp dword [eax + 0x1bd0], ebx
jne 0x1001aad2
mov dword [eax + 0x1bd4], ebx
cmp dword [eax + 0x1c0c], ebx
jne 0x1001aae1
mov byte [eax + 0x1c10], 1
cmp dword [eax + 0x1bb8], ebx
jne 0x1001aafa
push ecx
push edi
mov edx, 4
mov ecx, ebx
call fcn.1002aff0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007dbea
mov esp, ebp
pop ebp
ret 4

Function at 0x1001ab10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100b6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
movss xmm0, dword [edx]
mov edi, 0x10
subss xmm0, dword [esi + 0xc]
mov ecx, dword [esi + 0xc4]
cvttss2si eax, xmm0
movss xmm0, dword [edx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xcc]
lea esi, [ebp - 0x14]
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100a3bc0]
sub edi, 1
jne 0x1001ab84
mov eax, dword [0x100b9cf4]
not edx
pop edi
pop esi
cmp dword [eax + 0x1bd0], edx
jne 0x1001abb5
mov dword [eax + 0x1bd4], edx
cmp dword [eax + 0x1c0c], edx
jne 0x1001abc4
mov byte [eax + 0x1c10], 1
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.1007dbea
mov esp, ebp
pop ebp
ret 4
Function at 0x1001f410
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x1001f44d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1001f433
cmp byte [esi], bl
jne 0x1001f433
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x100a3bc0]
test bl, bl
jne 0x1001f424
pop edi
pop esi
not ecx
pop ebx
jmp fcn.1001f3b0

Function at 0x100249f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100b9cf4]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x1b98]
mov esi, 4
mov eax, dword [edi + 0xc4]
add edi, 0xc4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 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 + 0x100a3bc0]
sub esi, 1
jne 0x10024a31
mov eax, dword [0x100b9cf4]
not ebx
cmp dword [eax + 0x1bb8], ebx
jne 0x10024a6b
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.1002aff0
add esp, 8
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x10024a96
inc esi
test ecx, ecx
je 0x10024a84
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10024a89
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.1002b9a0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007dbea
mov esp, ebp
pop ebp
ret
Function at 0x1002a030
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 + 0x2f6c], 0
lea esi, [edi + 0x2f70]
je 0x1002a0b2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1002a06c
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.1002bc70
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.100190d0
mov edx, dword [esi]
mov ecx, 0x100b9cea
push dword [edi + 0x2f6c]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2f78]
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.100190d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002a7b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x100b9cf4]
sub esp, 8
push esi
mov esi, ecx
mov dword [eax + 0x2f20], 0
push edi
test esi, esi
je 0x1002a80d
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.1002a820
mov edx, 0x100a3990
mov ecx, esi
mov edi, eax
call fcn.10018820
mov esi, eax
test esi, esi
je 0x1002a80d
push esi
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10034020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003405a
mov eax, dword [0x100b9cf4]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1003404d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1003408b
mov eax, dword [0x100b9cf4]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1003407e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100340bc
mov eax, dword [0x100b9cf4]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x100340af
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10034109
mov eax, dword [0x100b9cf4]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100340fc
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1003413a
mov eax, dword [0x100b9cf4]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1003412d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1003416b
mov eax, dword [0x100b9cf4]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1003415e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10037120
Function at 0x1003a010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082213
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100b6018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x1c], 0
mov byte [ebp - 4], 1
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x28], 0
mov byte [ebp - 4], 2
mov eax, 0xffff
mov word [ecx + 0x3e], ax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x3a], 0xffffffff
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov word [ecx + 0x38], ax
mov byte [ecx + 0x40], al
mov dword [ecx + 0x44], 0x3f800000
mov dword [ecx + 0x4c], eax
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x50], eax
mov word [ecx + 0x54], ax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10051110
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0xc], 0x100000
push ebx
push esi
push edi
mov ebx, edx
je 0x10051181
mov cl, byte [ebx]
lea esi, [ebx + 1]
or eax, 0xffffffff
test cl, cl
je 0x10051158
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x1005113f
cmp byte [esi], cl
jne 0x1005113f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x100a3bc0]
test cl, cl
jne 0x10051130
mov ecx, dword [0x100b9cf4]
not eax
cmp dword [ecx + 0x1bd0], eax
jne 0x1005116e
mov dword [ecx + 0x1bd4], eax
cmp dword [ecx + 0x1c0c], eax
jne 0x100511e3
mov byte [ecx + 0x1c10], 1
pop edi
pop esi
pop ebx
ret
mov edi, dword [0x100b9cf4]
xor edx, edx
mov eax, dword [edi + 0x1b98]
mov ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xcc]
push dword [eax + ecx*4 - 4]
mov ecx, ebx
call fcn.10018780
mov esi, eax
add esp, 4
cmp dword [edi + 0x1bd0], esi
jne 0x100511b9
mov dword [edi + 0x1bd4], esi
cmp dword [edi + 0x1c0c], esi
jne 0x100511c8
mov byte [edi + 0x1c10], 1
cmp dword [edi + 0x1bb8], esi
jne 0x100511e1
push ecx
push ebx
mov edx, 0xb
mov ecx, esi
call fcn.1002aff0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x1005eeb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100b6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100ba4f0]
cmp byte [eax + 0x44], 0
je 0x1005f109
mov eax, dword [0x100b602c]
cmp dword [eax + 0x28], 3
je 0x1005f109
mov eax, dword [0x100ba4f8]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x1005f109
push esi
mov esi, dword [0x100b602c]
movss xmm2, dword [esi + 0x256ac]
movss dword [ebp - 0xc], xmm2
fld dword [ebp - 0xc]
fstp dword [ebp - 0xc]
movss xmm0, dword [ebp - 0xc]
ucomiss xmm0, xmm0
setp al
cmp al, 1
jne 0x1005ef2a
mov dword [esi + 0x256ac], 0
jmp 0x1005ef58
comiss xmm2, dword [0x100aeb5c]
ja 0x1005ef40
movss xmm1, dword [0x100aebd4]
comiss xmm1, xmm2
jbe 0x1005ef58
movss xmm1, dword [0x100aeb14]
movaps xmm0, xmm2
call fcn.100070d0
movss dword [esi + 0x256ac], xmm0
mov edx, dword [0x100ba4f4]
lea ecx, [ebp - 8]
mov dl, byte [edx + 0x44]
call fcn.10006c00
movaps xmm1, xmm0
ucomiss xmm1, dword [0x100aebd0]
movss dword [ebp - 0xc], xmm1
movss dword [ebp - 0x10], xmm1
lahf
test ah, 0x44
jnp 0x1005f108
fld dword [ebp - 0x10]
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
ucomiss xmm0, xmm0
setp al
cmp al, 1
je 0x1005f108
mov eax, dword [0xcc5ff8]
mov edx, dword [0x797520]
dec eax
and eax, 0x7f
shl eax, 5
cmp edx, 0x3fe
jne 0x1005efd4
cmp byte [eax + 0xcc500e], 0
jle 0x1005f108
cmp byte [eax + 0xcc500f], 0
je 0x1005f108
cmp byte [eax + 0xcc500e], 0
jne 0x1005efea
cmp byte [eax + 0xcc500f], 0
je 0x1005f108
mov ecx, dword [0x100ba500]
movss xmm4, dword [0x100ae998]
push ebx
mov ebx, dword [0x100b602c]
push edi
mov edi, dword [0x100b9cb8]
mov esi, edi
sub esi, dword [0x100b9ce0]
sub edi, dword [0x100b9cdc]
cmp edx, 0x3ff
mov edx, dword [0x100ba4fc]
jne 0x1005f030
movss xmm0, dword [edx + 0xc]
ucomiss xmm0, xmm4
lahf
test ah, 0x44
jp 0x1005f056
test esi, esi
jle 0x1005f03c
cmp esi, 0x12c
jl 0x1005f048
cmp edi, 0xc8
jge 0x1005f0ce
movss xmm0, dword [ecx + 0xc]
ucomiss xmm0, xmm4
lahf
test ah, 0x44
jnp 0x1005f0ce
movss xmm2, dword [ebx + 0x25690]
movaps xmm0, xmm2
subss xmm0, xmm1
call fcn.10007110
movss xmm6, dword [0x100aeabc]
xor eax, eax
movss xmm5, dword [0x100aeb14]
movaps xmm3, xmm0
comiss xmm3, xmm6
seta al
cmp eax, 1
jne 0x1005f094
movaps xmm0, xmm5
subss xmm0, xmm3
movaps xmm3, xmm0
comiss xmm3, xmm4
jbe 0x1005f0d6
cmp esi, 0x190
jge 0x1005f0b5
subss xmm1, xmm2
divss xmm1, dword [ecx + 0xc]
addss xmm1, xmm2
movss dword [ebp - 0xc], xmm1
jmp 0x1005f0d6
comiss xmm6, xmm3
jbe 0x1005f0d6
subss xmm1, xmm2
divss xmm1, dword [edx + 0xc]
addss xmm1, xmm2
movss dword [ebp - 0xc], xmm1
jmp 0x1005f0d6
movss xmm5, dword [0x100aeb14]
movss xmm0, dword [ebx + 0x25690]
movaps xmm1, xmm5
call fcn.100070d0
movaps xmm1, xmm0
addss xmm1, xmm0
pop edi
subss xmm1, dword [ebp - 0xc]
subss xmm0, xmm1
addss xmm0, dword [ebx + 0x256ac]
movss dword [ebx + 0x256ac], xmm0
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007dbea
mov esp, ebp
pop ebp
ret
Function at 0x1005f220
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b6018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100ba21d], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
je 0x1005f28b
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x34], 0
jne 0x1005f24f
cmp dword [eax + 0x30], 0
je 0x1005f28b
lea eax, [ebp - 8]
mov byte [0x100ba21e], 1
push eax
push 0x40
push 1
push 0x410660
call esi
push 0
mov byte [0x410660], 0xc3
push dword [ebp - 8]
push 1
push 0x410660
call esi
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [0xcc18c84]
mov dword [0x100ba218], eax
cmp byte [ebp + 0x14], 0
jne 0x1005f301
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, eax
sub edx, dword [0xcc18c84]
cmp byte [0x8f15f0], 1
jne 0x1005f2b9
mov ecx, dword [0x100ba48c]
cmp byte [ecx + 0x44], 0
mov ecx, 1
jne 0x1005f2be
mov ecx, 0x64
mov eax, dword [0x100ba218]
add eax, ecx
cmp eax, edx
jae 0x1005f301
lea eax, [ebp - 8]
mov dword [0x100ba218], edx
push eax
push 0x40
push 1
push 0x410660
mov byte [0x100ba21e], 0
call esi
push 0
mov byte [0x410660], 0x83
push dword [ebp - 8]
push 1
push 0x410660
call esi
mov byte [0x100ba21d], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1007dbea
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10065ee0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x100b6018]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [0x100ba548]
push ebx
push esi
push edi
cmp byte [eax + 0x44], 0
je 0x100660a4
push 0x61
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x10065f52
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.v.size__:
call fcn.10007c50
mov ecx, dword [0x100b6150]
mov esi, eax
sub ecx, dword [0x100b614c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov dl, 0xa
mov ecx, eax
call fcn.10008f90
mov ecx, dword [0x100b6150]
mov eax, 0x2aaaaaab
mov esi, dword [0x100b614c]
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
jb 0x100660a4
xor ebx, ebx
add eax, 0xfffffffd
je 0x100660a4
xor edi, edi
nop word [eax + eax]
mov eax, dword [0x100b602c]
movss xmm3, dword [edi + esi]
movss xmm2, dword [edi + esi + 4]
movss xmm1, dword [edi + esi + 8]
movups xmm0, xmmword [edi + esi + 0xc]
movss dword [esp + 0x20], xmm3
subss xmm3, dword [eax + 0x25674]
movss dword [esp + 0x24], xmm2
subss xmm2, dword [eax + 0x25678]
movss dword [esp + 0x28], xmm1
subss xmm1, dword [eax + 0x2567c]
mulss xmm3, xmm3
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm3, xmm2
movups xmmword [esp + 0x2c], xmm0
movss xmm0, dword [edi + esi + 0x1c]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [edi + esi + 0x20]
addss xmm3, xmm1
movss dword [esp + 0x40], xmm0
movaps xmm0, xmm3
call fcn.10005cf0
mov eax, dword [0x100ba558]
comiss xmm0, dword [eax + 0xc]
ja 0x1006607b
mov eax, dword [0x100ba550]
lea edx, [esp + 0x1c]
mov dword [esp + 0xc], 0x3f800000
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
movss xmm0, dword [eax + 0xc]
mov eax, 0x493530
movss dword [esp + 0x18], xmm0
call eax
mov eax, dword [0x100ba54c]
lea edx, [esp + 0x20]
movzx eax, byte [eax + 0x44]
push eax
mov eax, dword [0x100ba554]
movzx eax, byte [eax + 0x44]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.10065bc0
mov esi, dword [0x100b614c]
add esp, 0xc
mov ecx, dword [0x100b6150]
mov eax, 0x2aaaaaab
sub ecx, esi
add ebx, 3
imul ecx
add edi, 0x24
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, 0xfffffffd
add eax, edx
cmp ebx, eax
jb 0x10065f90
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007dbea
mov esp, ebp
pop ebp
ret
Function at 0x1007a670
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083c99
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100b6018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bh, dl
mov bl, cl
cmp dword [0x100b9cf4], 0
mov byte [ebp - 0x14], bl
jne 0x1007a6e5
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.R_RemoveInput_
call fcn.10007c50
push dword [ebp - 0x14]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___bool_]
mov edx, str._:_called_without_imgui_context__n
mov ecx, eax
call fcn.10007c50
push str.R_RemoveInput__:_called_without_imgui_context__n
push 7
call fcn.1000ae00
add esp, 8
jmp 0x1007a86f
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100b6b38]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100bdb14]
cmp eax, dword [ecx + 4]
jle 0x1007a72b
push 0x100bdb14
call fcn.1007dc74
add esp, 4
cmp dword [0x100bdb14], 0xffffffff
jne 0x1007a72b
mov dword [ebp - 4], 0xffffffff
push 0x100bdb14
call fcn.1007dc23
add esp, 4
mov eax, dword [0x100b9cf4]
test bl, bl
je 0x1007a7c0
mov byte [eax + 0xb0], 1
mov byte [eax + 0x350], 1
mov eax, dword [0x100b9d0c]
test eax, eax
je 0x1007a764
add eax, 0x79918
mov dword [ebp - 0x14], eax
push 0
call dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x1007a76d
mov eax, dword [0x100b6130]
mov byte [eax + 0xd], 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push 0x4631b0
call esi
push 0
mov byte [0x4631b0], 0xc3
push dword [ebp - 0x14]
push 1
push 0x4631b0
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push 0x467eb0
call esi
push 0
mov byte [0x467eb0], 0xc3
push dword [ebp - 0x14]
push 1
push 0x467eb0
call esi
jmp 0x1007a86f
mov byte [eax + 0xb0], 0
mov byte [eax + 0x350], 0
mov eax, dword [0x100b9d0c]
test eax, eax
je 0x1007a7ec
add eax, 0x79918
mov dword [ebp - 0x14], eax
push 1
call dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x1007a7f5
mov eax, dword [0x100b6130]
mov byte [eax + 0xd], 1
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push 0x4631b0
call esi
push 0
mov byte [0x4631b0], 0x51
push dword [ebp - 0x14]
push 1
push 0x4631b0
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push 0x467eb0
call esi
push 0
mov byte [0x467eb0], 0x8b
push dword [ebp - 0x14]
push 1
push 0x467eb0
call esi
test bh, bh
je 0x1007a86f
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x100b6134
call fcn.10007fb0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
call fcn.1000ee00
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007dbea
mov esp, ebp
pop ebp
ret