Function at 0x18000bd10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov rbx, rcx
xor eax, eax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
xor r15d, r15d
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x41], r15
lea rdx, [rbp - 0x51]
call fcn.18000b200
test al, al
jne 0x18000bd7d
xor bl, bl
mov rdi, qword [rbp - 0x51]
jmp 0x18000c074
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
movdqa xmmword [rbp - 9], xmm0
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r15
mov dword [rbp + 0x1f], 0xffffffff
add rbx, 0x38
mov rax, qword [rbx + 8]
cmp qword [rbx], rax
je 0x18000bddb
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.18000dec0
lea rdx, [rbx + 0x18]
lea rcx, [rbp - 0x11]
call fcn.18000dec0
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 7]
call fcn.18000dec0
mov eax, dword [rbx + 0x48]
mov dword [rbp + 0x1f], eax
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x29]
call fcn.18000a610
mov rdi, qword [rbp - 0x51]
test al, al
jne 0x18000bdf7
xor bl, bl
jmp 0x18000c06a
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], r15
mov qword [rbp - 0x59], r15
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x29]
call fcn.1800099a0
mov rax, qword [rbp - 0x61]
cmp qword [rbp - 0x69], rax
je 0x18000c022
mov rcx, rsi
call fcn.1800146a0
test al, al
je 0x18000c022
mov dword [rbp - 0x71], r15d
mov rbx, qword [rbp - 0x61]
mov rdx, qword [rbp - 0x69]
sub rbx, rdx
mov rax, qword [rsi]
test rax, rax
je 0x18000c022
test rdx, rdx
je 0x18000c022
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18000c022
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x71]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000c022
mov ecx, dword [rbp - 0x71]
cmp ebx, ecx
jne 0x18000c022
mov eax, dword [rbp - 0x61]
sub eax, dword [rbp - 0x69]
cmp ecx, eax
jne 0x18000c022
mov rbx, qword [rbp - 0x49]
mov eax, ebx
sub eax, edi
mov dword [rbp - 0x39], eax
mov rax, qword [rsi]
test rax, rax
je 0x18000c022
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18000c022
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x71]
mov r8d, 4
lea rdx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000c022
cmp dword [rbp - 0x71], 4
jne 0x18000c022
cmp rdi, rbx
je 0x18000bf4f
mov r14, rbx
sub r14, rdi
mov rax, qword [rsi]
test rax, rax
je 0x18000c022
test rdi, rdi
je 0x18000c022
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18000c022
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x71]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000c022
mov eax, dword [rbp - 0x71]
cmp r14d, eax
jne 0x18000c022
sub ebx, edi
cmp eax, ebx
jne 0x18000c022
mov rcx, qword [rsi]
test rcx, rcx
je 0x18000c01e
cmp qword [rcx], 0xffffffffffffffff
je 0x18000c01e
mov qword [rbp - 0x31], r15
mov r9d, 1
lea r8, [rbp - 0x2d]
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x31], eax
cmp eax, 0xffffffff
jne 0x18000bf94
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18000c01e
cmp qword [rsi], 0
je 0x18000c01e
mov qword [rsp + 0x38], r15
lea r9, [rsp + 0x38]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rsi
call fcn.180014620
test al, al
je 0x18000c01e
mov qword [rsp + 0x30], r15
cmp qword [rsi], 0
je 0x18000c01e
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rbx, qword [rbp - 0x31]
mov rdx, rbx
mov rcx, rsi
call fcn.180014620
test al, al
je 0x18000c01e
cmp qword [rsp + 0x30], rbx
jne 0x18000bffe
mov rax, qword [rsi]
test rax, rax
je 0x18000bffe
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18000bffe
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov qword [rsp + 0x30], r15
cmp qword [rsi], 0
je 0x18000c01e
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.180014620
mov bl, 1
jmp 0x18000c024
xor bl, bl
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x18000c06a
mov rdx, qword [rbp - 0x59]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c059
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c0e1
call fcn.180037644
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r15
lea rcx, [rbp - 0x29]
call fcn.18000c540
nop
test rdi, rdi
je 0x18000c0b5
mov rdx, qword [rbp - 0x41]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x18000c0a1
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c0db
mov rcx, rdi
call fcn.180037644
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x51], xmm0
mov qword [rbp - 0x41], r15
movzx eax, bl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180037620
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180042974
nop
call fcn.180042974
nop
int3