Function at 0x140002800
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x3b8], rbx
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov ebx, r8d
mov rdi, rcx
call fcn.140002420
mov r14, rax
xor r15d, r15d
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x40], r15
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov r10, qword [rax]
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1e
lea r9, [rbp - 0x20]
mov r8d, ebx
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [r10 + 0xb0]
mov qword [rsp + 0x20], r15
lea r8d, [r15 + 4]
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0x28]
test eax, eax
jne 0x140002a92
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x60], eax
lea r9, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002b02
mov ebx, r15d
cmp dword [rsp + 0x74], ebx
jbe 0x140002a59
lea rsi, [rbp - 0x20]
nop dword [rax + rax]
mov rax, qword [r14]
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x7c]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x64]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xff
lea rcx, [rbp + 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x60]
mov edx, dword [rsi]
mov rcx, r14
call qword [rax + 0x1d8]
mov qword [rsp + 0x20], r15
mov r8d, 4
mov rcx, qword [rdi + 0x28]
test eax, eax
jne 0x1400029d2
mov eax, dword [rsp + 0x70]
add eax, eax
mov dword [rsp + 0x70], eax
lea r9, [rbp - 0x80]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x70]
test r8d, r8d
je 0x140002976
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x80]
lea rdx, [rbp + 0x60]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbp - 0x7c]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x74]
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002b20
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x5c]
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002ac6
jmp 0x140002a49
mov dword [rsp + 0x60], r15d
lea r9, [rbp - 0x58]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002aa8
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x78]
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002b5c
mov dword [rsp + 0x60], 0xffffffff
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x68]
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002b3e
inc ebx
add rsi, 4
cmp ebx, dword [rsp + 0x74]
jb 0x1400028d0
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x140002a6c
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
nop
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.140005550
mov rbx, qword [rsp + 0x3b8]
add rsp, 0x370
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x60], r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002ae4
jmp 0x140002a59
lea rax, str.Write_Error
mov qword [rsp + 0x68], rax
lea rdx, [0x14002a408]
lea rcx, [rsp + 0x68]
call fcn.140006e78
int3
lea rax, str.Write_Error
mov qword [rsp + 0x68], rax
lea rdx, [0x14002a408]
lea rcx, [rsp + 0x68]
call fcn.140006e78
int3
lea rax, str.Write_Error
mov qword [rsp + 0x78], rax
lea rdx, [0x14002a408]
lea rcx, [rsp + 0x78]
call fcn.140006e78
int3
lea rax, str.Write_Error
mov qword [rsp + 0x68], rax
lea rdx, [0x14002a408]
lea rcx, [rsp + 0x68]
call fcn.140006e78
int3
lea rax, str.Write_Error
mov qword [rsp + 0x68], rax
lea rdx, [0x14002a408]
lea rcx, [rsp + 0x68]
call fcn.140006e78
int3
lea rax, str.Write_Error
mov qword [rsp + 0x78], rax
lea rdx, [0x14002a408]
lea rcx, [rsp + 0x78]
call fcn.140006e78
int3
lea rax, str.Write_Error
mov qword [rsp + 0x68], rax
lea rdx, [0x14002a408]
lea rcx, [rsp + 0x68]
call fcn.140006e78
int3