Function at 0x1400682e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
cmp byte [rcx + 0x240], 0
mov rbx, rcx
je 0x140068721
xor r12d, r12d
mov dword [rcx + 0x250], r12d
cmp dword [rbx + 0x268], r12d
jne 0x14006839b
mov rcx, qword [rbx + 0x228]
mov r8d, dword [rbx + 0x2ac]
mov rdx, qword [rbx + 0x2d0]
mov eax, r12d
mov dword [rbp + 0x30], eax
cmp rcx, 0xffffffffffffffff
je 0x140068365
test rdx, rdx
je 0x140068365
test r8d, r8d
je 0x140068365
lea r9, [rbp + 0x30]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140068362
mov eax, r12d
mov dword [rbp + 0x30], eax
jmp 0x140068365
mov eax, dword [rbp + 0x30]
lock add qword [0x1401f3d68], rax
mov eax, dword [rbx + 0x2ac]
cmp dword [rbp + 0x30], eax
jne 0x140068721
mov rax, qword [rbx + 0x2d0]
mov qword [rbx + 0x260], rax
mov dword [rbx + 0x2ac], r12d
mov dword [rbx + 0x268], 0x100000
mov rdi, qword [rbx + 0x270]
lea r15, [rbx + 0x248]
mov rcx, r15
lea r14, [rbx + 0x2ac]
mov edx, 4
call fcn.140077d30
mov r8d, dword [rbx + 0x2ac]
sub r8d, edi
add r8d, dword [rbx + 0x270]
mov dword [r14], r8d
test eax, eax
je 0x140068313
cmp eax, 1
mov ecx, r12d
cmovne ecx, eax
test ecx, ecx
je 0x1400683f6
cmp ecx, 2
jne 0x140068721
lea r15, [rbx + 0x248]
test r8d, r8d
je 0x140068456
mov rcx, qword [rbx + 0x228]
mov rdx, qword [rbx + 0x2d0]
mov eax, r12d
mov dword [rbp + 0x38], eax
cmp rcx, 0xffffffffffffffff
je 0x140068438
test rdx, rdx
je 0x140068438
lea r9, [rbp + 0x38]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140068435
mov eax, r12d
mov dword [rbp + 0x38], eax
jmp 0x140068438
mov eax, dword [rbp + 0x38]
lock add qword [0x1401f3d68], rax
mov eax, dword [rbx + 0x2ac]
cmp dword [rbp + 0x38], eax
jne 0x140068721
lea r15, [rbx + 0x248]
mov rcx, r15
call fcn.140078840
mov dword [rbx + 0x2a8], r12d
test eax, 0xfffffffd
jne 0x140068721
mov ecx, dword [rbx + 0x2dc]
mov r14d, 0xffffffff
mov rax, qword [rbx + 0x2b8]
mov byte [rax + 0x10], cl
shr ecx, 8
mov byte [rax + 0x11], cl
shr ecx, 8
mov byte [rax + 0x12], cl
shr ecx, 8
mov byte [rax + 0x13], cl
lea rcx, [rbx + 0x2b8]
cmp qword [rbx + 0x258], r14
jae 0x14006850c
mov rcx, qword [rbx + 0x270]
cmp rcx, r14
jae 0x140068505
mov rax, qword [rbx + 0x2b8]
mov byte [rax + 0x14], cl
shr ecx, 8
mov byte [rax + 0x15], cl
shr ecx, 8
mov byte [rax + 0x16], cl
shr ecx, 8
mov byte [rax + 0x17], cl
mov ecx, dword [rbx + 0x258]
mov rax, qword [rbx + 0x2b8]
mov byte [rax + 0x18], cl
shr ecx, 8
mov byte [rax + 0x19], cl
shr ecx, 8
mov byte [rax + 0x1a], cl
shr ecx, 8
mov byte [rax + 0x1b], cl
mov r8d, dword [rbx + 0x2c0]
mov rdx, qword [rbx + 0x2b8]
jmp 0x1400685c8
lea rcx, [rbx + 0x2b8]
mov rax, qword [rbx + 0x2b8]
mov dword [rbp - 0x20], 0x100001
mov dword [rax + 0x14], r14d
mov rax, qword [rcx]
mov rcx, rbx
mov dword [rax + 0x18], r14d
mov rax, qword [rbx + 0x258]
mov byte [rbp - 0x1c], al
shr rax, 8
mov byte [rbp - 0x1b], al
shr rax, 8
mov byte [rbp - 0x1a], al
shr rax, 8
mov byte [rbp - 0x19], al
shr rax, 8
mov byte [rbp - 0x18], al
shr rax, 8
mov byte [rbp - 0x17], al
shr rax, 8
mov byte [rbp - 0x16], al
shr rax, 8
mov byte [rbp - 0x15], al
mov rax, qword [rbx + 0x270]
mov byte [rbp - 0x14], al
shr rax, 8
mov byte [rbp - 0x13], al
shr rax, 8
mov byte [rbp - 0x12], al
shr rax, 8
mov byte [rbp - 0x11], al
shr rax, 8
mov byte [rbp - 0x10], al
shr rax, 8
mov byte [rbp - 0xf], al
shr rax, 8
mov byte [rbp - 0xe], al
shr rax, 8
mov byte [rbp - 0xd], al
mov rax, qword [rbx + 0x2b8]
mov word [rax + 0x1e], shutdown
mov r8d, dword [rbx + 0x2c0]
mov rdx, qword [rbx + 0x2b8]
call fcn.140068110
mov r8d, shutdown
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140068110
mov rcx, qword [rbx + 0x2b8]
test rcx, rcx
je 0x1400685e8
call fcn.14002e8a8
mov qword [rbx + 0x2b8], r12
lea rcx, [rbx + 0x220]
call fcn.140004180
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140068721
mov edx, dword [rbx + 0x2b0]
lea rcx, [rbx + 0x220]
add edx, 0xe
xor r8d, r8d
call fcn.140004130
cmp rax, 0xffffffffffffffff
je 0x140068721
mov edx, dword [rbx + 0x2dc]
mov r8d, 4
mov rcx, rbx
call fcn.1400690b0
mov r8d, 4
mov rcx, rbx
cmp byte [rbx + 0x2ec], r12b
jne 0x14006866d
mov edx, dword [rbx + 0x270]
call fcn.1400690b0
mov edx, dword [rbx + 0x258]
mov r8d, 4
mov rcx, rbx
call fcn.1400690b0
jmp 0x1400686f8
mov edx, r14d
call fcn.1400690b0
mov r8d, 4
mov edx, r14d
mov rcx, rbx
call fcn.1400690b0
mov ecx, dword [rbx + 0x2e8]
xor r8d, r8d
mov edx, dword [rbx + 0x2b0]
add ecx, 0x1e
add edx, ecx
lea rcx, [rbx + 0x220]
call fcn.140004130
cmp rax, 0xffffffffffffffff
je 0x140068721
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 1]
call fcn.1400690b0
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
lea r8d, [rdx - 0xe]
call fcn.1400690b0
mov rdx, qword [rbx + 0x258]
mov r8d, 8
mov rcx, rbx
call fcn.140069020
mov rdx, qword [rbx + 0x270]
mov r8d, 8
mov rcx, rbx
call fcn.140069020
xor r8d, r8d
lea rcx, [rbx + 0x220]
mov rdx, rsi
call fcn.140004130
cmp rax, 0xffffffffffffffff
je 0x140068721
inc dword [rbx + 0x2f4]
mov al, 1
mov byte [rbx + 0x240], r12b
jmp 0x140068723
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret