joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x10171a44
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x1000f22d
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x1000f22d
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
jne 0x1000f194
lea ebx, [ecx + 1]
jmp 0x1000f1a0
xor ebx, ebx
mov edx, 1
test ecx, ecx
cmove ebx, edx
add eax, ebx
push eax
call fcn.1006d0e3
add esp, 4
mov dword [ebp + 8], eax
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push esi
push dword [ebp - 4]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [ebp - 4]
add esp, 0x10
cmp eax, ecx
jne 0x1000f22d
test ebx, ebx
je 0x1000f1ed
push ebx
mov ebx, dword [ebp + 8]
push 0
lea eax, [ebx + ecx]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x1000f1f0
mov ebx, dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, edi
push dword [ebp + 0xc]
push ebx
call fcn.1000f360
push ebx
call fcn.1006d0ec
mov eax, dword [edi + 0x28]
add esp, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x1000f226
cmp ecx, 0x20
jne 0x1000f238
mov ecx, dword [eax + 4]
add eax, 4
test ecx, ecx
jne 0x1000f217
mov dword [edi + 0x2c], 0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x2c], eax
test eax, eax
je 0x1000f22d
push 0x20
call fcn.1006caff
xorps xmm0, xmm0
mov dword [ebp + 0xc], eax
add esp, 4
movq qword [eax], xmm0
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_class_valve_parser::Node_.0
mov dword [ecx], vtable.valve_parser::Node.0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], edi
mov esi, dword [edi + 0x34]
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], eax
test esi, esi
je 0x1000f2bd
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1000f2bd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1000f2bd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [edi + 0x30]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000fdd0
Capabilities:
Encode data using xor
Hash data using fnv

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 0x101451b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x18
push esi
push edi
mov edi, dword [ebx + 8]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edi
cmp dword [edi + 0x14], 0xf
jbe 0x1000fe17
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edi + 0x10], ecx
jbe 0x1000fe3b
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edi + 0x10]
jb 0x1000fe26
mov edx, dword [ebp - 0x14]
push esi
push edi
lea eax, [ebp - 0x24]
mov ecx, edx
push eax
call fcn.10011020
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x1000ff28
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 0x4924924
jne 0x1000fe6a
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
add eax, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x18], 0
call fcn.1006caff
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
push edi
lea edi, [ecx + 8]
mov ecx, edi
call fcn.10002ed0
xorps xmm0, xmm0
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], 1
mov eax, dword [edi + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1017f940]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1017f940]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [edi]
jbe 0x1000ff19
mov ecx, edi
call fcn.10011890
mov eax, dword [ebp - 0x18]
mov ecx, edi
push esi
add eax, 8
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10011020
mov ecx, dword [eax]
jmp 0x1000ff1c
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x18]
push ecx
push esi
mov ecx, edi
call fcn.1000c1a0
mov ecx, dword [ebp - 0xc]
add eax, 0x20
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x100110b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101452fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp dword [edx + 0x14], 0xf
push edi
mov dword [ebp - 0x10], esi
jbe 0x100110e0
mov ebx, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x10011102
nop dword [eax]
movzx eax, byte [ebx + ecx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x100110f0
push edi
push edx
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.10011020
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10011132
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 8], 0x6666666
jne 0x10011146
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [esi + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x28
mov dword [ebp - 0x20], 0
call fcn.1006caff
mov ebx, eax
add esp, 4
mov dword [ebp - 0x20], ebx
push dword [ebp + 0xc]
lea esi, [ebx + 8]
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.10002ed0
add esi, 0x18
mov byte [ebp - 4], 1
push 0x28
mov dword [ebp + 0xc], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1006caff
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 2
mov eax, dword [esi + 8]
inc eax
movss xmm3, dword [esi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1017f940]
mov eax, dword [esi + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x1017f940]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x10011246
divss xmm0, xmm3
call fcn.1000af00
call fcn.1006d830
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [esi + 0x1c]
cmp eax, ecx
jae 0x1001122a
cmp eax, 0x200
jae 0x10011228
shl eax, 3
cmp eax, ecx
jae 0x1001122a
mov eax, ecx
push eax
mov ecx, esi
call fcn.100119e0
push edi
lea eax, [ebx + 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10011020
mov edx, dword [eax]
jmp 0x10011249
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
inc dword [esi + 8]
mov dword [ebx + 4], eax
mov dword [ebx], edx
mov dword [eax], ebx
mov dword [edx + 4], ebx
mov ecx, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x18]
and eax, edi
mov edi, dword [ebp - 0x24]
mov esi, dword [ecx + eax*8]
cmp esi, dword [edi]
jne 0x10011273
mov dword [ecx + eax*8], ebx
jmp 0x10011285
cmp esi, edx
jne 0x1001127c
mov dword [ecx + eax*8], ebx
jmp 0x10011289
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x10011289
mov dword [ecx + eax*8 + 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword [eax], ebx
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10016430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0xc
mov edx, dword [0x101e66ac]
push esi
mov edx, dword [eax + edx*4]
mov esi, ecx
mov eax, dword [0x101ee06c]
cmp eax, dword [edx + 4]
jg 0x10016477
mov eax, dword [0x101ee060]
test eax, eax
je 0x10016470
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 0x101ee06c
call fcn.1006d07f
add esp, 4
cmp dword [0x101ee06c], 0xffffffff
jne 0x10016455
mov dword [ebp - 0xb], 0xe1ede8e7
xor eax, eax
mov dword [ebp - 7], 0xe0aaf0ea
mov word [ebp - 3], 0xe8e8
mov byte [ebp - 1], 0x84
jmp 0x100164b0
xor byte [ebp + eax - 0xb], 0x84
inc eax
cmp eax, 0xb
jb 0x100164b0
mov edx, str.55_8B_EC_83_E4_F8_83_EC_34_53_8B_5D_0C_89_4C_24_04
lea ecx, [ebp - 0xb]
call fcn.100c53f0
push 0x101ee06c
mov dword [0x101ee060], eax
call fcn.1006d02e
add esp, 4
jmp 0x10016455

Function at 0x10022e40
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov edx, ebx
push esi
push edi
mov edi, 0x811c9dc5
xor esi, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10022e55
sub edx, ecx
je 0x10022e7f
movsx eax, byte [ebx + esi]
mov ecx, ebx
xor eax, edi
imul edi, eax, 0x1000193
inc esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022e72
sub ecx, edx
cmp esi, ecx
jb 0x10022e60
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10022e90
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10144ff5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x14]
imul edi, ecx, 0x1000193
push edi
push esi
push eax
call fcn.10023460
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10022fb1
cmp dword [0x101ee1a8], 0xfffffff
jne 0x10022f10
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x1c], 0x101ee1a4
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x18], 0
call fcn.1006caff
mov ebx, eax
add esp, 4
mov eax, dword [esi]
mov dword [ebp - 0x18], ebx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], 1
mov eax, dword [0x101ee1a8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1017f940]
mov eax, dword [0x101ee1bc]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1017f940]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [0x101ee1a0]
jbe 0x10022fa6
call fcn.10022fd0
push edi
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10023460
mov ecx, dword [eax]
jmp 0x10022fa9
mov ecx, dword [ebp - 0x14]
push ebx
push ecx
push edi
call fcn.10023030
mov ecx, dword [ebp - 0xc]
add eax, 0xc
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100230a0
Capabilities:
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebx + 8]
cmp ecx, eax
jbe 0x100230de
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [0x101ee1a4]
or eax, 1
mov dword [ebp - 4], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x101ee1ac
lea eax, [edi + edi]
push eax
call fcn.10004490
lea eax, [edi - 1]
mov dword [0x101ee1bc], edi
mov dword [0x101ee1b8], eax
mov eax, dword [0x101ee1a4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10023208
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x101ee1ac]
imul edi, edi, 0x1000193
and edi, dword [0x101ee1b8]
lea edx, [edx + edi*8]
mov dword [ebp - 8], edx
cmp dword [edx], esi
jne 0x10023179
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x100231fe
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x100231bc
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x100231b4
mov edx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [edx], ecx
mov edi, dword [ecx + 4]
mov edx, dword [ebp - 0xc]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 4]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x100231fe
mov esi, dword [ebp - 8]
cmp dword [esi], edx
je 0x100231d2
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10023213
mov esi, dword [ebp - 8]
cmp dword [esi], edx
jne 0x100231c3
mov esi, dword [eax + 4]
mov dword [ebp - 0xc], esi
mov dword [esi], ecx
mov edi, dword [ecx + 4]
mov dword [ebp - 0x10], edi
mov esi, dword [ebp - 0x10]
mov dword [edi], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], esi
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edi
mov dword [edx], eax
mov esi, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
jne 0x10023123
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [edx], ecx
mov edi, dword [ecx + 4]
mov edx, dword [ebp - 0xc]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x10]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x100231fb
Function at 0x10023630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0xc
mov edx, dword [0x101e66ac]
push esi
mov edx, dword [eax + edx*4]
mov esi, ecx
mov eax, dword [0x101ee09c]
cmp eax, dword [edx + 4]
jg 0x1002366a
mov eax, dword [0x101ee0a0]
mov ecx, esi
push 1
push dword [ebp + 8]
call eax
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x101ee09c
call fcn.1006d07f
add esp, 4
cmp dword [0x101ee09c], 0xffffffff
jne 0x10023655
mov dword [ebp - 0xb], 0xe1ede8e7
xor eax, eax
mov dword [ebp - 7], 0xe0aaf0ea
mov word [ebp - 3], 0xe8e8
mov byte [ebp - 1], 0x84
jmp 0x100236a0
xor byte [ebp + eax - 0xb], 0x84
inc eax
cmp eax, 0xb
jb 0x100236a0
mov edx, str.55_8B_EC_83_EC_1C_53_8B_D9_85_DB
lea ecx, [ebp - 0xb]
call fcn.100c53f0
push 0x101ee09c
mov dword [0x101ee0a0], eax
call fcn.1006d02e
add esp, 4
jmp 0x10023655

Function at 0x10026c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10026c6c
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 + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10026c94
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10026c9a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10026d24
jg 0x10026cb1
test esi, esi
je 0x10026d24
test ecx, ecx
jl 0x10026d07
jg 0x10026cbb
test eax, eax
je 0x10026d07
cmp edi, ecx
jg 0x10026ccf
jl 0x10026cc5
cmp esi, eax
jae 0x10026ccf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
add edx, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x10026d24
jg 0x10026d0a
test esi, esi
je 0x10026d24
jmp 0x10026d0a
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10026d24
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 + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10026d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
test eax, eax
jg 0x10026d6b
jl 0x10026d5e
test ecx, ecx
jne 0x10026d6b
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10026d87
push eax
push ecx
push dword [ebp + 8]
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10026dd9
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [esp + 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10026de0
mov edi, dword [ebp + 8]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [esp + 0x18]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x20], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x14]
jmp 0x10026de3
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x10026e56
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10026e0d
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 [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10026e44
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10026e56
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10026e20
test edi, edi
je 0x10026e56
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100272a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100272bc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100272ee
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100272ee
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100273b1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10027316
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 0x10027322
movsx eax, bl
jmp 0x1002735a
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
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 0x1002737a
sub eax, 1
je 0x1002737a
sub eax, 2
jne 0x100273b1
movsx eax, byte [ebp - 1]
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
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x10027398
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 0x100273b1
lea ecx, [ebp - 1]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 8], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10028ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10028d6c
cmp byte [esi + 0x3d], 0
je 0x10028d6c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10028d64
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
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 0x10028d35
sub eax, 1
je 0x10028d39
sub eax, 2
jne 0x10028d64
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10028d57
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 0x10028d64
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret