joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005830
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 0x10033d6e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x1003d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1003d7b8]
test eax, eax
je 0x1000587a
inc dword [eax + 0x370]
push 0x3b30
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 - 0x18], ecx
mov dword [ebp - 4], 0
test eax, eax
je 0x100058ab
push ecx
mov ecx, eax
call fcn.100012f0
mov edi, eax
mov dword [ebp - 0x18], eax
jmp 0x100058b0
xor edi, edi
mov dword [ebp - 0x18], edi
mov eax, dword [0x1003d7b8]
mov esi, 0x1003559d
test eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], str.Window
cmove eax, edi
or edx, 0xffffffff
mov dword [0x1003d7b8], eax
or edi, 0xffffffff
mov al, 0x57
nop word [eax + eax]
cmp al, 0x23
jne 0x100058ee
cmp byte [esi], al
jne 0x100058ee
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 + 0x100357d8]
test al, al
jne 0x100058e0
mov edi, dword [ebp - 0x18]
not edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 0x10012c80
mov dword [ebp - 0x28], 0x10012d20
mov esi, dword [edi + 0x2cf4]
mov ecx, dword [edi + 0x2cf8]
mov dword [ebp - 0x24], 0x10012e10
cmp esi, ecx
jne 0x100059cb
inc esi
test ecx, ecx
je 0x10005948
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1000594d
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x100059cb
mov eax, dword [0x1003d7b8]
test eax, eax
je 0x10005965
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, dword [edi + 0x2cfc]
add esp, 4
mov dword [ebp - 0x18], eax
test edx, edx
je 0x100059bf
mov ecx, dword [edi + 0x2cf4]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x2cfc]
add esp, 0xc
test ecx, ecx
je 0x100059b2
mov eax, dword [0x1003d7b8]
test eax, eax
je 0x100059b2
dec dword [eax + 0x370]
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 + 0x2cfc], eax
mov dword [edi + 0x2cf8], esi
mov eax, dword [edi + 0x2cf4]
movups xmm0, xmmword [ebp - 0x34]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2cfc]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0x24]
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 0x100089e0
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 0x10008a1f
cmp bl, 0x23
jne 0x10008a01
cmp byte [esi], bl
jne 0x10008a01
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 + 0x100357d8]
test bl, bl
jne 0x100089f2
mov ebx, dword [0x1003d7b8]
not eax
mov esi, dword [ebx + 0x198c]
mov edi, dword [ebx + 0x1994]
mov ecx, edi
test esi, esi
je 0x10008a64
nop dword [eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10008a58
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x10008a5a
mov esi, edx
test esi, esi
jne 0x10008a40
mov ecx, dword [ebx + 0x1994]
mov edx, dword [ebx + 0x198c]
lea ecx, [ecx + edx*8]
cmp edi, ecx
je 0x10008a7c
cmp dword [edi], eax
jne 0x10008a7c
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100127a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [0x1003d7b8]
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 + 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 0x10012892
inc edi
test ecx, ecx
je 0x10012806
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1001280b
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x10012892
test esi, esi
je 0x1001281e
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, eax
add esp, 4
mov eax, dword [esi + 0x2d08]
test eax, eax
je 0x10012880
mov ecx, dword [esi + 0x2d00]
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 + 0x2d08]
add esp, 0xc
test ecx, ecx
je 0x10012876
mov eax, dword [0x1003d7b8]
test eax, eax
je 0x10012876
dec dword [eax + 0x370]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esi + 0x2d08], ebx
mov ebx, dword [0x1003d7b8]
mov dword [esi + 0x2d04], edi
mov eax, dword [esi + 0x2d00]
mov ecx, dword [esi + 0x2d08]
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 + 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 - 8], eax
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x100128f0
sub esi, ecx
test ebx, ebx
je 0x10012903
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 - 8]
lea esi, [edi + 1]
add esp, 0x10
or edx, 0xffffffff
mov dword [ebx], eax
mov al, byte [edi]
test al, al
je 0x10012957
or edi, 0xffffffff
nop word [eax + eax]
cmp al, 0x23
jne 0x1001293e
cmp byte [esi], al
jne 0x1001293e
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 + 0x100357d8]
test al, al
jne 0x10012930
pop edi
not edx
mov eax, ebx
pop esi
mov dword [ebx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10012b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x1003d7b8]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [esi + 0x2ce4], 0
test eax, eax
je 0x10012c7a
push edi
lea edi, [esi + 0x2ce8]
mov dword [esi + 0x2ce4], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10012bd7
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.10013ac0
mov ecx, dword [edi + 4]
xor edx, edx
mov dword [edi], 0
test ecx, ecx
jne 0x10012bee
push 8
mov ecx, edi
call fcn.10013ac0
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 0x10012c37
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 0x10012c10
mov ebx, dword [edi]
mov ecx, dword [ebp - 8]
lea eax, [ebx - 1]
neg ebx
mov edi, 0x1003d7b4
mov edx, 0x10035650
sbb ebx, ebx
and ebx, eax
mov eax, dword [esi + 0x2cf0]
test eax, eax
cmovne edi, eax
call fcn.100026f0
mov esi, eax
test esi, esi
je 0x10012c78
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 0x100222f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x1003d00c]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [0x1003d7b8]
lea eax, [esp + 0x10]
push esi
push edi
push eax
push dword [0x1003db7c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
movd xmm1, eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 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 [esp + 0x30]
mov ecx, edi
sub ecx, dword [0x1003db80]
mov esi, dword [esp + 0x34]
mov edx, esi
sbb edx, dword [0x1003db84]
call fcn.10033c40
mov edx, dword [0x1003db8c]
mov ecx, dword [0x1003db88]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x28], xmm0
call fcn.10033c40
movss xmm1, dword [esp + 0x28]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x1003db84], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x1003db80], 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 [0x1003d7b8]
shr eax, 0xf
and al, 1
mov byte [ebx + 0xfb], 0
mov byte [ebx + 0xfa], al
cmp byte [esi + 0x357], 0
je 0x10022428
cvttss2si eax, dword [esi + 0xe0]
mov dword [esp + 0x28], eax
cvttss2si eax, dword [esi + 0xe4]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push dword [0x1003db7c]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
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 0x100224a2
mov ecx, dword [0x1003db7c]
cmp eax, ecx
je 0x1002245c
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x100224a2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x100224a2
lea eax, [esp + 0x10]
push eax
push dword [0x1003db7c]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x100224a2
movd xmm0, dword [esp + 0x10]
movd xmm1, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xe0], xmm0
movss dword [esi + 0xe4], xmm1
cmp byte [ebx + 0xac], 0
je 0x100224b0
or eax, 0xffffffff
jmp 0x100224bb
mov eax, dword [0x1003d7b8]
mov eax, dword [eax + 0x1d04]
cmp dword [0x1003d170], eax
je 0x100224cd
mov dword [0x1003d170], eax
call fcn.10021f50
call fcn.10022070
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002f9c3
mov esp, ebp
pop ebp
ret
Function at 0x10025860
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x1003d00c]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [edx]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
test eax, eax
js 0x10025894
cmp eax, esi
jge 0x10025894
mov edi, dword [ebx + eax*4]
push ecx
mov edx, edi
call fcn.10024d10
add esp, 4
test al, al
jne 0x100258b5
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1002f9c3
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov byte [esp + 0x13], 0
test esi, esi
jle 0x1002597d
mov eax, dword [0x1003d7b8]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [eax + 0x199c]
lea esi, [esp + 0x28]
add eax, 0x1c4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov edi, 4
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, dword [eax + ecx*4 - 4]
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100357d8]
sub edi, 1
jne 0x10025900
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
not edx
push eax
mov dword [esp + 0x2c], edx
call fcn.10013260
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov esi, dword [edi]
cmp ebx, esi
mov ecx, dword [eax + ebx*4]
sete dl
call fcn.1002adc0
add esp, 8
test al, al
je 0x10025959
mov byte [esp + 0x13], 1
mov dword [edi], ebx
cmp ebx, esi
jne 0x10025962
call fcn.1000e0c0
mov eax, dword [0x1003d7b8]
inc ebx
mov ecx, dword [eax + 0x199c]
dec dword [ecx + 0x1c4]
cmp ebx, dword [ebp + 0x10]
jl 0x100258d1
call fcn.1000eb30
mov ecx, dword [esp + 0x2c]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002f9c3
mov esp, ebp
pop ebp
ret
Function at 0x1002de60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
sub eax, 0
je 0x1002def2
sub eax, 1
jne 0x1002df60
mov esi, dword [ebp + 8]
push esi
mov dword [0x1003d7f4], esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x200
push 0x1003d800
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x1003d800
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002dea2
sub eax, edx
test eax, eax
jle 0x1002debe
nop
cmp byte [eax + 0x1003d800], 0x5c
je 0x1002dedd
dec eax
test eax, eax
jg 0x1002deb0
push 0
push 0
push 0
push 0x1002dc20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop esi
pop ebp
ret 0xc
inc eax
cmp eax, 0x140
jae 0x1002df6a
mov byte [eax + 0x1003d800], 0
jmp 0x1002debe
push 0x1002c360
push 0xfffffffffffffffc
push dword [0x1003d7e8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [0x1003db7c], 0
call fcn.10021ee0
mov esi, dword [0x1003d7b8]
mov ecx, esi
mov dword [0x1003db70], 0
call fcn.100071a0
mov eax, dword [0x1003d7b8]
xor ecx, ecx
cmp eax, esi
cmove eax, ecx
mov dword [0x1003d7b8], eax
test esi, esi
je 0x1002df60
mov ecx, esi
call fcn.10013c30
mov eax, dword [0x1003d7b8]
test eax, eax
je 0x1002df56
dec dword [eax + 0x370]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, 1
pop esi
pop ebp
ret 0xc
call fcn.1003023d
int3
Function at 0x1002e320
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 0x1002e34c
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 0x1002e36e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1002e370
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1002e3f5
jg 0x1002e385
test esi, esi
je 0x1002e3f5
test ecx, ecx
jl 0x1002e3ce
jg 0x1002e38f
test eax, eax
je 0x1002e3ce
cmp edi, ecx
jg 0x1002e3a3
jl 0x1002e399
cmp esi, eax
jae 0x1002e3a3
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 edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x1002e3d1
mov edx, dword [ebp + 8]
test edi, edi
jl 0x1002e3f5
jg 0x1002e3db
test esi, esi
je 0x1002e3f5
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1002e3f5
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 0x1002e410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x1002e43c
jl 0x1002e430
test esi, esi
jne 0x1002e43c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1002e455
push eax
push esi
push ecx
mov ecx, ebx
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 edx, dword [eax]
test edx, edx
je 0x1002e468
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
jmp 0x1002e46a
xor eax, eax
mov dword [ebp - 4], esi
test eax, eax
je 0x1002e499
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 8], esi
add esp, 0xc
mov dword [ebp - 4], edi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4c], 0
je 0x1002e54c
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1002e4c4
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 [ebp - 4]
mov edx, eax
mov ecx, dword [ebp - 8]
cmp eax, 0xfff
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [ebp - 4], edx
jbe 0x1002e50f
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp - 8]
sub edi, eax
add ecx, eax
mov dword [ebp - 4], edi
add esp, 0x10
mov dword [ebp - 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x1002e539
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1002e4e0
cmp dword [ebp - 4], 0
jbe 0x1002e54f
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, dword [ebp - 4]
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
mov eax, esi
pop edi
pop esi
sbb edx, 0
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
mov edx, dword [ebp - 4]
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
Function at 0x1002e8c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1003d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1002e8f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f9c3
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1002e920
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1002e920
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.1002f9c3
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1002e9f5
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1002e949
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 0x1002e955
movsx eax, bl
jmp 0x1002e98c
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]
test eax, eax
js 0x1002e9f5
cmp eax, 1
jle 0x1002e9b6
cmp eax, 3
jne 0x1002e9f5
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.1002f9c3
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1002e9d4
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 0x1002e9f5
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1002e9f5
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f9c3
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.1002f9c3
mov esp, ebp
pop ebp
ret 4
Function at 0x1002ece0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1003d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1002ed9c
cmp byte [esi + 0x3d], 0
je 0x1002ed9c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1002ed8a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1002ed51
sub eax, 1
je 0x1002ed55
sub eax, 2
jne 0x1002ed8a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f9c3
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1002ed73
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 0x1002ed8a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f9c3
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f9c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1002f9c3
mov esp, ebp
pop ebp
ret

Function at 0x10030da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10030f50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10030e6d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1003d014]
jb 0x10030dea
mov eax, dword [ebp - 4]
cmp eax, dword [0x1003d018]
ja 0x10030dea
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10030dba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10030e10
jmp 0x10030e6d
cmp dword [ebp - 0x14], 0x10000
jne 0x10030e53
cmp dword [ebp - 0x18], 0x10000
jb 0x10030e53
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10030e46
mov eax, dword [ebp - 8]
jmp 0x10030e6f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10030e68
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10030f50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10030dba
xor eax, eax
mov esp, ebp
pop ebp
ret