Function at 0x1400039d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1b8], rbx
mov rax, qword [0x140023008]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rsi, r8
mov rbx, rdx
mov r12, rcx
mov rdx, rcx
lea rcx, [rbp + 0x30]
call fcn.1400037b0
nop
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rcx, qword [rbp + 0x30]
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov dword [rbp + 0x28], r13d
cmp rax, 0xffffffffffffffff
je 0x140003e1d
lea r9d, [r13 + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140003e1d
lea r14, [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140003a8d
mov rbx, qword [rbx]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x28]
mov r8d, dword [r14]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003e1d
mov edx, dword [rbp + 0x28]
lea rcx, [rbp]
call fcn.140001020
mov rdi, rax
mov rdx, qword [r14]
lea rcx, [rbp - 0x20]
call fcn.140001040
mov rbx, rax
mov r8, r12
lea rdx, str.Write_file
lea rcx, [rbp - 0x40]
call fcn.140002e20
nop
lea r8, str.__Received_file_length:
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140002f90
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140003000
nop
lea r8, str._Write_length:
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140002f90
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140003000
mov rbx, rax
cmp rsi, rax
je 0x140003b55
mov rcx, rsi
call fcn.140002570
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsi + 0x10], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], send
mov byte [rbx], 0
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x140003bad
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x140003ba8
test cl, 0x1f
je 0x140003b7b
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003b8a
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003b99
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140003ba5
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], send
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x140003c18
inc rax
mov rcx, qword [rsp + 0x60]
cmp rax, 0x1000
jb 0x140003c13
test cl, 0x1f
je 0x140003be6
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003bf5
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003c04
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140003c10
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], send
mov byte [rsp + 0x60], 0
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
jb 0x140003c81
inc rax
mov rcx, qword [rbp - 0x80]
cmp rax, 0x1000
jb 0x140003c7c
test cl, 0x1f
je 0x140003c4f
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003c5e
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003c6d
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140003c79
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], send
mov byte [rbp - 0x80], 0
mov rax, qword [rbp - 0x48]
cmp rax, 0x10
jb 0x140003ce7
inc rax
mov rcx, qword [rbp - 0x60]
cmp rax, 0x1000
jb 0x140003ce2
test cl, 0x1f
je 0x140003cb5
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003cc4
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003cd3
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140003cdf
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], send
mov byte [rbp - 0x60], 0
mov rax, qword [rbp - 0x28]
cmp rax, 0x10
jb 0x140003d4d
inc rax
mov rcx, qword [rbp - 0x40]
cmp rax, 0x1000
jb 0x140003d48
test cl, 0x1f
je 0x140003d1b
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003d2a
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003d39
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140003d45
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], send
mov byte [rbp - 0x40], 0
mov rax, qword [rbp - 8]
cmp rax, 0x10
jb 0x140003db3
inc rax
mov rcx, qword [rbp - 0x20]
cmp rax, 0x1000
jb 0x140003dae
test cl, 0x1f
je 0x140003d81
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003d90
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003d9f
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140003dab
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], send
mov byte [rbp - 0x20], 0
mov rax, qword [rbp + 0x18]
cmp rax, 0x10
jb 0x14000418e
inc rax
mov rcx, qword [rbp]
cmp rax, 0x1000
jb 0x140004189
test cl, 0x1f
je 0x140003def
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003dfe
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003e0d
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140004186
call fcn.140009ab8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp]
call fcn.140001020
mov rdi, rax
mov edx, r15d
lea rcx, [rsp + 0x40]
call fcn.140001000
mov rbx, rax
mov r8, r12
lea rdx, str.Write_file
lea rcx, [rsp + 0x60]
call fcn.140002e20
nop
lea r8, str._error___handle
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140002f90
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140003000
nop
lea r8, str._error_number:
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140002f90
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140003000
mov rbx, rax
cmp rsi, rax
je 0x140003eca
mov rcx, rsi
call fcn.140002570
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsi + 0x10], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], send
mov byte [rbx], 0
mov rax, qword [rbp - 8]
cmp rax, 0x10
jb 0x140003f20
inc rax
mov rcx, qword [rbp - 0x20]
cmp rax, 0x1000
jb 0x140003f1b
test cl, 0x1f
je 0x140003eee
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003efd
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003f0c
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140003f18
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], send
mov byte [rbp - 0x20], 0
mov rax, qword [rbp - 0x28]
cmp rax, 0x10
jb 0x140003f86
inc rax
mov rcx, qword [rbp - 0x40]
cmp rax, 0x1000
jb 0x140003f81
test cl, 0x1f
je 0x140003f54
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003f63
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003f72
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140003f7e
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], send
mov byte [rbp - 0x40], 0
mov rax, qword [rbp - 0x48]
cmp rax, 0x10
jb 0x140003fec
inc rax
mov rcx, qword [rbp - 0x60]
cmp rax, 0x1000
jb 0x140003fe7
test cl, 0x1f
je 0x140003fba
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003fc9
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003fd8
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140003fe4
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], send
mov byte [rbp - 0x60], 0
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
jb 0x140004052
inc rax
mov rcx, qword [rbp - 0x80]
cmp rax, 0x1000
jb 0x14000404d
test cl, 0x1f
je 0x140004020
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000402f
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000403e
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x14000404a
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], send
mov byte [rbp - 0x80], 0
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x1400040ba
inc rax
mov rcx, qword [rsp + 0x60]
cmp rax, 0x1000
jb 0x1400040b5
test cl, 0x1f
je 0x140004088
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004097
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400040a6
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x1400040b2
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], send
mov byte [rsp + 0x60], 0
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x140004125
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x140004120
test cl, 0x1f
je 0x1400040f3
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140004102
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140004111
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x14000411d
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], send
mov byte [rsp + 0x40], 0
mov rax, qword [rbp + 0x18]
cmp rax, 0x10
jb 0x14000418e
inc rax
mov rcx, qword [rbp]
cmp rax, 0x1000
jb 0x140004189
test cl, 0x1f
je 0x14000415c
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000416b
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000417a
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x140004186
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0x48]
cmp rax, 8
jb 0x140004206
inc rax
mov rcx, qword [rbp + 0x30]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x1400041be
call fcn.140009ab8
int3
add rax, rax
cmp rax, 0x1000
jb 0x140004201
test cl, 0x1f
je 0x1400041d4
call fcn.140009ab8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400041e3
call fcn.140009ab8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400041f2
call fcn.140009ab8
int3
cmp rcx, 0x27
jbe 0x1400041fe
call fcn.140009ab8
int3
mov rcx, rax
call fcn.1400059e0
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140005980
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret