joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c6790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov esi, dword [eax + 0x10]
mov eax, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 8], esi
mov ebx, dword [esi + 0x48]
mov edx, eax
xor ebx, eax
mov dword [ebp - 0xc], edi
cmp eax, 1
jb 0x100c67db
nop dword [eax + eax]
movzx ecx, byte [edi + edx - 1]
mov eax, ebx
shl eax, 5
dec edx
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp edx, 1
jae 0x100c67c0
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
and ecx, ebx
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x100c6860
mov ecx, dword [ebp + 8]
movzx eax, byte [edi + 7]
cmp ecx, eax
jne 0x100c6856
mov edx, dword [ebp - 0xc]
lea eax, [edi + 0x10]
mov esi, ecx
sub esi, 4
jb 0x100c6821
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x100c6826
add edx, 4
add eax, 4
sub esi, 4
jae 0x100c6810
cmp esi, 0xfffffffc
je 0x100c688d
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x100c6853
cmp esi, 0xfffffffd
je 0x100c688d
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x100c6853
cmp esi, 0xfffffffe
je 0x100c688d
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x100c6853
cmp esi, 0xffffffff
je 0x100c688d
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x100c688d
mov ecx, dword [ebp + 8]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x100c67f4
mov esi, dword [ebp - 8]
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp - 4]
cmp eax, dword [esi + 0x20]
jl 0x100c68d2
cmp eax, 0x7fffffff
jne 0x100c68af
mov edx, 1
mov ecx, edi
call fcn.100b63f0
cmp dword [esi + 0x1c], 0x7fffffff
je 0x100c6939
jmp 0x100c68af
mov ecx, dword [ebp - 8]
mov al, byte [edi + 5]
mov cl, byte [ecx + 0x4c]
xor cl, 0x18
test al, cl
je 0x100c6930
xor al, 0x18
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x20]
cmp edx, 0x1fffffff
jg 0x100c68c3
add edx, edx
mov ecx, edi
call fcn.100c6710
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
and ecx, ebx
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
mov ecx, edi
mov esi, dword [edi + 0x10]
add edx, 0x11
push 4
call fcn.100bc100
mov cl, byte [esi + 0x4c]
mov edi, eax
and cl, 0x18
add esp, 4
mov byte [edi + 5], cl
lea eax, [edi + 0x10]
mov byte [edi + 4], 4
mov ecx, dword [esi + 0x58]
mov dword [edi], ecx
mov dword [esi + 0x58], edi
mov dword [edi + 8], ebx
mov ebx, dword [ebp + 8]
push ebx
push dword [ebp - 0xc]
mov byte [edi + 6], 0
push eax
mov byte [edi + ebx + 0x10], 0
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov byte [edi + 7], bl
mov eax, dword [ecx]
mov dword [edi + 0xc], eax
mov dword [ecx], edi
mov ecx, dword [ebp - 8]
inc dword [ecx + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 4
mov ecx, edi
call fcn.100b2260
int3
Function at 0x100cb45a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101a0040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
and edx, 0x3f
push esi
push edi
dec edx
mov edi, ecx
mov dword [ebp - 0x18], edi
cmp edx, 0x15
ja case.0x100cb3bf.2
movzx eax, byte [edx + 0x100cb53c]
jmp dword [eax*4 + 0x100cb51c]
mov cl, byte [edi + 7]
mov eax, 1
shl eax, cl
dec eax
and eax, dword [ebx]
lea ecx, [eax + eax*2]
jmp 0x100cb502
movsd xmm0, qword [ebx]
lea eax, [ebp - 0xc]
push eax
sub esp, 8
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_frexp]
fmul qword [0x1018adb0]
add esp, 0xc
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
comisd xmm0, xmmword [0x1018aee8]
jb 0x100cb42d
movsd xmm1, qword [0x1018ae70]
comisd xmm1, xmm0
jbe 0x100cb42d
call fcn.1013d850
add eax, dword [ebp - 0xc]
cmp eax, 0x7fffffff
jbe 0x100cb42f
not eax
jmp 0x100cb42f
xor eax, eax
mov cl, byte [edi + 7]
mov esi, 1
shl esi, cl
dec esi
cdq
or esi, 1
idiv esi
jmp 0x100cb4ff
mov cl, byte [edi + 7]
mov edx, 1
mov eax, dword [ebx]
shl edx, cl
dec edx
and edx, dword [eax + 8]
jmp 0x100cb4ff
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
cmp byte [eax + 6], 0
lea ecx, [eax + 8]
mov dword [ebp - 0x10], ecx
jne 0x100cb4ac
mov esi, dword [eax + 0xc]
mov ebx, esi
mov edx, dword [ecx]
shr ebx, 5
xor edx, esi
inc ebx
cmp esi, ebx
jb 0x100cb4a4
mov edi, eax
nop
movzx ecx, byte [edi + esi + 0xf]
mov eax, edx
shl eax, 5
sub esi, ebx
add ecx, eax
mov eax, edx
shr eax, 2
add ecx, eax
xor edx, ecx
cmp esi, ebx
jae 0x100cb480
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], edx
mov byte [eax + 6], 1
jmp 0x100cb4af
mov dword [ebp - 0x10], ecx
mov cl, byte [edi + 7]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x10]
dec eax
and eax, dword [ecx]
lea ecx, [eax + eax*2]
jmp 0x100cb502
mov eax, dword [edi + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1013c175
mov esp, ebp
pop ebp
ret
mov cl, byte [edi + 7]
mov eax, 1
shl eax, cl
dec eax
and eax, 1
lea ecx, [eax + eax*2]
jmp 0x100cb502
mov cl, byte [edi + 7]
mov esi, 1
mov eax, dword [ebx]
xor edx, edx
shl esi, cl
dec esi
or esi, 1
div esi
lea ecx, [edx + edx*2]
mov eax, dword [edi + 0x10]
pop edi
pop esi
pop ebx
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1013c175
mov esp, ebp
pop ebp
ret
Function at 0x100d9320
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10145788
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x101a0040]
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 dword [ebp - 0x18], edi
xorps xmm0, xmm0
mov dword [ebp - 0x1c], edi
movq qword [edi], xmm0
push 0x14
mov dword [ebp - 4], 0
call fcn.1013c263
mov esi, eax
add esp, 4
mov dword [esi], 1
mov dword [esi + 4], 2
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [edi + 8], esi
test esi, esi
je 0x100d939e
mov eax, 1
lock xadd dword [esi], eax
mov dword [ebp - 0x18], esi
push 8
mov byte [ebp - 4], 2
call fcn.1013c263
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
mov dword [eax], esi
mov dword [eax + 4], 0x1013b4f0
lea esi, [edi + 4]
mov byte [ebp - 4], 3
push esi
push 0
push eax
push 0x100d9da0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [edi], eax
test eax, eax
je 0x100d9401
mov eax, edi
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.1013c175
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [esi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x100dbcd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101458d1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x101a0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [0x101ac8b0]
mov ebx, dword [ebp + 8]
mov ecx, dword [0x101ac894]
mov eax, dword [eax + 0x48]
mov eax, dword [ebx + eax]
mov dword [esi], eax
mov eax, dword [0x101ac8b0]
mov eax, dword [eax + 0xdc]
mov eax, dword [ebx + eax]
mov dword [esi + 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101ae5a0]
cmp eax, dword [ecx + 4]
jle 0x100dbd82
push 0x101ae5a0
call fcn.1013c1ff
add esp, 4
cmp dword [0x101ae5a0], 0xffffffff
jne 0x100dbd82
mov dword [ebp - 4], 0
mov ecx, ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
call eax
push str.m_iEFlags
push eax
call fcn.101265c0
push 0x101ae5a0
mov dword [0x101ae598], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1013c1ae
add esp, 0xc
mov eax, dword [0x101ae598]
mov ecx, ebx
mov eax, dword [eax + ebx]
mov dword [esi + 8], eax
mov eax, dword [0x101ac8b0]
mov eax, dword [eax + 0xe8]
mov eax, dword [ebx + eax]
mov dword [esi + 0xc], eax
mov eax, dword [0x101ac8b0]
mov eax, dword [eax + 0x74]
movq xmm0, qword [eax + ebx]
movq qword [esi + 0x10], xmm0
mov eax, dword [eax + ebx + 8]
mov dword [esi + 0x18], eax
mov eax, dword [0x101ac8b0]
mov eax, dword [eax + 0x28]
movq xmm0, qword [eax + ebx]
movq qword [esi + 0x1c], xmm0
mov eax, dword [eax + ebx + 8]
mov dword [esi + 0x24], eax
mov eax, dword [ebx]
call dword [eax + 0x28]
lea edi, [esi + 0x58]
mov ecx, 0xd3
movq xmm0, qword [eax]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 0x30], eax
mov eax, dword [0x101ac8b0]
mov eax, dword [eax + 0x1c]
movq xmm0, qword [eax + ebx]
movq qword [esi + 0x34], xmm0
mov eax, dword [eax + ebx + 8]
mov dword [esi + 0x3c], eax
mov eax, dword [0x101ac8b0]
mov eax, dword [eax + 0x20]
movq xmm0, qword [eax + ebx]
movq qword [esi + 0x40], xmm0
mov eax, dword [eax + ebx + 8]
mov dword [esi + 0x48], eax
mov eax, dword [0x101ac8b0]
mov eax, dword [eax + 0x24]
movq xmm0, qword [eax + ebx]
movq qword [esi + 0x4c], xmm0
mov eax, dword [eax + ebx + 8]
mov dword [esi + 0x54], eax
mov esi, dword [ebx + 0x3874]
mov eax, dword [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x2970]
lea edi, [eax + 0x3a4]
mov ecx, 0xb6
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100dbe70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10145901
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x101a0040]
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, ecx
mov dword [ebp - 0x38], esi
mov eax, dword [0x101ac8b0]
mov ebx, dword [ebp + 8]
mov edx, dword [esi]
mov eax, dword [eax + 0x48]
mov dword [ebx + eax], edx
mov eax, dword [0x101ac8b0]
mov edx, dword [esi + 4]
mov eax, dword [eax + 0xdc]
mov dword [ebx + eax], edx
mov eax, dword [0x101ac8b0]
movss xmm0, dword [esi + 0xc]
mov eax, dword [eax + 0xe8]
movss dword [ebx + eax], xmm0
mov eax, dword [0x101ac8b0]
mov ecx, dword [eax + 0x74]
mov eax, dword [esi + 0x10]
mov dword [ecx + ebx], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + ebx + 4], eax
mov eax, dword [esi + 0x18]
mov dword [ecx + ebx + 8], eax
mov eax, dword [0x101ac8b0]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 0x34]
mov dword [ecx + ebx], eax
mov eax, dword [esi + 0x38]
mov dword [ecx + ebx + 4], eax
mov eax, dword [esi + 0x3c]
mov dword [ecx + ebx + 8], eax
mov eax, dword [0x101ac8b0]
mov ecx, dword [eax + 0x28]
mov eax, dword [esi + 0x1c]
mov dword [ecx + ebx], eax
mov eax, dword [esi + 0x20]
mov dword [ecx + ebx + 4], eax
mov eax, dword [esi + 0x24]
mov dword [ecx + ebx + 8], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101ac894]
mov edi, dword [esi + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101ae5a0]
cmp eax, dword [ecx + 4]
jle 0x100dbf93
push 0x101ae5a0
call fcn.1013c1ff
add esp, 4
cmp dword [0x101ae5a0], 0xffffffff
jne 0x100dbf93
mov dword [ebp - 4], 0
mov ecx, ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
call eax
push str.m_iEFlags
push eax
call fcn.101265c0
push 0x101ae5a0
mov dword [0x101ae598], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1013c1ae
add esp, 0xc
mov eax, dword [0x101ae598]
mov dword [eax + ebx], edi
lea eax, [esi + 0x58]
mov ecx, dword [ebx + 0x3874]
push eax
call fcn.100d5d80
mov edi, dword [ebx + 0x2970]
add esi, 0x3a4
mov ecx, 0xb6
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x38]
mov ecx, ebx
mov eax, dword [esi + 0x30]
movq xmm0, qword [esi + 0x28]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
movq qword [ebp - 0x1c], xmm0
call dword [0x101ae4ac]
mov eax, dword [esi + 0x54]
mov ecx, ebx
movq xmm0, qword [esi + 0x4c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
movq qword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x40]
mov esi, dword [0x101ae504]
push eax
mov eax, dword [ebx]
movq qword [ebp - 0x34], xmm0
call dword [eax + 0xc]
mov ecx, eax
call esi
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.1013c175
mov esp, ebp
pop ebp
ret 4

Function at 0x100e1880
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, ecx
or eax, 0xffffffff
push esi
push edi
mov edi, 4
lea esi, [ebx + 4]
jmp dword [edi*4 + 0x100e2ac8]
Function at 0x100fc000
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 0x100fc02c
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 0x100fc054
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100fc05a
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 0x100fc0e4
jg 0x100fc071
test esi, esi
je 0x100fc0e4
test ecx, ecx
jl 0x100fc0c7
jg 0x100fc07b
test eax, eax
je 0x100fc0c7
cmp edi, ecx
jg 0x100fc08f
jl 0x100fc085
cmp esi, eax
jae 0x100fc08f
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 0x100fc0e4
jg 0x100fc0ca
test esi, esi
je 0x100fc0e4
jmp 0x100fc0ca
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x100fc0e4
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 0x100fc100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x100fc12c
jl 0x100fc120
test ecx, ecx
jne 0x100fc12c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100fc145
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x100fc18d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x100fc193
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x100fc193
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x100fc206
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100fc1bc
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 [ebp - 0xc]
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 0x100fc1f4
nop dword [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 0x100fc206
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x100fc1d0
test edi, edi
je 0x100fc206
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 0x100fc580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101a0040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100fc5b0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013c175
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100fc5ec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100fc5ec
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 ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013c175
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100fc6c3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100fc614
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 0x100fc620
movsx eax, bl
jmp 0x100fc658
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 0x100fc682
sub eax, 1
je 0x100fc682
sub eax, 2
jne 0x100fc6c3
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
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013c175
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100fc6a0
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 0x100fc6c3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013c175
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.1013c175
mov esp, ebp
pop ebp
ret 4
Function at 0x100fc960
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
push ebx
mov dword [ebp - 8], ecx
lea ebx, [edx + 0x30a0]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x100fcabf
push esi
push edi
lea esi, [edx + 0x1c]
lea edi, [ebx + 0x1c]
nop dword [eax]
mov eax, dword [ebx]
lea ecx, [esi - 0x1c]
mov dword [ecx], eax
mov edx, ebx
mov eax, dword [edi - 0x18]
sub edx, ecx
mov dword [esi - 0x18], eax
mov ecx, pe_nt_image_headers32
mov eax, dword [edi - 0x14]
mov dword [esi - 0x14], eax
mov eax, dword [edi - 0x10]
mov dword [esi - 0x10], eax
mov eax, dword [edi - 0xc]
mov dword [esi - 0xc], eax
mov eax, dword [edi - 8]
mov dword [esi - 8], eax
mov eax, dword [edi - 4]
mov dword [esi - 4], eax
mov eax, dword [edi]
mov dword [esi], eax
movzx eax, byte [edi + 4]
mov byte [esi + 4], al
movzx eax, byte [edi + 5]
mov byte [esi + 5], al
movzx eax, byte [edi + 6]
mov byte [esi + 6], al
movzx eax, byte [edi + 7]
mov byte [esi + 7], al
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov ax, word [edi + 0x30]
mov word [esi + 0x30], ax
movups xmm0, xmmword [edi + 0x34]
movups xmmword [esi + 0x34], xmm0
movq xmm0, qword [edi + 0x44]
movq qword [esi + 0x44], xmm0
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
lea eax, [esi + 0x50]
lea eax, [eax + 0x30]
movups xmm0, xmmword [edx + eax - 0x30]
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [edx + eax - 0x20]
movups xmmword [eax - 0x20], xmm0
movups xmm0, xmmword [edx + eax - 0x10]
movups xmmword [eax - 0x10], xmm0
sub ecx, 1
jne 0x100fca43
mov eax, dword [edi + 0x3050]
add ebx, 0x30a0
mov dword [esi + 0x3050], eax
movups xmm0, xmmword [edi + 0x3054]
movups xmmword [esi + 0x3054], xmm0
movups xmm0, xmmword [edi + 0x3064]
movups xmmword [esi + 0x3064], xmm0
movups xmm0, xmmword [edi + 0x3074]
add edi, 0x30a0
movups xmmword [esi + 0x3074], xmm0
add esi, 0x30a0
cmp ebx, dword [ebp - 4]
jne 0x100fc990
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, dword [ebp + 8]
add dword [ecx + 4], 0xffffcf60
pop ebx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x100fcbb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101a0040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100fcc6c
cmp byte [esi + 0x3d], 0
je 0x100fcc6c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100fcc5a
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 0x100fcc21
sub eax, 1
je 0x100fcc25
sub eax, 2
jne 0x100fcc5a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013c175
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100fcc43
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 0x100fcc5a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013c175
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013c175
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1013c175
mov esp, ebp
pop ebp
ret