joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x1027bd0c]
push esi
push dword [ebp + 8]
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x10004f77
mov eax, dword [edi]
test eax, eax
je 0x10004f30
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10004f30
test ebx, ebx
je 0x10004f30
push 0
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x10004f30
cmp dword [ebp + 0xc], esi
je 0x10004f77
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10004f50
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10004f44
cmp eax, 1
jne 0x10004f50
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10010410
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp byte [0x1028c62c], 0
push esi
lea esi, [ecx + 0x30]
je 0x10010429
or dword [esi], 4
mov eax, dword [0x1028f850]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x25c]
cmp eax, 9
je 0x1001061e
cmp eax, 8
je 0x1001061e
call fcn.1000ed90
mov eax, dword [eax]
mov dword [0x10255fe4], eax
mov eax, dword [0x1028f850]
mov ecx, dword [eax]
call fcn.1000ef10
mov ecx, dword [0x1028c148]
push str.sv_gravity
movss xmm0, dword [eax + 8]
mov eax, dword [ecx]
movss dword [0x10255ff0], xmm0
mov eax, dword [eax + 0x44]
call eax
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x30]
call eax
fmul dword [0x1016a500]
mov eax, dword [0x1028c138]
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
mulss xmm0, dword [eax + 0x20]
mov eax, dword [0x1028f850]
movss dword [0x10255fe8], xmm0
mov ecx, dword [eax]
call fcn.1000ebf0
movss xmm0, dword [eax]
movss dword [0x10253ef4], xmm0
movss xmm0, dword [eax + 4]
movss dword [0x10253ef8], xmm0
movss xmm0, dword [eax + 8]
mov eax, dword [0x1028f850]
movss dword [0x10253efc], xmm0
mov ecx, dword [eax]
call fcn.1000ef10
push dword [0x1028f98c]
movss xmm0, dword [eax]
movss dword [0x10253edc], xmm0
movss xmm0, dword [eax + 4]
movss dword [0x10253ee0], xmm0
movss xmm0, dword [eax + 8]
movss dword [0x10253ee4], xmm0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1001052f
cmp byte [0x1028c624], 0
je 0x1001052f
mov eax, dword [0x10255ff4]
mov dword [esi], eax
test byte [0x10255fe4], 1
je 0x1001053f
mov byte [0x1028c62c], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10255fac]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1028ff34]
cmp eax, dword [ecx + 4]
jle 0x1001058e
push 0x1028ff34
call fcn.100eec77
add esp, 4
cmp dword [0x1028ff34], 0xffffffff
jne 0x1001058e
movss xmm0, dword [0x10255ff0]
push 0x1028ff34
movss dword [0x1028ff44], xmm0
call fcn.100eec26
add esp, 4
movss xmm0, dword [0x10255fe8]
xorps xmm0, xmmword [0x1016b4c0]
comiss xmm0, dword [0x1028ff44]
jbe 0x10010607
mov eax, dword [0x1028f850]
mov ecx, dword [eax]
call fcn.1000ef10
push ecx
fld dword [eax + 8]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
fstp dword [esp + 0x10]
fld dword [0x10255fe8]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm0, dword [esp + 0x10]
add esp, 4
fstp dword [esp + 8]
movss xmm1, dword [esp + 8]
xorps xmm1, xmmword [0x1016b4c0]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x10010607
mov eax, dword [0x1028f850]
mov eax, dword [eax]
cmp dword [eax + 0x25c], 9
je 0x10010607
mov al, 1
jmp 0x10010609
xor al, al
movss xmm0, dword [0x10255ff0]
mov byte [0x1028c624], al
movss dword [0x1028ff44], xmm0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100106b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp byte [0x1028f97c], 0
push esi
mov esi, ecx
je 0x10010789
push dword [0x1028f980]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10010789
cmp byte [0x1028f97d], 0
je 0x10010789
mov eax, dword [0x1028c138]
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [0x1028fecc]
jbe 0x10010703
mov byte [0x1028c600], 0
mov eax, dword [0x1028f850]
mov ecx, dword [eax]
test ecx, ecx
jne 0x10010719
mov dword [0x1028fecc], ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x25c]
cmp eax, 9
je 0x10010789
cmp eax, 8
je 0x10010789
call fcn.1000ed90
test byte [eax], 1
mov eax, dword [0x1028c138]
je 0x10010743
mov ecx, dword [eax + 0x1c]
mov dword [0x1028ff94], ecx
jmp 0x10010749
mov ecx, dword [0x1028ff94]
mov eax, dword [eax + 0x1c]
sub eax, ecx
cmp eax, 2
jg 0x10010789
mov eax, dword [0x1028f850]
mov ecx, dword [eax]
call fcn.1000ed90
test byte [eax], 1
jne 0x10010789
mov eax, dword [0x1028c138]
or dword [esi + 0x30], 4
mov byte [0x1028c600], 1
movss xmm0, dword [eax + 0x10]
addss xmm0, dword [0x1016a4d4]
movss dword [0x1028fecc], xmm0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002dd10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x1010b6f4
push dword [ebp + 8]
lea eax, [ebp + 8]
mov edi, ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x1002de06
push 2
push 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1002de06
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x1002dd6a
lea esi, [eax + 1]
jmp 0x1002dd76
xor esi, esi
mov ecx, 1
test eax, eax
cmove esi, ecx
lea eax, [esi + ebx]
push eax
call fcn.100ef1a6
add esp, 4
mov dword [ebp - 4], eax
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push dword [ebp + 8]
push ebx
push 1
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, ebx
jne 0x1002de06
test esi, esi
je 0x1002ddc0
mov eax, dword [ebp - 4]
push esi
add eax, ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ebx, dword [ebp - 4]
add esp, 4
mov ecx, edi
push dword [ebp + 0xc]
push ebx
call fcn.1002df40
push ebx
call fcn.100ef1a1
mov eax, dword [edi + 0x28]
add esp, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x1002ddff
nop dword [eax]
cmp ecx, 0x20
jne 0x1002de11
mov ecx, dword [eax + 4]
add eax, 4
test ecx, ecx
jne 0x1002ddf0
mov dword [edi + 0x2c], 0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x2c], eax
test eax, eax
je 0x1002de06
push 0x20
call fcn.100eeb68
xorps xmm0, xmm0
mov dword [ebp + 0xc], eax
add esp, 4
movq qword [eax], xmm0
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_class_valve_parser::node_.0
mov dword [ecx], vtable.valve_parser::node.0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], edi
mov esi, dword [edi + 0x34]
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], eax
test esi, esi
je 0x1002de96
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002de96
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002de96
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [edi + 0x30]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1004da50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1004da62
mov dword [edi], 0
mov edx, 0x1010b6f4
call fcn.1004d8a0
mov esi, eax
test esi, esi
jne 0x1004da76
pop edi
pop esi
pop ebp
ret
push ebx
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 0x1004db2e
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x1004db2e
push 0
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 0x1004db2e
mov eax, dword [0x10256160]
test eax, eax
je 0x1004dac6
inc dword [eax + 0x36c]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1004db2e
push esi
push dword [ebp + 8]
push 1
push ebx
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 0x1004db15
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x10256160]
add esp, 4
test eax, eax
je 0x1004db04
dec dword [eax + 0x36c]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x1004db27
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x1004f750
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
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 + 0x1c0]
cvttss2si eax, xmm0
movss xmm0, dword [edx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 8], eax
cvttss2si eax, xmm0
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x1c8]
lea esi, [ebp - 0x10]
mov edx, dword [eax + ecx*4 - 4]
not edx
nop word [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x101622a8]
sub edi, 1
jne 0x1004f7c0
mov eax, dword [0x10256160]
not edx
pop edi
pop esi
cmp dword [eax + 0x19ac], edx
jne 0x1004f7f1
mov dword [eax + 0x19b4], edx
cmp dword [eax + 0x19b0], edx
jne 0x1004f800
mov byte [eax + 0x19c0], 1
mov eax, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x1004ff60
Capabilities:
Hash data with crc32

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
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100f2e63
push eax
mov dword fs:[0], esp
mov eax, dword [0x10256160]
push ebx
sub esp, 0x28
push esi
push edi
test eax, eax
je 0x1004ffa0
inc dword [eax + 0x36c]
push 0x3a80
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea ecx, [ebp - 0x11]
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1004ffd4
push ecx
mov ecx, eax
call fcn.1004c0d0
mov edi, eax
mov dword [ebp - 0x18], eax
jmp 0x1004ffd9
xor edi, edi
mov dword [ebp - 0x18], edi
cmp dword [0x10256160], 0
jne 0x1004ffe9
mov eax, edi
mov dword [0x10256160], eax
or edx, 0xffffffff
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], str.Window
mov esi, 0x1016770d
mov al, 0x57
or edi, 0xffffffff
cmp al, 0x23
jne 0x10050012
cmp byte [esi], al
jne 0x10050012
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x101622a8]
test al, al
jne 0x10050004
mov edi, dword [ebp - 0x18]
not edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0x1005d030
mov dword [ebp - 0x2c], 0x1005d0d0
mov esi, dword [edi + 0x2c50]
mov ecx, dword [edi + 0x2c54]
mov dword [ebp - 0x28], 0x1005d1a0
cmp esi, ecx
jne 0x100500ef
inc esi
test ecx, ecx
je 0x1005006c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10050071
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x100500ef
mov eax, dword [0x10256160]
test eax, eax
je 0x10050089
inc dword [eax + 0x36c]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, dword [edi + 0x2c58]
add esp, 4
mov dword [ebp - 0x18], eax
test edx, edx
je 0x100500e3
mov ecx, dword [edi + 0x2c50]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x2c58]
add esp, 0xc
test ecx, ecx
je 0x100500d6
mov eax, dword [0x10256160]
test eax, eax
je 0x100500d6
dec dword [eax + 0x36c]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [edi + 0x2c58], eax
mov dword [edi + 0x2c54], esi
mov eax, dword [edi + 0x2c50]
movups xmm0, xmmword [ebp - 0x38]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2c58]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + ecx*8 + 0x10], xmm0
mov eax, edi
inc dword [edi + 0x2c50]
mov ecx, dword [ebp - 0xc]
mov byte [edi], 1
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10052ba0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x10052bdf
cmp bl, 0x23
jne 0x10052bc1
cmp byte [esi], bl
jne 0x10052bc1
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x101622a8]
test bl, bl
jne 0x10052bb2
mov ecx, dword [0x10256160]
not eax
mov esi, dword [ecx + 0x197c]
mov edi, dword [ecx + 0x1984]
lea ebx, [edi + esi*8]
test esi, esi
je 0x10052c1e
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10052c18
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x10052c1a
mov esi, edx
test esi, esi
jne 0x10052c00
cmp edi, ebx
je 0x10052c2d
cmp dword [edi], eax
jne 0x10052c2d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10057f30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10256160]
lea edx, [ebp - 4]
push ebx
push esi
push edi
mov edi, dword [eax + 0x198c]
mov esi, 4
mov eax, dword [edi + 0x1c0]
add edi, 0x1c0
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 + 0x101622a8]
sub esi, 1
jne 0x10057f62
mov ecx, dword [edi + 4]
not ebx
mov esi, dword [edi]
cmp esi, ecx
jne 0x10057fa9
inc esi
test ecx, ecx
je 0x10057f97
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10057f9c
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.1005db20
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 0x1005cb60
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [0x10256160]
push esi
mov esi, ebx
mov dword [ebp - 4], ecx
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov edi, dword [esi + 0x2c5c]
mov ecx, dword [esi + 0x2c60]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0xc], 0
cmp edi, ecx
jne 0x1005cc52
inc edi
test ecx, ecx
je 0x1005cbc6
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1005cbcb
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x1005cc52
test esi, esi
je 0x1005cbde
inc dword [esi + 0x36c]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [esi + 0x2c64]
test eax, eax
je 0x1005cc40
mov ecx, dword [esi + 0x2c5c]
lea edx, [ecx*8]
sub edx, ecx
shl edx, 2
push edx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0x2c64]
add esp, 0xc
test ecx, ecx
je 0x1005cc36
mov eax, dword [0x10256160]
test eax, eax
je 0x1005cc36
dec dword [eax + 0x36c]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esi + 0x2c64], ebx
mov ebx, dword [0x10256160]
mov dword [esi + 0x2c60], edi
mov eax, dword [esi + 0x2c5c]
mov ecx, dword [esi + 0x2c64]
movups xmm0, xmmword [ebp - 0x24]
mov edi, dword [ebp - 4]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp - 0xc]
movups xmmword [ecx + edx*4], xmm0
movq xmm0, qword [ebp - 0x14]
movq qword [ecx + edx*4 + 0x10], xmm0
mov dword [ecx + edx*4 + 0x18], eax
inc dword [esi + 0x2c5c]
mov eax, dword [esi + 0x2c5c]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x2c64]
mov esi, edi
lea eax, [eax + ecx*4]
add eax, 0xffffffe4
lea ecx, [esi + 1]
mov dword [ebp - 8], eax
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1005ccb0
sub esi, ecx
test ebx, ebx
je 0x1005ccc3
inc dword [ebx + 0x36c]
inc esi
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [ebp - 8]
lea esi, [edi + 1]
add esp, 0x10
or edx, 0xffffffff
mov dword [ebx], eax
mov al, byte [edi]
test al, al
je 0x1005cd17
or edi, 0xffffffff
nop word [eax + eax]
cmp al, 0x23
jne 0x1005ccfe
cmp byte [esi], al
jne 0x1005ccfe
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x101622a8]
test al, al
jne 0x1005ccf0
pop edi
not edx
mov eax, ebx
pop esi
mov dword [ebx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005cd30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, edx
mov edx, dword [0x10256160]
mov dword [ebp - 0xc], edx
push edi
mov edi, ecx
test esi, esi
jne 0x1005cd59
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x1005cd50
sub esi, ecx
test edx, edx
je 0x1005cd63
inc dword [edx + 0x36c]
lea eax, [esi + 1]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push esi
push edi
push eax
lea ebx, [eax + esi]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [ebp - 0x10]
xor edx, edx
add esp, 0x10
mov byte [ebx], 0
xor edi, edi
mov dword [ebp - 8], edx
mov ecx, esi
cmp esi, ebx
jae 0x1005cef2
nop dword [eax]
mov al, byte [ecx]
cmp al, 0xa
je 0x1005cf20
cmp al, 0xd
je 0x1005cf20
mov esi, ecx
cmp ecx, ebx
jae 0x1005cdc7
mov al, byte [esi]
cmp al, 0xa
je 0x1005cdc7
cmp al, 0xd
je 0x1005cdc7
inc esi
cmp esi, ebx
jb 0x1005cdb8
mov byte [esi], 0
mov al, byte [ecx]
cmp al, 0x3b
je 0x1005cee4
cmp al, 0x5b
jne 0x1005cecb
cmp esi, ecx
jbe 0x1005cecb
cmp byte [esi - 1], 0x5d
lea ebx, [esi - 1]
jne 0x1005cec8
lea edi, [ecx + 1]
mov byte [ebx], 0
mov eax, ebx
sub eax, edi
push eax
push 0x5d
push edi
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
je 0x1005ce33
lea ecx, [eax + 1]
sub ebx, ecx
push ebx
push 0x5b
push ecx
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x1005ce33
mov eax, dword [ebp - 8]
lea edx, [ecx + 1]
mov dword [ebp - 8], edx
mov byte [eax], 0
jmp 0x1005ce3b
mov dword [ebp - 8], edi
mov edi, str.Window
mov cl, byte [edi]
or eax, 0xffffffff
mov ebx, dword [0x10256160]
inc edi
test cl, cl
je 0x1005ce7e
or ebx, 0xffffffff
nop
cmp cl, 0x23
jne 0x1005ce5f
cmp byte [edi], cl
jne 0x1005ce5f
cmp byte [edi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [edi]
inc edi
xor eax, dword [edx*4 + 0x101622a8]
test cl, cl
jne 0x1005ce50
mov ebx, dword [0x10256160]
mov edx, dword [ebx + 0x2c50]
xor ecx, ecx
not eax
test edx, edx
jle 0x1005ce9f
mov edi, dword [ebx + 0x2c58]
cmp dword [edi + 4], eax
je 0x1005ceab
inc ecx
add edi, 0x18
cmp ecx, edx
jl 0x1005ce92
xor edi, edi
mov ebx, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x1005cee4
test edi, edi
je 0x1005cea1
push dword [ebp - 8]
mov eax, dword [edi + 8]
push edi
push dword [ebp - 0xc]
call eax
mov ebx, dword [ebp - 4]
mov edx, eax
add esp, 0xc
mov dword [ebp - 8], edx
jmp 0x1005cee4
mov ebx, dword [ebp - 4]
test edi, edi
je 0x1005cee4
test edx, edx
je 0x1005cee4
mov eax, dword [edi + 0xc]
push ecx
push edx
push edi
push dword [ebp - 0xc]
call eax
mov edx, dword [ebp - 8]
add esp, 0x10
lea ecx, [esi + 1]
cmp ecx, ebx
jb 0x1005cda0
mov esi, dword [ebp - 0x10]
pop ebx
test esi, esi
je 0x1005cf06
mov eax, dword [0x10256160]
test eax, eax
je 0x1005cf06
dec dword [eax + 0x36c]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
mov byte [eax + 0x2c3c], 1
pop esi
mov esp, ebp
pop ebp
ret
inc ecx
jmp 0x1005cda0
Function at 0x1005cf30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x10256160]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [esi + 0x2c40], 0
test eax, eax
je 0x1005d021
push edi
lea edi, [esi + 0x2c44]
mov dword [esi + 0x2c40], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1005cf84
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, edi
call fcn.1005de20
mov dword [edi], 0
cmp dword [edi + 4], 0
jne 0x1005cf99
push 8
mov ecx, edi
call fcn.1005de20
mov eax, dword [edi]
mov ecx, dword [edi + 8]
push ebx
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2c50], 0
jle 0x1005cfdc
xor ebx, ebx
mov eax, dword [esi + 0x2c58]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x2c50]
jl 0x1005cfb7
mov edi, dword [edi]
mov ebx, 0x10256015
mov ecx, dword [ebp - 8]
mov edx, 0x101677cc
lea eax, [edi - 1]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esi + 0x2c4c]
test eax, eax
cmovne ebx, eax
call fcn.1004d8a0
mov esi, eax
test esi, esi
je 0x1005d01f
push esi
push edi
push 1
push ebx
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 ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret