Function at 0x140002d80
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x100
xor r13d, r13d
mov qword [rax + 0x10], rsi
mov dword [rbp + 0x67], r13d
mov r8d, edx
mov rdi, rcx
mov qword [rax + 0x18], r15
movzx eax, byte [rcx + 0x31]
cmp byte [rcx + 0x30], r13b
je 0x140002f8b
test al, al
mov byte [rcx + 0x30], r13b
lea rax, [rbp + 0x67]
mov dword [rbp + 0x67], edx
lea r9, [rbp + 0x6b]
lea r8, [rbp + 0x67]
je 0x140002eae
mov byte [rbp - 0x79], r13b
cmp rax, r9
je 0x140002e26
lea rdx, [rbp - 0x79]
nop word [rax + rax]
movzx eax, byte [r8]
movzx ecx, al
and cl, 0xf
or cl, 0x30
mov byte [rdx - 1], cl
cmp cl, 0x39
jbe 0x140002e0b
add cl, 7
mov byte [rdx - 1], cl
sub rdx, 2
shr al, 4
or al, 0x30
mov byte [rdx], al
cmp al, 0x39
jbe 0x140002e1e
add al, 7
mov byte [rdx], al
inc r8
cmp r8, r9
jne 0x140002df0
mov rax, qword [0x1400b7960]
mov qword [rsp + 0x38], 8
test rax, rax
jne 0x140002e53
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400b7960], rax
mov r14d, 9
xor edx, edx
mov r8d, r14d
mov qword [rsp + 0x30], r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x48]
cmp rsi, rax
je 0x140002e8d
mov rcx, qword [rsp + 0x48]
mov qword [rsi], rcx
movzx ecx, byte [rbp - 0x79]
mov byte [rsi + 8], cl
lea r8, [rsp + 0x30]
mov rcx, rdi
lea rdx, [rbp + 0x1f]
call fcn.1400048f0
mov rcx, rax
mov ebx, listen
mov r14, qword [rax]
jmp 0x140002f62
mov byte [rbp - 0x69], r13b
cmp rax, r9
je 0x140002ef6
lea rdx, [rbp - 0x69]
nop dword [rax + rax]
movzx eax, byte [r8]
movzx ecx, al
and cl, 0xf
or cl, 0x30
mov byte [rdx - 1], cl
cmp cl, 0x39
jbe 0x140002edb
add cl, 7
mov byte [rdx - 1], cl
sub rdx, 2
shr al, 4
or al, 0x30
mov byte [rdx], al
cmp al, 0x39
jbe 0x140002eee
add al, 7
mov byte [rdx], al
inc r8
cmp r8, r9
jne 0x140002ec0
mov rax, qword [0x1400b7960]
mov qword [rsp + 0x38], 8
test rax, rax
jne 0x140002f23
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400b7960], rax
mov r14d, 9
xor edx, edx
mov r8d, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [rbp - 0x71]
mov qword [rsp + 0x40], rax
cmp rax, rcx
je 0x140002f53
mov rcx, qword [rbp - 0x71]
mov qword [rax], rcx
movzx ecx, byte [rbp - 0x69]
mov byte [rax + 8], cl
mov rsi, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov ebx, recv
mov rax, qword [rcx + 8]
mov qword [rbp - 0x21], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x29]
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov r15, qword [rsp + 0x40]
jmp 0x1400031c6
mov ebx, 0xa
mov r9d, ebx
test al, al
je 0x14000309e
mov byte [rbp - 0x57], r13b
nop
dec r9
lea rsi, [rbp - 0x61]
add rsi, r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
or r8b, 0x30
mov byte [rsi], r8b
mov r8d, edx
test edx, edx
jne 0x140002fa0
mov rax, qword [0x1400b7960]
sub rbx, r9
mov qword [rsp + 0x38], rbx
test rax, rax
jne 0x140002ffd
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400b7960], rax
inc rbx
xor edx, edx
mov r8, rbx
mov qword [rsp + 0x30], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x40], rax
mov r15, rax
cmp rax, rsi
je 0x140003080
test rbx, rbx
je 0x140003080
mov rdx, rbx
mov r9, r13
shr rdx, 3
test rdx, rdx
je 0x140003051
mov r8, rsi
mov rcx, rax
sub r8, rax
mov r9, rdx
mov rax, qword [r8 + rcx]
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x140003040
lea rax, [r9*8]
cmp rax, rbx
jae 0x140003080
sub rsi, r15
lea rcx, [r15 + rax]
sub rbx, rax
nop dword [rax + rax]
movzx eax, byte [rsi + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rbx, 1
jne 0x140003070
lea r8, [rsp + 0x30]
mov rcx, rdi
lea rdx, [rbp + 7]
call fcn.1400047a0
mov rcx, rax
mov ebx, 0xb0
jmp 0x14000319f
mov byte [rbp - 0x47], r13b
nop dword [rax]
nop word [rax + rax]
dec r9
lea rsi, [rbp - 0x51]
add rsi, r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
or r8b, 0x30
mov byte [rsi], r8b
mov r8d, edx
test edx, edx
jne 0x1400030b0
mov rax, qword [0x1400b7960]
sub rbx, r9
mov qword [rsp + 0x38], rbx
test rax, rax
jne 0x14000310d
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400b7960], rax
inc rbx
xor edx, edx
mov r8, rbx
mov qword [rsp + 0x30], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x40], rax
mov r9, rax
cmp rax, rsi
je 0x140003190
test rbx, rbx
je 0x140003190
mov rdx, rbx
mov r10, r13
shr rdx, 3
test rdx, rdx
je 0x140003161
mov r8, rsi
mov rcx, rax
sub r8, rax
mov r10, rdx
mov rax, qword [r8 + rcx]
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x140003150
lea rax, [r10*8]
cmp rax, rbx
jae 0x140003190
sub rsi, r9
lea rcx, [r9 + rax]
sub rbx, rax
nop dword [rax + rax]
movzx eax, byte [rsi + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rbx, 1
jne 0x140003180
mov r15, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov ebx, 0xc0
mov rax, qword [rcx + 8]
mov r14, qword [rcx]
mov qword [rbp - 0x39], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x31], rax
lea rax, [rbp - 0x41]
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov rsi, qword [rsp + 0x40]
mov r12, qword [rax + 0x10]
mov qword [rbp - 0x11], r14
mov r14, qword [rax + 8]
mov qword [rbp - 9], r14
mov qword [rbp - 1], r12
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
test bl, bl
jns 0x140003200
mov r8, qword [rbp - 0x31]
btr ebx, 7
mov rcx, qword [0x1400b7960]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 0x40
je 0x14000321c
mov r8, qword [rsp + 0x40]
and ebx, 0xffffffbf
mov rcx, qword [0x1400b7960]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 0x20
je 0x140003237
mov r8, qword [rbp + 0x17]
and ebx, 0xffffffdf
mov rcx, qword [0x1400b7960]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 0x10
je 0x140003251
mov rcx, qword [0x1400b7960]
and ebx, 0xffffffef
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r15, qword [rsp + 0x140]
test bl, 8
je 0x140003274
mov r8, qword [rbp - 0x19]
and ebx, 0xfffffff7
mov rcx, qword [0x1400b7960]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 4
je 0x14000328d
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [0x1400b7960]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 2
je 0x1400032a5
mov r8, qword [rbp + 0x2f]
xor edx, edx
mov rcx, qword [0x1400b7960]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 1
je 0x1400032bc
mov rcx, qword [0x1400b7960]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x138]
cmp byte [rdi + 0x40], r13b
je 0x1400032db
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140011c30
jmp 0x140003399
mov rax, qword [rdi + 0x18]
cmp rax, 1
jne 0x14000330d
mov rcx, qword [rdi]
lea r9, [0x1400b7970]
mov r8d, r14d
mov qword [rsp + 0x20], r13
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, r14
mov rcx, rdi
call fcn.140004a30
jmp 0x14000337b
mov rcx, rdi
test rax, rax
jne 0x14000333a
mov rdx, r14
call fcn.140004a30
mov rcx, qword [rdi]
lea r9, [0x1400b7970]
mov r8d, r14d
mov qword [rsp + 0x20], r13
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14000337b
mov rbx, qword [rdi + 0x10]
xor r8d, r8d
shr rbx, 1
mov rdx, rbx
call fcn.140004c50
mov rcx, qword [rdi]
lea r9, [0x1400b7970]
mov r8d, r14d
mov qword [rsp + 0x20], r13
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rdi + 0x10]
mov r8b, 1
and edx, 1
mov rcx, rdi
add rdx, rbx
call fcn.140004c50
cmp dword [rdi + 0x4c], r13d
je 0x140003399
movzx edx, word [0x1400b7a08]
mov rcx, qword [rdi]
mov word [rdi + 0x42], dx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov dword [rdi + 0x4c], r13d
mov rcx, qword [0x1400b7960]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x148]
mov rax, rdi
add rsp, 0x100
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret