joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100025e0
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 0x1000262c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1000260f
cmp edi, 2
jb 0x1000260f
cmp byte [esi], cl
jne 0x1000260f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100347a0]
test edi, edi
jne 0x100025f5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1000265b
cmp cl, 0x23
jne 0x10002642
cmp byte [esi], cl
jne 0x10002642
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 + 0x100347a0]
test cl, cl
jne 0x10002633
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10002780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10002792
mov dword [edi], 0
mov edx, 0x10034614
call fcn.10002670
mov esi, eax
test esi, esi
jne 0x100027a6
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 0x10002859
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x10002859
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 0x10002859
mov eax, dword [0x100604b8]
test eax, eax
je 0x100027f3
inc dword [eax + 0x370]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x10002859
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, ebx
je 0x10002842
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x100604b8]
add esp, 4
test eax, eax
je 0x1000282f
dec dword [eax + 0x370]
push dword [ebp + 8]
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 0x10002851
mov dword [edi], ebx
mov eax, dword [ebp + 8]
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 0x100058f0
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
push 0xffffffffffffffff
push 0x10033363
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x1003c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100604b8]
test eax, eax
je 0x1000593a
inc dword [eax + 0x370]
push 0x3b30
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x11]
add esp, 4
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1000596e
push ecx
mov ecx, eax
call fcn.10001240
mov edi, eax
mov dword [ebp - 0x18], eax
jmp 0x10005973
xor edi, edi
mov dword [ebp - 0x18], edi
mov eax, dword [0x100604b8]
mov esi, 0x10034559
test eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], str.Window
cmove eax, edi
or edx, 0xffffffff
mov dword [0x100604b8], eax
or edi, 0xffffffff
mov al, 0x57
nop dword [eax]
cmp al, 0x23
jne 0x100059ae
cmp byte [esi], al
jne 0x100059ae
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 + 0x100347a0]
test al, al
jne 0x100059a0
mov edi, dword [ebp - 0x18]
not edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0x100124c0
mov dword [ebp - 0x2c], 0x10012560
mov esi, dword [edi + 0x2cf4]
mov ecx, dword [edi + 0x2cf8]
mov dword [ebp - 0x28], 0x10012630
cmp esi, ecx
jne 0x10005a88
inc esi
test ecx, ecx
je 0x10005a08
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10005a0d
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x10005a88
mov eax, dword [0x100604b8]
test eax, eax
je 0x10005a25
inc dword [eax + 0x370]
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, eax
add esp, 4
mov eax, dword [edi + 0x2cfc]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10005a7c
mov ecx, dword [edi + 0x2cf4]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push eax
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x100604b8]
add esp, 0xc
test eax, eax
je 0x10005a6d
dec dword [eax + 0x370]
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [ebp - 0x1c]
add esp, 4
mov dword [edi + 0x2cfc], edx
mov dword [edi + 0x2cf8], esi
mov eax, dword [edi + 0x2cf4]
movups xmm0, xmmword [ebp - 0x38]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2cfc]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + ecx*8 + 0x10], xmm0
mov eax, edi
inc dword [edi + 0x2cf4]
mov byte [edi], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10008290
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 0x100082cf
cmp bl, 0x23
jne 0x100082b1
cmp byte [esi], bl
jne 0x100082b1
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 + 0x100347a0]
test bl, bl
jne 0x100082a2
mov ebx, dword [0x100604b8]
not eax
mov esi, dword [ebx + 0x198c]
mov edi, dword [ebx + 0x1994]
mov ecx, edi
test esi, esi
je 0x10008314
nop dword [eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10008308
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1000830a
mov esi, edx
test esi, esi
jne 0x100082f0
mov ecx, dword [ebx + 0x1994]
mov edx, dword [ebx + 0x198c]
lea ecx, [ecx + edx*8]
cmp edi, ecx
je 0x1000832c
cmp dword [edi], eax
jne 0x1000832c
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10011ff0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [0x100604b8]
push esi
mov esi, ebx
mov dword [ebp - 8], ecx
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov edi, dword [esi + 0x2d00]
mov ecx, dword [esi + 0x2d04]
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 0x100120dc
inc edi
test ecx, ecx
je 0x10012056
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1001205b
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x100120dc
test esi, esi
je 0x1001206e
inc dword [esi + 0x370]
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, dword [esi + 0x2d08]
add esp, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x100120ca
mov ecx, dword [esi + 0x2d00]
lea edx, [ecx*8]
sub edx, ecx
shl edx, 2
push edx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x100604b8]
add esp, 0xc
test eax, eax
je 0x100120bd
dec dword [eax + 0x370]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 4]
add esp, 4
mov ebx, dword [0x100604b8]
mov dword [esi + 0x2d08], eax
mov dword [esi + 0x2d04], edi
mov eax, dword [esi + 0x2d00]
mov ecx, dword [esi + 0x2d08]
movups xmm0, xmmword [ebp - 0x24]
mov edi, dword [ebp - 8]
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 + 0x2d00]
mov eax, dword [esi + 0x2d00]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x2d08]
mov esi, edi
lea eax, [eax + ecx*4]
add eax, 0xffffffe4
lea ecx, [esi + 1]
mov dword [ebp - 4], eax
mov al, byte [esi]
inc esi
test al, al
jne 0x10012137
sub esi, ecx
test ebx, ebx
je 0x1001214a
inc dword [ebx + 0x370]
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 - 4]
lea esi, [edi + 1]
add esp, 0x10
or edx, 0xffffffff
mov dword [ebx], eax
mov al, byte [edi]
test al, al
je 0x10012198
or edi, 0xffffffff
cmp al, 0x23
jne 0x1001217f
cmp byte [esi], al
jne 0x1001217f
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 + 0x100347a0]
test al, al
jne 0x10012171
pop edi
not edx
mov eax, ebx
pop esi
mov dword [ebx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100123c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x100604b8]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [esi + 0x2ce4], 0
test eax, eax
je 0x100124ba
push edi
lea edi, [esi + 0x2ce8]
mov dword [esi + 0x2ce4], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10012417
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.100131c0
mov ecx, dword [edi + 4]
xor edx, edx
mov dword [edi], 0
test ecx, ecx
jne 0x1001242e
push 8
mov ecx, edi
call fcn.100131c0
mov edx, dword [edi]
mov eax, dword [edi + 8]
push ebx
mov dword [ebp - 4], 0
mov byte [edx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2cf4], 0
mov ebx, dword [edi]
jle 0x10012477
xor ebx, ebx
nop dword [eax]
mov eax, dword [esi + 0x2cfc]
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 + 0x2cf4]
jl 0x10012450
mov ebx, dword [edi]
mov ecx, dword [ebp - 8]
lea eax, [ebx - 1]
neg ebx
mov edi, 0x100604b4
mov edx, 0x10034618
sbb ebx, ebx
and ebx, eax
mov eax, dword [esi + 0x2cf0]
test eax, eax
cmovne edi, eax
call fcn.10002670
mov esi, eax
test esi, esi
je 0x100124b8
push esi
push ebx
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 ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100210a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1003c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x100604b8]
lea eax, [ebp - 0x14]
push esi
push edi
push eax
push dword [0x10060904]
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
lea eax, [ebp - 0x30]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x30]
mov ecx, edi
sub ecx, dword [0x10060908]
mov esi, dword [ebp - 0x2c]
mov edx, esi
sbb edx, dword [0x1006090c]
call fcn.100331f0
mov edx, dword [0x10060914]
mov ecx, dword [0x10060910]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x18], xmm0
call fcn.100331f0
movss xmm1, dword [ebp - 0x18]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x1006090c], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x10060908], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xf8], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xf9], al
call esi
mov esi, dword [0x100604b8]
shr eax, 0xf
and al, 1
mov byte [ebx + 0xfb], 0
mov byte [ebx + 0xfa], al
cmp byte [esi + 0x357], 0
je 0x100211c5
cvttss2si eax, dword [esi + 0xe0]
mov dword [ebp - 0x1c], eax
cvttss2si eax, dword [esi + 0xe4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x10060904]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi + 0xe0], 0xff7fffff
mov dword [esi + 0xe4], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x1002123b
mov ecx, dword [0x10060904]
cmp eax, ecx
je 0x100211f9
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1002123b
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1002123b
lea eax, [ebp - 0x24]
push eax
push dword [0x10060904]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1002123b
movd xmm0, dword [ebp - 0x24]
movd xmm1, dword [ebp - 0x20]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xe0], xmm0
movss dword [esi + 0xe4], xmm1
cmp byte [ebx + 0xac], 0
je 0x10021249
or eax, 0xffffffff
jmp 0x10021254
mov eax, dword [0x100604b8]
mov eax, dword [eax + 0x1d04]
cmp dword [0x1005fecc], eax
je 0x10021266
mov dword [0x1005fecc], eax
call fcn.10020d00
call fcn.10020e20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f367
mov esp, ebp
pop ebp
ret
Function at 0x10024790
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100604b8]
push ebx
push esi
mov esi, dword [edx]
xor ebx, ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
js 0x100247b9
cmp esi, edi
jge 0x100247b9
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx + esi*4]
mov ecx, dword [ebp + 0x14]
cmp ecx, 0xffffffff
je 0x10024853
cmp dword [eax + 0x1a50], 0
jne 0x10024853
movss xmm3, dword [0x10038c6c]
test ecx, ecx
jle 0x10024810
movss xmm1, dword [eax + 0x1558]
movss xmm2, dword [eax + 0x1518]
movaps xmm3, xmm1
addss xmm3, dword [eax + 0x18bc]
movd xmm0, ecx
addss xmm2, xmm2
cvtdq2ps xmm0, xmm0
mulss xmm3, xmm0
subss xmm3, xmm1
addss xmm3, xmm2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x7f7fffff
movss dword [ebp - 0x10], xmm3
movups xmm0, xmmword [ebp - 0x1c]
mov dword [eax + 0x1a50], 1
mov dword [eax + 0x1a90], 0
movups xmmword [eax + 0x1a80], xmm0
mov dword [eax + 0x1a94], 0
push ecx
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.10023c20
add esp, 4
test al, al
jne 0x1002486c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov byte [ebp + 0x17], 0
test edi, edi
jle 0x1002492a
mov eax, dword [0x100604b8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
nop word [eax + eax]
mov eax, dword [eax + 0x199c]
lea esi, [ebp - 4]
add eax, 0x1c4
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
mov edi, 4
mov ecx, dword [eax]
mov eax, dword [eax + 8]
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 + 0x100347a0]
sub edi, 1
jne 0x100248b4
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
not edx
push eax
mov dword [ebp - 4], edx
call fcn.10012a80
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov esi, dword [edi]
cmp ebx, esi
mov ecx, dword [eax + ebx*4]
sete dl
call fcn.1002a1b0
add esp, 8
test al, al
je 0x10024906
mov byte [ebp + 0x17], 1
mov dword [edi], ebx
cmp ebx, esi
jne 0x1002490f
call fcn.1000d980
mov eax, dword [0x100604b8]
inc ebx
mov ecx, dword [eax + 0x199c]
dec dword [ecx + 0x1c4]
cmp ebx, dword [ebp + 0x10]
jl 0x10024890
call fcn.1000e370
mov al, byte [ebp + 0x17]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002dd80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1002ddd4
mov eax, dword [ebp + 8]
push 0x64
push 0x64
mov dword [0x10060564], eax
call dword [sym.imp.KERNEL32.dll_Beep]
test eax, eax
je 0x1002ddd4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x1002db10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
lea eax, [ebp + 8]
push eax
push 0x1002b510
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x1002e100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1002e12c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1002e14e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1002e150
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1002e1d5
jg 0x1002e165
test esi, esi
je 0x1002e1d5
test ecx, ecx
jl 0x1002e1b8
jg 0x1002e16f
test eax, eax
je 0x1002e1b8
cmp edi, ecx
jg 0x1002e183
jl 0x1002e179
cmp esi, eax
jae 0x1002e183
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x1002e1d5
jg 0x1002e1bb
test esi, esi
je 0x1002e1d5
jmp 0x1002e1bb
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1002e1d5
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002e1f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x1002e214
jl 0x1002e208
test esi, esi
jne 0x1002e214
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1002e22d
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x1002e26b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x1002e26b
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp + 8], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x1002e271
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x1002e2f0
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1002e29a
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp + 8]
cmp edi, 0xfff
jbe 0x1002e2dc
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x1002e303
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1002e2b0
test edx, edx
je 0x1002e2f0
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002e660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1003c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1002e690
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f367
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1002e6c0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1002e6c0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f367
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1002e796
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1002e6e9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1002e6f5
movsx eax, bl
jmp 0x1002e72d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1002e757
sub eax, 1
je 0x1002e757
sub eax, 2
jne 0x1002e796
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f367
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1002e775
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1002e796
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1002e796
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f367
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f367
mov esp, ebp
pop ebp
ret 4