Function at 0x1400026f0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push r12
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
xor r12d, r12d
mov qword [rax + 0x10], rdi
mov dword [rbp + 0x67], r12d
mov r8d, edx
cmp byte [0x1400b7a40], r12b
mov qword [rax + 0x18], r14
je 0x1400028fa
cmp byte [0x1400b7a41], r12b
lea r9, [rbp + 0x6b]
mov byte [0x1400b7a40], r12b
lea r8, [rbp + 0x67]
mov dword [rbp + 0x67], edx
lea rax, [rbp + 0x67]
je 0x140002821
mov byte [rbp - 0x79], r12b
cmp rax, r9
je 0x140002796
lea rdx, [rbp - 0x79]
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 0x14000277b
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 0x14000278e
add al, 7
mov byte [rdx], al
inc r8
cmp r8, r9
jne 0x140002760
mov rax, qword [0x1400b7960]
mov qword [rsp + 0x38], 8
test rax, rax
jne 0x1400027c3
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400b7960], rax
mov esi, 9
xor edx, edx
mov r8d, esi
mov qword [rsp + 0x30], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x48]
cmp rdi, rax
je 0x1400027fc
mov rcx, qword [rsp + 0x48]
mov qword [rdi], rcx
movzx ecx, byte [rbp - 0x79]
mov byte [rdi + 8], cl
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x1f]
lea rcx, [0x1400b7a10]
call fcn.1400048f0
mov rcx, rax
mov ebx, listen
mov rsi, qword [rax]
jmp 0x1400028d1
mov byte [rbp - 0x69], r12b
cmp rax, r9
je 0x140002866
lea rdx, [rbp - 0x69]
nop
movzx eax, byte [r8]
movzx ecx, al
and cl, 0xf
or cl, 0x30
mov byte [rdx - 1], cl
cmp cl, 0x39
jbe 0x14000284b
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 0x14000285e
add al, 7
mov byte [rdx], al
inc r8
cmp r8, r9
jne 0x140002830
mov rax, qword [0x1400b7960]
mov qword [rsp + 0x38], 8
test rax, rax
jne 0x140002893
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400b7960], rax
mov esi, 9
xor edx, edx
mov r8d, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [rbp - 0x71]
mov qword [rsp + 0x40], rax
cmp rax, rcx
je 0x1400028c2
mov rcx, qword [rbp - 0x71]
mov qword [rax], rcx
movzx ecx, byte [rbp - 0x69]
mov byte [rax + 8], cl
mov rdi, 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], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov r14, qword [rsp + 0x40]
jmp 0x140002b46
cmp byte [0x1400b7a41], r12b
mov ebx, 0xa
mov r9d, ebx
je 0x140002a22
mov byte [rbp - 0x57], r12b
nop dword [rax]
nop word [rax + rax]
dec r9
lea rdi, [rbp - 0x61]
add rdi, 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 [rdi], r8b
mov r8d, edx
test edx, edx
jne 0x140002920
mov rax, qword [0x1400b7960]
sub rbx, r9
mov qword [rsp + 0x38], rbx
test rax, rax
jne 0x14000297d
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 r14, rax
cmp rax, rdi
je 0x140002a00
test rbx, rbx
je 0x140002a00
mov rdx, rbx
mov r9, r12
shr rdx, 3
test rdx, rdx
je 0x1400029d1
mov r8, rdi
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 0x1400029c0
lea rax, [r9*8]
cmp rax, rbx
jae 0x140002a00
sub rdi, r14
lea rcx, [r14 + rax]
sub rbx, rax
nop dword [rax + rax]
movzx eax, byte [rdi + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rbx, 1
jne 0x1400029f0
lea r8, [rsp + 0x30]
lea rdx, [rbp + 7]
lea rcx, [0x1400b7a10]
call fcn.1400047a0
mov rcx, rax
mov ebx, 0xb0
jmp 0x140002b1f
mov byte [rbp - 0x47], r12b
nop word [rax + rax]
dec r9
lea rdi, [rbp - 0x51]
add rdi, 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 [rdi], r8b
mov r8d, edx
test edx, edx
jne 0x140002a30
mov rax, qword [0x1400b7960]
sub rbx, r9
mov qword [rsp + 0x38], rbx
test rax, rax
jne 0x140002a8d
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, rdi
je 0x140002b10
test rbx, rbx
je 0x140002b10
mov rdx, rbx
mov r10, r12
shr rdx, 3
test rdx, rdx
je 0x140002ae1
mov r8, rdi
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 0x140002ad0
lea rax, [r10*8]
cmp rax, rbx
jae 0x140002b10
sub rdi, r9
lea rcx, [r9 + rax]
sub rbx, rax
nop dword [rax + rax]
movzx eax, byte [rdi + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rbx, 1
jne 0x140002b00
mov r14, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov ebx, 0xc0
mov rax, qword [rcx + 8]
mov rsi, qword [rcx]
mov qword [rbp - 0x39], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x31], rax
lea rax, [rbp - 0x41]
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov rdi, qword [rsp + 0x40]
mov r15, qword [rax + 0x10]
mov qword [rbp - 0x11], rsi
mov rsi, qword [rax + 8]
mov qword [rbp - 9], rsi
mov qword [rbp - 1], r15
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
test bl, bl
jns 0x140002b80
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 0x140002b9c
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 0x140002bb7
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 0x140002bd1
mov rcx, qword [0x1400b7960]
and ebx, 0xffffffef
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14, qword [rsp + 0x140]
test bl, 8
je 0x140002bf4
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 0x140002c0d
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [0x1400b7960]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 2
je 0x140002c25
mov r8, qword [rbp + 0x2f]
xor edx, edx
mov rcx, qword [0x1400b7960]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 1
je 0x140002c3c
mov rcx, qword [0x1400b7960]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [0x1400b7a50], r12b
mov rdi, qword [rsp + 0x138]
je 0x140002c62
lea rdx, [rbp - 0x11]
lea rcx, [0x1400b7a10]
call fcn.140011c30
jmp 0x140002d52
mov rax, qword [0x1400b7a28]
cmp rax, 1
jne 0x140002ca2
mov rcx, qword [0x1400b7a10]
lea r9, [0x1400b7970]
mov r8d, esi
mov qword [rsp + 0x20], r12
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rsi
lea rcx, [0x1400b7a10]
call fcn.140004a30
jmp 0x140002d27
lea rcx, [0x1400b7a10]
test rax, rax
jne 0x140002cd7
mov rdx, rsi
call fcn.140004a30
mov rcx, qword [0x1400b7a10]
lea r9, [0x1400b7970]
mov r8d, esi
mov qword [rsp + 0x20], r12
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140002d27
mov rbx, qword [0x1400b7a20]
xor r8d, r8d
shr rbx, 1
mov rdx, rbx
call fcn.140004c50
mov rcx, qword [0x1400b7a10]
lea r9, [0x1400b7970]
mov r8d, esi
mov qword [rsp + 0x20], r12
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [0x1400b7a20]
lea rcx, [0x1400b7a10]
and edx, 1
mov r8b, 1
add rdx, rbx
call fcn.140004c50
cmp dword [0x1400b7a5c], r12d
je 0x140002d52
movzx edx, word [0x1400b7a08]
mov rcx, qword [0x1400b7a10]
mov word [0x1400b7a52], dx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov dword [0x1400b7a5c], r12d
mov rcx, qword [0x1400b7960]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [0x1400b7a10]
add rsp, 0x100
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret