Function at 0x10003ec48
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r14b, r9b
mov r12d, r8d
mov r9, rdx
mov rdi, rcx
xor r15d, r15d
cmp rcx, r15
je 0x10003efcc
cmp rdx, r15
je 0x10003efcc
mov qword [rax - 0x68], r15
mov dword [rsp + 0x44], r15d
lea r8, [rsp + 0x44]
lea rdx, [rax - 0x68]
mov rcx, r9
call fcn.10006eca4
mov rbp, qword [rsp + 0x70]
cmp rbp, r15
je 0x10003efb4
mov r13d, dword [rsp + 0x44]
cmp r13d, r15d
je 0x10003efb4
lea ebx, [r15 + 0x65]
mov dword [rsp + 0x20], ebx
mov r9b, 1
mov r8d, r12d
xor edx, edx
mov rcx, rdi
call fcn.10004fe74
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x10003ed0e
mov r8, rdi
lea rdx, [0x10001be30]
mov ecx, 0x20001
call fcn.1000660b0
mov rcx, rbp
call sub.msvcrt.dll_free
xor al, al
jmp 0x10003efe7
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x5c], r15d
mov dword [rsp + 0x60], 0x10
mov qword [rsp + 0x68], r15
mov rcx, qword [0x1000bb010]
cmp rcx, r15
je 0x10003ed59
cmp dword [rcx + 0xd4], r15d
je 0x10003ed59
lea rax, [0x10001be80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov edx, 0x100
lea r8d, [rdx - 0x40]
call fcn.100042d6c
mov edx, ebx
lea rcx, [rsp + 0x88]
call fcn.100064280
mov rbx, rax
mov rcx, qword [0x1000bafe8]
mov r8, qword [rcx]
lea rdx, [rsp + 0xa0]
call qword [r8 + 0x10]
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x70], xmm0
mov eax, dword [rsp + 0x58]
neg eax
sbb r8, r8
lea rax, [rsp + 0x58]
and r8, rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdi
mov r9, qword [rbx + 0x10]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.1000505c8
cmp eax, r15d
sete bl
mov rcx, qword [rsp + 0x98]
call sub.msvcrt.dll_free
cmp bl, r15b
je 0x10003ee16
mov r8, rdi
lea rdx, [0x10001bec0]
mov ecx, 0x80
call fcn.1000660b0
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, r12d
mov rcx, rsi
call fcn.10004fb60
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x10003ee0f
call qword [sym.imp.msvcrt.dll_free]
xor al, al
jmp 0x10003efe7
lea ebx, [r13 + r13]
lea eax, [rbx + 2]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov r8d, 4
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r15d
jne 0x10003ee8c
mov r8, rdi
lea rdx, [0x10001bf50]
mov ecx, 0x80
call fcn.1000660b0
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, r12d
mov rcx, rsi
call fcn.10004fb60
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x10003ee85
call qword [sym.imp.msvcrt.dll_free]
xor al, al
jmp 0x10003efe7
mov dword [rsp + 0x40], r15d
mov byte [rsp + 0xe0], 0xff
mov byte [rsp + 0xe1], 0xfe
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [rsp + 0xe0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r15d
je 0x10003ef75
cmp dword [rsp + 0x40], 2
jne 0x10003ef75
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r15d
je 0x10003ef36
mov rcx, r13
add rcx, rcx
mov eax, dword [rsp + 0x48]
cmp rax, rcx
jne 0x10003ef36
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, r14b
mov edx, r12d
mov rcx, rsi
call fcn.10004fb60
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x10003ef2f
call qword [sym.imp.msvcrt.dll_free]
mov al, 1
jmp 0x10003efe7
mov r8, rdi
lea rdx, [0x10001c050]
mov ecx, 0x80
call fcn.1000660b0
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, r12d
mov rcx, rsi
call fcn.10004fb60
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x10003ef71
call qword [sym.imp.msvcrt.dll_free]
xor al, al
jmp 0x10003efe7
mov r8, rdi
lea rdx, [0x10001bfd0]
mov ecx, 0x80
call fcn.1000660b0
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, r12d
mov rcx, rsi
call fcn.10004fb60
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x10003efb0
call qword [sym.imp.msvcrt.dll_free]
xor al, al
jmp 0x10003efe7
mov r8, rdi
lea rdx, [0x10001bda0]
mov ecx, 0x20001
call fcn.1000660b0
xor al, al
jmp 0x10003efe7
mov dword [rsp + 0x20], r8d
mov r8, rcx
lea rdx, [0x10001bcf0]
mov ecx, 0x80
call fcn.1000660b0
xor al, al
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret