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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], ebx
mov ecx, 0x1005f113
mov dword [esp + 0x10], edi
call fcn.1003df25
push 4
mov edx, 0x24687531
mov ecx, ebx
call fcn.10013c70
add esp, 4
test al, al
je 0x10013473
mov edx, dword [edi + 0xc]
mov ecx, ebx
call fcn.100139e0
test al, al
je 0x10013473
mov edx, dword [edi + 0x10]
mov ecx, ebx
call fcn.100139e0
test al, al
je 0x10013473
mov esi, dword [edi]
mov edi, dword [edi + 4]
mov dword [esp + 0xc], esi
cmp esi, edi
je 0x10013346
nop dword [eax]
mov dx, word [esi + 4]
push ecx
mov ecx, ebx
call fcn.10013d00
add esp, 4
test al, al
je 0x10013473
push ebx
push 1
lea eax, [esi + 6]
push 6
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x10013473
mov eax, dword [esp + 0x10]
add esi, 0xc
mov edi, dword [eax + 4]
cmp esi, edi
jne 0x10013300
mov esi, dword [eax]
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0xc]
xor ebx, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
cmp eax, edi
je 0x10013380
mov eax, dword [esi]
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
call fcn.1000af30
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
nop
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 4]
cmp eax, dword [edx]
jne 0x100133a3
cmp edi, ecx
jne 0x100133a3
cmp esi, ecx
jne 0x100133a3
cmp esi, edi
je 0x10013468
test ebx, ebx
je 0x10013468
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10013473
cmp dword [ebx + 0x10], 0
je 0x10013473
cmp dword [ebx], 0
jne 0x100133d4
cmp dword [ebx + 4], 0
jne 0x100133d4
cmp dword [ebx + 8], 0
jne 0x100133d4
cmp dword [ebx + 0xc], 0
je 0x10013473
push eax
push 1
push 0x10
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x10013473
push dword [esp + 0x14]
push eax
push 0x54
push dword [ebx + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x10013473
cmp esi, edi
jne 0x10013420
push 0x29f
push str.e:_trunk_code_rhinoprotect_share_vendor_sourcelib_sparsehash_src_sparsehash_sparsetable
push str.row_current___row_end
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
movzx eax, word [esi + 4]
add ebx, 0x14
lea ecx, [eax + eax*4]
mov eax, dword [esi]
lea eax, [eax + ecx*4]
cmp ebx, eax
mov eax, dword [esp + 0xc]
jne 0x10013380
nop dword [eax + eax]
mov eax, dword [esp + 0xc]
add esi, 0xc
cmp esi, edi
je 0x10013380
movzx eax, word [esi + 4]
mov ebx, dword [esi]
lea ecx, [eax + eax*4]
lea eax, [ebx + ecx*4]
cmp ebx, eax
je 0x10013440
mov eax, dword [esp + 0xc]
jmp 0x10013380
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10013a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1005c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov ecx, 0x1005f111
push edi
mov edi, edx
call fcn.1003df25
mov dword [edi], 0
xor esi, esi
nop dword [eax]
push ebx
push 1
lea eax, [ebp - 5]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10013b02
movzx eax, byte [ebp - 5]
mov ecx, 3
sub ecx, esi
inc esi
shl ecx, 3
shl eax, cl
or dword [edi], eax
cmp esi, 4
jb 0x10013ac0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c726
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c726
mov esp, ebp
pop ebp
ret

Function at 0x10013b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1005c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov ecx, 0x1005f111
push edi
mov edi, edx
call fcn.1003df25
mov dword [edi], 0
xor esi, esi
nop dword [eax]
push ebx
push 1
lea eax, [ebp - 5]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10013b92
movzx eax, byte [ebp - 5]
mov ecx, 7
sub ecx, esi
inc esi
shl ecx, 3
shl eax, cl
or dword [edi], eax
cmp esi, 8
jb 0x10013b50
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c726
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c726
mov esp, ebp
pop ebp
ret

Function at 0x10013bb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1005c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov ebx, edx
push edi
mov ecx, 0x1005f111
call fcn.1003df25
xor eax, eax
xor edi, edi
mov word [ebx], ax
lea esi, [eax + 8]
nop dword [eax]
push dword [ebp - 0xc]
lea eax, [ebp - 5]
push 1
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10013c23
movzx eax, byte [ebp - 5]
mov ecx, esi
shl ax, cl
add edi, 8
or word [ebx], ax
sub esi, 8
cmp edi, 0x10
jb 0x10013be0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c726
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c726
mov esp, ebp
pop ebp
ret
Function at 0x10013c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1005c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov ecx, 0x1005f111
push edi
mov dword [ebp - 0xc], edx
call fcn.1003df25
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x10013cd7
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, edi
sub eax, esi
lea ecx, [eax - 1]
cmp ecx, 4
jb 0x10013cb2
xor al, al
jmp 0x10013cba
mov eax, dword [ebp - 0xc]
shl ecx, 3
shr eax, cl
push dword [ebp - 0x10]
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10013cea
inc esi
cmp esi, edi
jb 0x10013ca2
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c726
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c726
mov esp, ebp
pop ebp
ret

Function at 0x10013d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1005c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
mov ecx, 0x1005f111
call fcn.1003df25
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor esi, esi
nop word [eax + eax]
mov eax, 1
sub eax, esi
cmp eax, 2
jb 0x10013d40
xor dl, dl
jmp 0x10013d53
mov edx, dword [ebp - 0xc]
mov eax, 1
sub eax, esi
shl al, 3
mov cx, ax
shr dx, cl
push edi
push 1
lea eax, [ebp - 5]
mov byte [ebp - 5], dl
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10013d82
inc esi
cmp esi, 2
jb 0x10013d30
pop edi
pop esi
mov al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c726
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c726
mov esp, ebp
pop ebp
ret
Function at 0x10027a20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043096
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1005c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x1006012a
call fcn.1003df25
mov dword [esi], vtable.RC::RCHashCalc.0
mov dword [ebp - 4], 0
mov eax, dword [0x1005caf8]
mov dword [esi], vtable.RC::RCHashCalcCrc32.0
test al, 1
jne 0x10027b7c
or eax, 1
mov dword [0x1005caf8], eax
mov byte [ebp - 4], 1
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x1005cb80], ecx
inc eax
cmp eax, 0x100
jb 0x10027a81
cmp eax, 0x800
jae 0x10027b53
nop word [eax + eax]
mov edx, dword [eax*4 + 0x1005c780]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x1005cb80]
mov dword [eax*4 + 0x1005cb80], edx
inc eax
cmp eax, 0x800
jb 0x10027b30
mov dword [0x1005caec], 0x1003e4f0
call fcn.10038210
mov ecx, dword [0x1005caec]
test eax, eax
mov edx, 0x1003e410
cmove ecx, edx
mov dword [0x1005caec], ecx
mov byte [ebp - 4], 0
push 4
call fcn.1003c737
mov dword [esi + 4], eax
add esp, 4
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002a2e0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x10056800
push 0x1003c79f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1005c008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x20], esi
mov ecx, 0x1006012a
call fcn.1003df25
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1002a34b
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.1002a420
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1002a37d
test bl, bl
jne 0x1002a3ed
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1002a392
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push 0x100498d4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002a3c3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.1000ac30
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.1003c726
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x1002a600
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004399f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1005c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], edi
mov ecx, 0x1006012a
mov dword [ebp - 0x30], 0
call fcn.1003df25
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x1002a650
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1002a66e
mov eax, edx
nop dword [eax]
cmp word [eax], 0x25
je 0x1002a6a2
add eax, 2
sub ecx, 1
jne 0x1002a660
push esi
mov ecx, edi
call fcn.10011e20
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c726
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1002a66e
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x1002a66e
push esi
lea ecx, [ebp - 0x28]
call fcn.10011e20
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1002a6c9
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jne 0x1002a700
push esi
mov ecx, edi
call fcn.10011e20
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.1000ab60
mov dword [ebp - 4], ebx
mov dword [ebp - 4], ebx
jmp 0x1002a684
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003ce2b
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x14], 8
jb 0x1002a727
mov esi, dword [esi]
lea ecx, [ebx + 1]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x1002a769
cmp eax, ebx
ja 0x1002a769
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002a750
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.1000ac30
push esi
call fcn.1003c7c2
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10012780
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.1000ab60
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
jmp 0x1002a684
Function at 0x1002cce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov ecx, 0x1005f6b6
push edi
call fcn.1003df25
cmp dword [ebx + 0x38], 0
je 0x1002cd18
push dword [ebp + 0x10]
mov ecx, ebx
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 0x1002cd3a
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1002cd3c
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1002cdc1
jg 0x1002cd51
test esi, esi
je 0x1002cdc1
test ecx, ecx
jl 0x1002cd9a
jg 0x1002cd5b
test eax, eax
je 0x1002cd9a
cmp edi, ecx
jg 0x1002cd6f
jl 0x1002cd65
cmp esi, eax
jae 0x1002cd6f
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 0x1002cd9d
mov edx, dword [ebp + 8]
test edi, edi
jl 0x1002cdc1
jg 0x1002cda7
test esi, esi
je 0x1002cdc1
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1002cdc1
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 0x1002cde0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x1005f6b6
call fcn.1003df25
cmp dword [edi + 0x38], 0
je 0x1002ce18
push dword [ebp + 0x10]
mov ecx, edi
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__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x1002ce3a
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1002ce3c
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x1002cedc
jg 0x1002ce59
test esi, esi
je 0x1002cedc
test ecx, ecx
jl 0x1002cea6
jg 0x1002ce63
test eax, eax
je 0x1002cea6
cmp ebx, ecx
jg 0x1002ce77
jl 0x1002ce6d
cmp esi, eax
jae 0x1002ce77
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x1002cead
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x1002cedc
jg 0x1002ceb7
test esi, esi
je 0x1002cedc
cmp dword [edi + 0x4c], 0
je 0x1002cedc
mov ecx, edi
call fcn.1002e160
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002d290
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x1005c008]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x1005f6b6
call fcn.1003df25
mov ebx, dword [esp + 0x3c]
cmp ebx, 0xffffffff
jne 0x1002d2ca
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1003c726
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1002d2fd
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1002d2fd
mov ecx, esi
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 [esp + 0x2c]
xor ecx, esp
call fcn.1003c726
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1002d403
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1002d326
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 0x1002d35b
push dword [esi + 0x4c]
movsx eax, bl
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 [esp + 0x2c]
xor ecx, esp
call fcn.1003c726
add esp, 0x30
ret 4
lea eax, [esp + 0xc]
mov byte [esp + 0x17], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
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 0x1002d403
cmp eax, 1
jle 0x1002d3bf
cmp eax, 3
jne 0x1002d403
mov edx, dword [esi + 0x4c]
mov cl, byte [esp + 0x17]
call fcn.1002be30
or ecx, 0xffffffff
test al, al
pop edi
cmovne ecx, ebx
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1003c726
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x1002d3df
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 0x1002d403
lea eax, [esp + 0x17]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x10], eax
je 0x1002d403
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1003c726
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003c726
add esp, 0x30
ret 4
Function at 0x1002e1d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x1005c008]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
mov ecx, 0x1005f6b6
push edi
call fcn.1003df25
cmp dword [esi + 0x38], 0
je 0x1002e288
cmp byte [esi + 0x3d], 0
je 0x1002e288
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1002e239
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
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 0x1002e24c
sub eax, 1
je 0x1002e250
sub eax, 2
je 0x1002e288
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1003c726
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x1002e270
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 0x1002e239
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1003c726
add esp, 0x28
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.1003c726
add esp, 0x28
ret

Function at 0x10032700
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004442f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1005c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov ecx, 0x1006012a
call fcn.1003df25
cmp esi, 0xffffffff
jne 0x10032742
xor al, al
jmp 0x100327b9
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x10032752
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x10032764
mov al, 1
jmp 0x100327b9
lea ecx, [ebp - 0x28]
call fcn.10009ed0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10033190
test al, al
je 0x10032798
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x10032798
mov bl, 1
jmp 0x1003279a
xor bl, bl
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.1000ab60
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c726
mov esp, ebp
pop ebp
ret
Function at 0x100327e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044496
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1005c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x1006012a
call fcn.1003df25
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10032820
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100328a4
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 4
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10033190
test al, al
je 0x10032887
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.1000ab60
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c726
mov esp, ebp
pop ebp
ret