Function at 0x100069e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000b46c
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1000f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x49], dl
mov edi, ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x48], 1
call fcn.10005160
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10004d00
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xf
jbe 0x10006a69
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006a5f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10006a5f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000a801
add esp, 8
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
push 0
cmova eax, dword [ebp - 0x40]
push 0
push 3
push 0
push 0
push 0x40000000
push eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
je 0x10006e06
cmp byte [ebp - 0x49], 0
mov edx, str.true
mov eax, str.false
mov dword [ebp - 0x18], 0
cmove edx, eax
mov dword [ebp - 0x14], 0
mov ecx, edx
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006ad3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10007d60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x14]
mov eax, esi
mov edx, dword [ebp - 0x18]
sub eax, edx
cmp eax, 1
jb 0x10006b18
cmp esi, 0xf
lea eax, [edx + 1]
mov dword [ebp - 0x18], eax
cmova ecx, dword [ebp - 0x28]
mov al, byte [0x1000c390]
mov byte [ecx + edx], al
mov byte [ecx + edx + 1], 0
jmp 0x10006b2d
push 1
push 0x1000c390
mov byte [ebp - 0x48], 0
push dword [ebp - 0x48]
push 1
call fcn.10007c00
push edi
lea ecx, [ebp - 0x64]
call fcn.100076f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
push 0x1000c2f5
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x70], 0
call fcn.10007d60
push 0
push 0
push 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 7
push 0
cmova eax, dword [ebp - 0x64]
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
mov dword [ebp - 0x48], 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x10006bf5
push edi
call fcn.1000a80f
push edi
mov esi, eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x50], 7
cmova ecx, dword [ebp - 0x64]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x10006bf5
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006bd6
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x84]
call fcn.10007a00
push esi
call fcn.1000a3d2
add esp, 4
mov dword [ebp - 4], 4
mov byte [ebp - 4], 6
lea edx, [ebp - 0x84]
cmp dword [ebp - 0x70], 0xf
mov edi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x14]
cmova edx, edi
mov esi, dword [ebp - 0x18]
sub eax, esi
mov ecx, dword [ebp - 0x74]
push ecx
push edx
cmp ecx, eax
ja 0x10006c49
cmp dword [ebp - 0x14], 0xf
lea eax, [esi + ecx]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
add esi, eax
push esi
call sub.VCRUNTIME140.dll_memcpy_1
mov eax, dword [ebp - 0x74]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x10006c5f
mov byte [ebp - 0x48], 0
push dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10007c00
mov edi, dword [ebp - 0x84]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x70]
cmp eax, 0xf
jbe 0x10006c92
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10006c88
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006cc2
push ecx
push edi
call fcn.1000a801
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
cmp ecx, 7
jbe 0x10006cd2
mov edx, dword [ebp - 0x64]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006cc8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10006cc8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000a801
add esp, 8
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x48]
cmova ecx, dword [ebp - 0x28]
push ecx
push eax
mov dword [ebp - 0x48], 0
call fcn.10006100
mov edx, eax
add esp, 8
mov dword [ebp - 0x68], edx
test edx, edx
je 0x10006e5b
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x48]
cmova ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
push edi
push edx
mov byte [ecx], 0
mov esi, dword [ebp - 0x14]
mov eax, esi
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp edi, eax
ja 0x10006d4b
lea eax, [edi + ecx]
cmp esi, 0xf
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
lea esi, [eax + ecx]
push esi
call sub.VCRUNTIME140.dll_memcpy_1
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x10006d5b
mov byte [ebp - 0x48], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x48]
push edi
call fcn.10007c00
push dword [ebp - 0x68]
call fcn.1000a3d2
mov esi, dword [ebp - 0x18]
lea eax, [esi + 5]
push eax
call fcn.1000a80f
mov edi, eax
lea eax, [esi + 5]
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov dword [edi], esi
lea eax, [esi + 1]
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
push eax
cmova ecx, dword [ebp - 0x28]
lea eax, [edi + 4]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x20
lea eax, [ebp - 0x44]
push 0
push eax
lea eax, [esi + 5]
mov esi, dword [ebp - 0x6c]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.1000a3d2
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10006df4
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006dea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006ed1
push ecx
push edx
call fcn.1000a801
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x10006e40
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006e36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006ed1
push ecx
push edx
call fcn.1000a801
add esp, 8
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.1000a2a2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10006e8b
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006e81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006ed1
push ecx
push edx
call fcn.1000a801
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 7
jbe 0x10006e40
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006e36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10006e36
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3