joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014410
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
not ebx
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
test edi, edi
je 0x10014472
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10014456
cmp edi, 2
jb 0x10014456
cmp byte [esi], cl
jne 0x10014456
cmp byte [esi + 1], cl
jne 0x10014456
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100782f8]
jmp 0x10014427
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100782f8]
test edi, edi
jne 0x10014427
pop edi
pop esi
not eax
pop ebx
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x100144a8
nop dword [eax]
cmp cl, 0x23
jne 0x1001448f
cmp byte [esi], cl
jne 0x1001448f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x100782f8]
test cl, cl
jne 0x10014480
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x10014880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
xor ecx, ecx
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x100148a1
cmp eax, ebp
jae 0x10014a06
mov bl, byte [eax]
test bl, bl
je 0x10014a06
movzx ecx, bl
mov edx, ebp
shr ecx, 3
movsx edi, byte [ecx + 0x10079270]
xor ecx, ecx
test edi, edi
mov dword [esp + 0x14], edi
sete cl
add ecx, edi
mov dword [esp + 0x18], ecx
test ebp, ebp
jne 0x100148d2
lea edx, [ecx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, bl
mov byte [esp + 0x13], cl
cmp esi, edx
jae 0x100148e7
mov bh, byte [esi]
jmp 0x100148e9
xor bh, bh
lea esi, [eax + 2]
mov byte [esp + 0x12], bh
cmp esi, edx
jae 0x100148f8
mov ch, byte [esi]
jmp 0x100148fa
xor ch, ch
lea esi, [eax + 3]
mov byte [esp + 0x11], ch
cmp esi, edx
jae 0x10014909
mov bl, byte [esi]
jmp 0x1001490b
xor bl, bl
mov edi, dword [edi*4 + 0x10079290]
movzx edx, ch
movzx ecx, cl
and edi, ecx
movzx esi, bh
shl edi, 6
mov ecx, esi
and ecx, 0x3f
mov byte [esp + 0x28], bl
or edi, ecx
movzx ebx, bl
shl edi, 6
mov ecx, edx
and ecx, 0x3f
and edx, 0xc0
or edi, ecx
and esi, 0xc0
mov ecx, ebx
shl edi, 6
and ecx, 0x3f
shr ebx, 2
or edi, ecx
or ebx, edx
mov ecx, dword [esp + 0x14]
shr ebx, 2
or ebx, esi
mov esi, dword [esp + 0x14]
shr ebx, 2
mov ecx, dword [ecx*4 + 0x100792b8]
shr edi, cl
cmp edi, dword [esi*4 + 0x100792a4]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or ebx, ecx
mov ecx, edi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or ebx, edx
cmp ecx, edi
sbb ecx, ecx
and ecx, 0x100
or ebx, ecx
mov ecx, dword [esi*4 + 0x100792cc]
xor ebx, 0x2a
sar ebx, cl
test ebx, ebx
je 0x100149f6
xor edx, edx
cmp byte [esp + 0x28], dl
setne dl
xor ecx, ecx
cmp byte [esp + 0x11], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x12], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x13], cl
setne cl
add edx, ecx
cmp dword [esp + 0x18], edx
cmovl edx, dword [esp + 0x18]
mov ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
jmp 0x10014891
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
jmp 0x10014891
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
Function at 0x10014a60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
dec eax
push ebp
mov ebp, edx
mov dword [esp + 0x10], ebp
lea eax, [edx + eax*2]
mov dword [esp + 0x14], eax
cmp edx, eax
mov eax, dword [esp + 0x24]
jae 0x10014c34
push esi
mov esi, dword [esp + 0x2c]
push ebx
push edi
nop dword [eax]
test esi, esi
je 0x10014a9c
cmp eax, esi
jae 0x10014c2d
mov cl, byte [eax]
mov byte [esp + 0x2c], cl
test cl, cl
je 0x10014c2d
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x10079270]
test ecx, ecx
mov dword [esp + 0x18], ecx
sete bl
add ebx, ecx
test esi, esi
jne 0x10014acd
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [esp + 0x2c]
mov byte [esp + 0x13], cl
cmp esi, edx
jae 0x10014ae8
mov ch, byte [esi]
mov byte [esp + 0x11], ch
jmp 0x10014aed
mov byte [esp + 0x11], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x10014afc
mov ch, byte [esi]
mov byte [esp + 0x2c], ch
jmp 0x10014b01
mov byte [esp + 0x2c], 0
lea esi, [eax + 3]
cmp esi, edx
jae 0x10014b0c
mov ch, byte [esi]
jmp 0x10014b0e
xor ch, ch
mov ebp, dword [esp + 0x18]
movzx esi, byte [esp + 0x11]
movzx edx, byte [esp + 0x2c]
movzx edi, ch
mov ebp, dword [ebp*4 + 0x10079290]
mov byte [esp + 0x12], ch
movzx ecx, cl
and ebp, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [esp + 0x14], ebp
shl dword [esp + 0x14], 6
and esi, 0xc0
or dword [esp + 0x14], ecx
mov ecx, edx
shl dword [esp + 0x14], 6
and ecx, 0x3f
or dword [esp + 0x14], ecx
and edx, 0xc0
shl dword [esp + 0x14], 6
mov ecx, edi
mov ebp, dword [esp + 0x14]
and ecx, 0x3f
or ebp, ecx
shr edi, 2
mov ecx, dword [esp + 0x18]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x100792b8]
shr ebp, cl
mov esi, ebp
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x18]
cmp esi, dword [ebp*4 + 0x100792a4]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebp*4 + 0x100792cc]
mov ebp, dword [esp + 0x1c]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x10014c12
xor edx, edx
mov esi, 0xfffd
cmp byte [esp + 0x12], dl
setne dl
xor ecx, ecx
cmp byte [esp + 0x2c], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x11], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x13], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
mov word [ebp], si
add eax, ebx
mov esi, dword [esp + 0x34]
add ebp, 2
mov dword [esp + 0x1c], ebp
cmp ebp, dword [esp + 0x20]
jb 0x10014a90
mov edx, dword [esp + 0x28]
pop edi
pop ebx
pop esi
xor ecx, ecx
mov word [ebp], cx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x10014c44
mov dword [ecx], eax
sub ebp, edx
sar ebp, 1
mov eax, ebp
pop ebp
add esp, 0x14
ret
Function at 0x100172f0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x5b90], 0
lea esi, [edi + 0x5b94]
je 0x1001736a
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10017324
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, esi
call fcn.10027960
push dword [esp + 0x14]
mov ecx, esi
mov dword [esi], 0
push dword [esp + 0x14]
call fcn.10027400
mov edx, dword [esi]
mov ecx, 0x1009274c
push dword [edi + 0x5b90]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5b9c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
ret
push dword [esp + 0x14]
mov ecx, esi
push dword [esp + 0x14]
call fcn.10027400
pop edi
pop esi
ret
Function at 0x10020710
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x10092748]
push esi
mov esi, dword [esp + 8]
mov dword [eax + 0x5b24], 0
test esi, esi
je 0x1002076a
lea eax, [esp + 8]
mov dword [esp + 8], 0
push edi
push eax
call fcn.10020770
push 0x1007ec1c
push esi
mov edi, eax
call fcn.10013390
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10020769
push esi
push dword [esp + 0x10]
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 edi
pop esi
ret

Function at 0x10025be0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [0x10092748]
cmp byte [esi + 0x5b20], 0
jne 0x10025d19
cmp dword [esi + 0x5b40], 0
je 0x10025c15
push 0x3289
push str.D:Projectm2extLibrariesimguiimgui.cpp
push str.g.SettingsWindows.empty__
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10025d12
push edi
push 0x1007ec18
push eax
call fcn.10013390
mov edi, eax
add esp, 8
test edi, edi
je 0x10025d11
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push ebp
push edi
call ebx
mov ebp, eax
add esp, 4
cmp ebp, 0xffffffff
je 0x10025d05
push 2
push 0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10025d05
push edi
call ebx
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x10025d05
push 0
push ebp
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10025d05
mov eax, dword [0x10092748]
test eax, eax
je 0x10025c99
inc dword [eax + 0xb0]
push dword [0x10092750]
push ebx
call dword [0x1009000c]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x10025d05
push edi
push ebx
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push edi
cmp eax, ebx
je 0x10025ccd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
jmp 0x10025ce4
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x10025ce4
push ebx
push ebp
call fcn.10016c80
add esp, 8
mov eax, dword [0x10092748]
test eax, eax
je 0x10025cf3
dec dword [eax + 0xb0]
push dword [0x10092750]
push ebp
call dword [0x10090010]
add esp, 8
jmp 0x10025d0f
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop ebp
pop ebx
pop edi
mov byte [esi + 0x5b20], 1
movss xmm0, dword [esi + 0x5b24]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x10025d68
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5b24], xmm0
jb 0x10025d68
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10025d57
push eax
call fcn.10020710
add esp, 4
mov dword [esi + 0x5b24], 0
pop esi
ret
mov byte [esi + 0x96], 1
mov dword [esi + 0x5b24], 0
pop esi
ret
Function at 0x1002be10
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp edi, 8
ja 0x1002bf39
test byte [esi], 2
jne 0x1002bf39
cmp dword [esi + 0x468], 0xffffffff
jne 0x1002be4b
push 0x91c
push str.D:Projectm2extLibrariesimguiimgui_draw.cpp
push str.PackIdMouseCursors____1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
push dword [esi + 0x468]
mov ecx, esi
call fcn.1002bdb0
lea edx, [edi + edi*2]
movss xmm2, dword [edx*8 + 0x100801c8]
movss xmm4, dword [edx*8 + 0x100801cc]
movzx ecx, word [eax + 4]
movzx eax, word [eax + 6]
pop edi
movd xmm5, ecx
movd xmm3, eax
mov eax, dword [esp + 0x10]
cvtdq2ps xmm5, xmm5
cvtdq2ps xmm3, xmm3
addss xmm5, dword [edx*8 + 0x100801c0]
addss xmm3, dword [edx*8 + 0x100801c4]
movss dword [eax + 4], xmm4
movss dword [eax], xmm2
mov ecx, dword [edx*8 + 0x100801d0]
mov edx, dword [edx*8 + 0x100801d4]
movaps xmm1, xmm5
mov eax, dword [esp + 0xc]
addss xmm4, xmm3
movaps xmm0, xmm3
mov dword [eax], ecx
mov dword [eax + 4], edx
mulss xmm1, dword [esi + 0x2c]
mov eax, dword [esp + 0x14]
mulss xmm0, dword [esi + 0x30]
movss dword [eax], xmm1
movaps xmm1, xmm2
movss dword [eax + 4], xmm0
addss xmm1, xmm5
addss xmm5, dword [0x100848b0]
movaps xmm0, xmm4
mulss xmm0, dword [esi + 0x30]
mulss xmm1, dword [esi + 0x2c]
movss dword [eax + 0xc], xmm0
movaps xmm0, xmm5
addss xmm5, xmm2
movss dword [eax + 8], xmm1
mulss xmm0, dword [esi + 0x2c]
mov eax, dword [esp + 0x18]
mulss xmm3, dword [esi + 0x30]
movss dword [eax], xmm0
movss dword [eax + 4], xmm3
mulss xmm5, dword [esi + 0x2c]
mulss xmm4, dword [esi + 0x30]
pop esi
movss dword [eax + 8], xmm5
movss dword [eax + 0xc], xmm4
mov al, 1
ret 0x14
pop edi
xor al, al
pop esi
ret 0x14
Function at 0x1005bc80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x30]
lea esi, [edi + 5]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x1c]
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
push ecx
push 0x40
push esi
push eax
call ebx
lea eax, [esp + 0x18]
mov dword [esp + 0x14], ebp
push eax
push 0x40
push esi
push ebp
mov dword [esp + 0x2c], esi
call ebx
mov esi, dword [esp + 0x10]
push edi
push ebp
push esi
call sub.VCRUNTIME140.dll_memcpy
mov cl, byte [esp + 0x38]
mov eax, ebp
sub eax, esi
mov byte [edi + esi], cl
sub eax, 5
add esp, 0xc
mov dword [edi + esi + 1], eax
mov eax, dword [esp + 0x28]
sub eax, ebp
mov byte [ebp], cl
sub eax, 5
mov dword [ebp + 1], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x20]
call ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x1005bd60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
lea ecx, [edi + 4]
mov dword [edi], esi
push ecx
push 0x40
push edx
push esi
mov dword [edi + 8], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1005eea0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x10077465
push 0x80
push 0x10092878
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7f
push 0x10092878
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
mov eax, 0x10092878
ret
Function at 0x1005f3f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push 0x1007ec18
push dword [esp + 0x14]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ecx
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov ebx, dword [esp + 0x10]
add esp, 0xc
test ebx, ebx
jne 0x1005f429
lea eax, [ebx - 3]
pop ebx
add esp, 8
ret 4
push esi
push 2
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x1005f443
mov esi, 0xfffffffd
jmp 0x1005f4bb
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
test esi, esi
js 0x1005f43c
jne 0x1005f459
xor esi, esi
jmp 0x1005f4bb
push edi
lea eax, [esi + 1]
push 0x1008b5e0
push eax
call fcn.10073e65
mov edi, eax
add esp, 8
test edi, edi
jne 0x1005f476
lea esi, [eax - 2]
jmp 0x1005f4ba
push 0
push 0
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push ebx
push esi
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x1c
cmp eax, esi
je 0x1005f4a4
push edi
call fcn.10073e60
mov esi, 0xfffffffd
jmp 0x1005f4b7
mov ecx, dword [esp + 0x10]
push eax
push edi
call fcn.1005f270
push edi
mov esi, eax
call fcn.10073e60
add esp, 4
pop edi
push dword [esp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x10063bd0
Capabilities:
Terminate process

Disassembly:
cmp byte [0x10092c15], 0
push esi
mov esi, ecx
je 0x10063bf8
push str.crash_direct3d__exiting.
call fcn.1005b860
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [0x10092c18]
test ecx, ecx
je 0x10063c12
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x10092c18], 0
mov byte [0x10092c15], 1
mov ecx, dword [esi + 0xc]
pop esi
test ecx, ecx
je 0x10063c2a
push dword [esp + 4]
call fcn.100688b0
call fcn.1006b040
ret 4
Function at 0x1006bbb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x10091c88]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1006bc72
cmp byte [esi + 0x3d], 0
je 0x1006bc72
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1006bc5f
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 0x1006bc23
sub eax, 1
je 0x1006bc27
sub eax, 2
jne 0x1006bc5f
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10073896
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x1006bc47
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 0x1006bc5f
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10073896
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10073896
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.10073896
add esp, 0x28
ret
Function at 0x1006c1c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x10091c88]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1006c1f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10073896
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1006c221
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1006c221
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.10073896
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1006c32d
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1006c24a
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 0x1006c27f
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.10073896
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1d]
push eax
lea eax, [esp + 0x20]
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 0x1006c2e7
sub eax, 1
je 0x1006c2e7
sub eax, 2
jne 0x1006c32d
push dword [esi + 0x4c]
push dword [esp + 0x10]
call fcn.10068ce0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10073896
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x1006c307
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 0x1006c32d
lea ecx, [esp + 0xc]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [esp + 0x14], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10073896
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10073896
add esp, 0x30
ret 4
Function at 0x1006fed0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x1006fef1
jl 0x1006fee7
test esi, esi
jne 0x1006fef1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1006ff09
push eax
push esi
push dword [esp + 0x18]
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
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edx, dword [eax]
mov edi, esi
test edx, edx
je 0x1006ff52
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x1006ff59
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x1006ff59
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x1006ffc6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1006ff83
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 0x1006ffb4
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call eax
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1006ffc6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1006ff90
test edi, edi
je 0x1006ffc6
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call eax
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x1006ffe0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10070005
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
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 ebx
add esp, 0x14
ret 0xc
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x10070032
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10070038
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, ecx
cdq
mov dword [esp + 0x2c], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x100700a0
jg 0x1007004f
test esi, esi
je 0x100700a0
test ecx, ecx
jl 0x1007009a
jg 0x10070059
test eax, eax
je 0x1007009a
cmp edi, ecx
jg 0x1007006d
jl 0x10070063
cmp esi, eax
jae 0x1007006d
mov eax, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x28]
push eax
push ebp
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
add ebp, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x100700a4
mov ebp, dword [esp + 0x28]
jmp 0x100700ae
mov ebp, dword [esp + 0x28]
test edi, edi
jl 0x100700c8
jg 0x100700ae
test esi, esi
je 0x100700c8
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x100700c8
push eax
push esi
push 1
push ebp
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 + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc