Function at 0x140006ce0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x14003e008]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rax, rdx
mov r13, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rbp - 0x78], rax
cmp rax, 0xffffffffffffffff
je 0x140007014
xor r14d, r14d
mov ecx, 0x10000
call fcn.14000c380
mov r12, rax
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x60]
call fcn.14000bb30
xor ebx, ebx
mov rsi, qword [r13 + 8]
sub rsi, qword [r13]
sar rsi, 5
test rsi, rsi
jle 0x140006f39
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x40], 0x7ff
nop
mov r10, qword [r13]
mov rdx, qword [r10 + r15]
lea rcx, [rbp + 0x80]
call fcn.1400084c0
mov eax, dword [r10 + r15 + 0x18]
shl eax, 2
cdqe
lea rcx, [r14 + 0x84]
add rcx, rax
cmp rcx, 0x10000
jb 0x140006e08
mov r8, r14
mov rdx, r12
lea rcx, [rbp - 0x60]
call fcn.14000bbc0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, r14d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007037
xor r14d, r14d
movaps xmm0, xmmword [rbp + 0x80]
movups xmmword [r12 + r14], xmm0
movaps xmm1, xmmword [rbp + 0x90]
movups xmmword [r12 + r14 + 0x10], xmm1
movaps xmm0, xmmword [rbp + 0xa0]
movups xmmword [r12 + r14 + 0x20], xmm0
movaps xmm1, xmmword [rbp + 0xb0]
movups xmmword [r12 + r14 + 0x30], xmm1
movaps xmm0, xmmword [rbp + 0xc0]
movups xmmword [r12 + r14 + 0x40], xmm0
movaps xmm1, xmmword [rbp + 0xd0]
movups xmmword [r12 + r14 + 0x50], xmm1
movaps xmm0, xmmword [rbp + 0xe0]
movups xmmword [r12 + r14 + 0x60], xmm0
movaps xmm1, xmmword [rbp + 0xf0]
movups xmmword [r12 + r14 + 0x70], xmm1
mov word [r12 + r14 + 0x80], 0x2020
add r14, 0x82
mov rax, qword [r13]
movsxd r13, dword [r15 + rax + 0x18]
mov r11, qword [r15 + rax + 0x10]
lea r15, [r12 + r14]
xor eax, eax
xor r10d, r10d
test r13, r13
je 0x140006f0b
nop dword [rax]
movzx ecx, word [r11]
lea r9, [r15 + rax]
inc rax
cmp cx, 0x7f
ja 0x140006eb6
mov byte [r9], cl
jmp 0x140006efc
movzx r8d, cl
and r8b, 0x3f
or r8b, 0x80
movzx edx, cx
shr dx, 6
cmp cx, word [rsp + 0x40]
ja 0x140006edf
or dl, 0xc0
mov byte [r9], dl
mov byte [rax + r15], r8b
inc rax
jmp 0x140006efc
shr cx, 0xc
or cl, 0xe0
mov byte [r9], cl
and dl, 0x3f
or dl, 0x80
mov byte [rax + r15], dl
mov byte [rax + r15 + 1], r8b
add rax, 2
inc r10d
add r11, 2
movsxd rcx, r10d
cmp rcx, r13
jb 0x140006ea0
add r14, rax
mov word [r12 + r14], 0xa0d
add r14, 2
inc rbx
mov r15, qword [rsp + 0x48]
add r15, 0x20
mov qword [rsp + 0x48], r15
cmp rbx, rsi
jge 0x140006f39
mov r13, qword [rsp + 0x58]
jmp 0x140006da0
mov r8, r14
mov rdx, r12
lea rcx, [rbp - 0x60]
call fcn.14000bbc0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, r14d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000705a
lea rdx, [rbp - 0x60]
mov rcx, r12
call fcn.14000b320
mov rdx, r12
lea rcx, [rbp + 0x80]
call fcn.1400084c0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, 0x80
lea rdx, [rbp + 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140006ff1
mov rcx, r12
call fcn.14000c0a0
nop
test rdi, rdi
je 0x140006fc7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14000c080
mov rbx, qword [rsp + 0x260]
add rsp, 0x210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [0x140039080]
lea rcx, [rsp + 0x60]
call fcn.14000a060
lea rdx, [0x14003cdd8]
lea rcx, [rsp + 0x60]
call fcn.14000e8b8
nop
lea rdx, [0x140039060]
lea rcx, [rsp + 0x60]
call fcn.14000a060
lea rdx, [0x14003cdd8]
lea rcx, [rsp + 0x60]
call fcn.14000e8b8
nop
lea rdx, [0x140039080]
lea rcx, [rsp + 0x60]
call fcn.14000a060
lea rdx, [0x14003cdd8]
lea rcx, [rsp + 0x60]
call fcn.14000e8b8
int3
lea rdx, [0x140039080]
lea rcx, [rsp + 0x60]
call fcn.14000a060
lea rdx, [0x14003cdd8]
lea rcx, [rsp + 0x60]
call fcn.14000e8b8
int3