joyce8/EMBER2024-capa huggingface dataset:
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 0x10033703
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, 0x10034569
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 + 0x100347b0]
test al, al
jne 0x100059a0
mov edi, dword [ebp - 0x18]
not edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0x10012520
mov dword [ebp - 0x2c], 0x100125c0
mov esi, dword [edi + 0x2cf4]
mov ecx, dword [edi + 0x2cf8]
mov dword [ebp - 0x28], 0x10012690
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 + 0x100347b0]
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 0x10012050
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 0x1001213c
inc edi
test ecx, ecx
je 0x100120b6
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100120bb
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x1001213c
test esi, esi
je 0x100120ce
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 0x1001212a
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 0x1001211d
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 0x10012197
sub esi, ecx
test ebx, ebx
je 0x100121aa
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 0x100121f8
or edi, 0xffffffff
cmp al, 0x23
jne 0x100121df
cmp byte [esi], al
jne 0x100121df
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 + 0x100347b0]
test al, al
jne 0x100121d1
pop edi
not edx
mov eax, ebx
pop esi
mov dword [ebx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10012420
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 0x1001251a
push edi
lea edi, [esi + 0x2ce8]
mov dword [esi + 0x2ce4], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10012477
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.10013230
mov ecx, dword [edi + 4]
xor edx, edx
mov dword [edi], 0
test ecx, ecx
jne 0x1001248e
push 8
mov ecx, edi
call fcn.10013230
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 0x100124d7
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 0x100124b0
mov ebx, dword [edi]
mov ecx, dword [ebp - 8]
lea eax, [ebx - 1]
neg ebx
mov edi, 0x100604b4
mov edx, 0x10034628
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 0x10012518
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 0x10021210
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.10033590
mov edx, dword [0x10060914]
mov ecx, dword [0x10060910]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x18], xmm0
call fcn.10033590
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 0x10021335
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 0x100213ab
mov ecx, dword [0x10060904]
cmp eax, ecx
je 0x10021369
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x100213ab
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x100213ab
lea eax, [ebp - 0x24]
push eax
push dword [0x10060904]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x100213ab
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 0x100213b9
or eax, 0xffffffff
jmp 0x100213c4
mov eax, dword [0x100604b8]
mov eax, dword [eax + 0x1d04]
cmp dword [0x1005fecc], eax
je 0x100213d6
mov dword [0x1005fecc], eax
call fcn.10020e70
call fcn.10020f90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f6f7
mov esp, ebp
pop ebp
ret
Function at 0x10024900
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 0x10024929
cmp esi, edi
jge 0x10024929
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx + esi*4]
mov ecx, dword [ebp + 0x14]
cmp ecx, 0xffffffff
je 0x100249c3
cmp dword [eax + 0x1a50], 0
jne 0x100249c3
movss xmm3, dword [0x10038c84]
test ecx, ecx
jle 0x10024980
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.10023d90
add esp, 4
test al, al
jne 0x100249dc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov byte [ebp + 0x17], 0
test edi, edi
jle 0x10024a9a
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 + 0x100347b0]
sub edi, 1
jne 0x10024a24
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
not edx
push eax
mov dword [ebp - 4], edx
call fcn.10012ae0
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.1002a320
add esp, 8
test al, al
je 0x10024a76
mov byte [ebp + 0x17], 1
mov dword [edi], ebx
cmp ebx, esi
jne 0x10024a7f
call fcn.1000d9d0
mov eax, dword [0x100604b8]
inc ebx
mov ecx, dword [eax + 0x199c]
dec dword [ecx + 0x1c4]
cmp ebx, dword [ebp + 0x10]
jl 0x10024a00
call fcn.1000e3c0
mov al, byte [ebp + 0x17]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002e100
Capabilities:
Create thread

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

Function at 0x1002e490
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 0x1002e4bc
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 0x1002e4de
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1002e4e0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1002e565
jg 0x1002e4f5
test esi, esi
je 0x1002e565
test ecx, ecx
jl 0x1002e548
jg 0x1002e4ff
test eax, eax
je 0x1002e548
cmp edi, ecx
jg 0x1002e513
jl 0x1002e509
cmp esi, eax
jae 0x1002e513
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 0x1002e565
jg 0x1002e54b
test esi, esi
je 0x1002e565
jmp 0x1002e54b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1002e565
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 0x1002e580
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 0x1002e5a4
jl 0x1002e598
test esi, esi
jne 0x1002e5a4
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1002e5bd
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 0x1002e5fb
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x1002e5fb
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 0x1002e601
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x1002e680
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1002e62a
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 0x1002e66c
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 0x1002e693
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1002e640
test edx, edx
je 0x1002e680
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 0x1002e9f0
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 0x1002ea20
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f6f7
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1002ea50
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1002ea50
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.1002f6f7
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1002eb26
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1002ea79
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 0x1002ea85
movsx eax, bl
jmp 0x1002eabd
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 0x1002eae7
sub eax, 1
je 0x1002eae7
sub eax, 2
jne 0x1002eb26
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.1002f6f7
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1002eb05
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 0x1002eb26
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1002eb26
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f6f7
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.1002f6f7
mov esp, ebp
pop ebp
ret 4
Function at 0x1002ed70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1003c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1002ee2c
cmp byte [esi + 0x3d], 0
je 0x1002ee2c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1002ee1a
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 0x1002ede1
sub eax, 1
je 0x1002ede5
sub eax, 2
jne 0x1002ee1a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f6f7
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1002ee03
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 0x1002ee1a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f6f7
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f6f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1002f6f7
mov esp, ebp
pop ebp
ret

Function at 0x10030870
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.10030a20
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003093d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1003c014]
jb 0x100308ba
mov eax, dword [ebp - 4]
cmp eax, dword [0x1003c018]
ja 0x100308ba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003088a
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 0x100308e0
jmp 0x1003093d
cmp dword [ebp - 0x14], 0x10000
jne 0x10030923
cmp dword [ebp - 0x18], 0x10000
jb 0x10030923
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 0x10030916
mov eax, dword [ebp - 8]
jmp 0x1003093f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10030938
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10030a20
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003088a
xor eax, eax
mov esp, ebp
pop ebp
ret