Function at 0x1400698b0
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 0x140069cf1
xor r12d, r12d
mov dword [rcx + 0x250], r12d
cmp dword [rbx + 0x268], r12d
jne 0x14006996b
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 0x140069935
test rdx, rdx
je 0x140069935
test r8d, r8d
je 0x140069935
lea r9, [rbp + 0x30]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140069932
mov eax, r12d
mov dword [rbp + 0x30], eax
jmp 0x140069935
mov eax, dword [rbp + 0x30]
lock add qword [0x1401f4d68], rax
mov eax, dword [rbx + 0x2ac]
cmp dword [rbp + 0x30], eax
jne 0x140069cf1
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.140079520
mov r8d, dword [rbx + 0x2ac]
sub r8d, edi
add r8d, dword [rbx + 0x270]
mov dword [r14], r8d
test eax, eax
je 0x1400698e3
cmp eax, 1
mov ecx, r12d
cmovne ecx, eax
test ecx, ecx
je 0x1400699c6
cmp ecx, 2
jne 0x140069cf1
lea r15, [rbx + 0x248]
test r8d, r8d
je 0x140069a26
mov rcx, qword [rbx + 0x228]
mov rdx, qword [rbx + 0x2d0]
mov eax, r12d
mov dword [rbp + 0x38], eax
cmp rcx, 0xffffffffffffffff
je 0x140069a08
test rdx, rdx
je 0x140069a08
lea r9, [rbp + 0x38]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140069a05
mov eax, r12d
mov dword [rbp + 0x38], eax
jmp 0x140069a08
mov eax, dword [rbp + 0x38]
lock add qword [0x1401f4d68], rax
mov eax, dword [rbx + 0x2ac]
cmp dword [rbp + 0x38], eax
jne 0x140069cf1
lea r15, [rbx + 0x248]
mov rcx, r15
call fcn.14007a090
mov dword [rbx + 0x2a8], r12d
test eax, 0xfffffffd
jne 0x140069cf1
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 0x140069adc
mov rcx, qword [rbx + 0x270]
cmp rcx, r14
jae 0x140069ad5
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 0x140069b98
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.1400696c0
mov r8d, shutdown
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.1400696c0
mov rcx, qword [rbx + 0x2b8]
test rcx, rcx
je 0x140069bb8
call fcn.14002ec58
mov qword [rbx + 0x2b8], r12
lea rcx, [rbx + 0x220]
call fcn.1400044c0
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140069cf1
mov edx, dword [rbx + 0x2b0]
lea rcx, [rbx + 0x220]
add edx, 0xe
xor r8d, r8d
call fcn.140004470
cmp rax, 0xffffffffffffffff
je 0x140069cf1
mov edx, dword [rbx + 0x2dc]
mov r8d, 4
mov rcx, rbx
call fcn.14006a6c0
mov r8d, 4
mov rcx, rbx
cmp byte [rbx + 0x2ec], r12b
jne 0x140069c3d
mov edx, dword [rbx + 0x270]
call fcn.14006a6c0
mov edx, dword [rbx + 0x258]
mov r8d, 4
mov rcx, rbx
call fcn.14006a6c0
jmp 0x140069cc8
mov edx, r14d
call fcn.14006a6c0
mov r8d, 4
mov edx, r14d
mov rcx, rbx
call fcn.14006a6c0
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.140004470
cmp rax, 0xffffffffffffffff
je 0x140069cf1
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 1]
call fcn.14006a6c0
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
lea r8d, [rdx - 0xe]
call fcn.14006a6c0
mov rdx, qword [rbx + 0x258]
mov r8d, 8
mov rcx, rbx
call fcn.14006a630
mov rdx, qword [rbx + 0x270]
mov r8d, 8
mov rcx, rbx
call fcn.14006a630
xor r8d, r8d
lea rcx, [rbx + 0x220]
mov rdx, rsi
call fcn.140004470
cmp rax, 0xffffffffffffffff
je 0x140069cf1
inc dword [rbx + 0x2f4]
mov al, 1
mov byte [rbx + 0x240], r12b
jmp 0x140069cf3
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