Function at 0x140003700
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.1400034e0
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 0x140003b4d
lea r9d, [r13 + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140003b4d
lea r14, [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400037bd
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 0x140003b4d
mov edx, dword [rbp + 0x28]
lea rcx, [rbp]
call fcn.140003140
mov rdi, rax
mov rdx, qword [r14]
lea rcx, [rbp - 0x20]
call fcn.140001020
mov rbx, rax
mov r8, r12
lea rdx, str.Write_file
lea rcx, [rbp - 0x40]
call fcn.140002b30
nop
lea r8, str.__Received_file_length:
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140002ca0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140002d10
nop
lea r8, str._Write_length:
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140002ca0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002d10
mov rbx, rax
cmp rsi, rax
je 0x140003885
mov rcx, rsi
call fcn.140002320
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 0x1400038dd
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x1400038d8
test cl, 0x1f
je 0x1400038ab
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400038ba
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400038c9
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x1400038d5
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], socket
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x140003948
inc rax
mov rcx, qword [rsp + 0x60]
cmp rax, 0x1000
jb 0x140003943
test cl, 0x1f
je 0x140003916
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003925
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003934
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140003940
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], socket
mov byte [rsp + 0x60], 0
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
jb 0x1400039b1
inc rax
mov rcx, qword [rbp - 0x80]
cmp rax, 0x1000
jb 0x1400039ac
test cl, 0x1f
je 0x14000397f
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000398e
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000399d
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x1400039a9
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], send
mov byte [rbp - 0x80], 0
mov rax, qword [rbp - 0x48]
cmp rax, 0x10
jb 0x140003a17
inc rax
mov rcx, qword [rbp - 0x60]
cmp rax, 0x1000
jb 0x140003a12
test cl, 0x1f
je 0x1400039e5
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400039f4
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003a03
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140003a0f
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], send
mov byte [rbp - 0x60], 0
mov rax, qword [rbp - 0x28]
cmp rax, 0x10
jb 0x140003a7d
inc rax
mov rcx, qword [rbp - 0x40]
cmp rax, 0x1000
jb 0x140003a78
test cl, 0x1f
je 0x140003a4b
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003a5a
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003a69
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140003a75
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], send
mov byte [rbp - 0x40], 0
mov rax, qword [rbp - 8]
cmp rax, 0x10
jb 0x140003ae3
inc rax
mov rcx, qword [rbp - 0x20]
cmp rax, 0x1000
jb 0x140003ade
test cl, 0x1f
je 0x140003ab1
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003ac0
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003acf
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140003adb
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], send
mov byte [rbp - 0x20], 0
mov rax, qword [rbp + 0x18]
cmp rax, 0x10
jb 0x140003ebe
inc rax
mov rcx, qword [rbp]
cmp rax, 0x1000
jb 0x140003eb9
test cl, 0x1f
je 0x140003b1f
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003b2e
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003b3d
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140003eb6
call fcn.1400098f8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp]
call fcn.140003140
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.140002b30
nop
lea r8, str._error___handle
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140002ca0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140002d10
nop
lea r8, str._error_number:
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140002ca0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140002d10
mov rbx, rax
cmp rsi, rax
je 0x140003bfa
mov rcx, rsi
call fcn.140002320
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 0x140003c50
inc rax
mov rcx, qword [rbp - 0x20]
cmp rax, 0x1000
jb 0x140003c4b
test cl, 0x1f
je 0x140003c1e
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003c2d
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003c3c
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140003c48
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], send
mov byte [rbp - 0x20], 0
mov rax, qword [rbp - 0x28]
cmp rax, 0x10
jb 0x140003cb6
inc rax
mov rcx, qword [rbp - 0x40]
cmp rax, 0x1000
jb 0x140003cb1
test cl, 0x1f
je 0x140003c84
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003c93
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003ca2
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140003cae
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], send
mov byte [rbp - 0x40], 0
mov rax, qword [rbp - 0x48]
cmp rax, 0x10
jb 0x140003d1c
inc rax
mov rcx, qword [rbp - 0x60]
cmp rax, 0x1000
jb 0x140003d17
test cl, 0x1f
je 0x140003cea
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003cf9
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003d08
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140003d14
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], send
mov byte [rbp - 0x60], 0
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
jb 0x140003d82
inc rax
mov rcx, qword [rbp - 0x80]
cmp rax, 0x1000
jb 0x140003d7d
test cl, 0x1f
je 0x140003d50
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003d5f
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003d6e
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140003d7a
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], send
mov byte [rbp - 0x80], 0
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x140003dea
inc rax
mov rcx, qword [rsp + 0x60]
cmp rax, 0x1000
jb 0x140003de5
test cl, 0x1f
je 0x140003db8
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003dc7
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003dd6
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140003de2
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], socket
mov byte [rsp + 0x60], 0
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x140003e55
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x140003e50
test cl, 0x1f
je 0x140003e23
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003e32
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003e41
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140003e4d
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], socket
mov byte [rsp + 0x40], 0
mov rax, qword [rbp + 0x18]
cmp rax, 0x10
jb 0x140003ebe
inc rax
mov rcx, qword [rbp]
cmp rax, 0x1000
jb 0x140003eb9
test cl, 0x1f
je 0x140003e8c
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003e9b
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003eaa
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140003eb6
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0x48]
cmp rax, 8
jb 0x140003f36
inc rax
mov rcx, qword [rbp + 0x30]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x140003eee
call fcn.1400098f8
int3
add rax, rax
cmp rax, 0x1000
jb 0x140003f31
test cl, 0x1f
je 0x140003f04
call fcn.1400098f8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003f13
call fcn.1400098f8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003f22
call fcn.1400098f8
int3
cmp rcx, 0x27
jbe 0x140003f2e
call fcn.1400098f8
int3
mov rcx, rax
call fcn.1400057f0
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140005790
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret