Function at 0x1400026c0
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 [0x1400b5a40], r12b
mov qword [rax + 0x18], r14
je 0x1400028ca
cmp byte [0x1400b5a41], r12b
lea r9, [rbp + 0x6b]
mov byte [0x1400b5a40], r12b
lea r8, [rbp + 0x67]
mov dword [rbp + 0x67], edx
lea rax, [rbp + 0x67]
je 0x1400027f1
mov byte [rbp - 0x79], r12b
cmp rax, r9
je 0x140002766
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 0x14000274b
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 0x14000275e
add al, 7
mov byte [rdx], al
inc r8
cmp r8, r9
jne 0x140002730
mov rax, qword [0x1400b5948]
mov qword [rsp + 0x38], 8
test rax, rax
jne 0x140002793
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400b5948], 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 0x1400027cc
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, [0x1400b5a10]
call fcn.1400047c0
mov rcx, rax
mov ebx, listen
mov rsi, qword [rax]
jmp 0x1400028a1
mov byte [rbp - 0x69], r12b
cmp rax, r9
je 0x140002836
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 0x14000281b
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 0x14000282e
add al, 7
mov byte [rdx], al
inc r8
cmp r8, r9
jne 0x140002800
mov rax, qword [0x1400b5948]
mov qword [rsp + 0x38], 8
test rax, rax
jne 0x140002863
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400b5948], 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 0x140002892
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 0x140002b16
cmp byte [0x1400b5a41], r12b
mov ebx, 0xa
mov r9d, ebx
je 0x1400029f2
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 0x1400028f0
mov rax, qword [0x1400b5948]
sub rbx, r9
mov qword [rsp + 0x38], rbx
test rax, rax
jne 0x14000294d
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400b5948], 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 0x1400029d0
test rbx, rbx
je 0x1400029d0
mov rdx, rbx
mov r9, r12
shr rdx, 3
test rdx, rdx
je 0x1400029a1
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 0x140002990
lea rax, [r9*8]
cmp rax, rbx
jae 0x1400029d0
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 0x1400029c0
lea r8, [rsp + 0x30]
lea rdx, [rbp + 7]
lea rcx, [0x1400b5a10]
call fcn.140004670
mov rcx, rax
mov ebx, 0xb0
jmp 0x140002aef
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 0x140002a00
mov rax, qword [0x1400b5948]
sub rbx, r9
mov qword [rsp + 0x38], rbx
test rax, rax
jne 0x140002a5d
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400b5948], 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 0x140002ae0
test rbx, rbx
je 0x140002ae0
mov rdx, rbx
mov r10, r12
shr rdx, 3
test rdx, rdx
je 0x140002ab1
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 0x140002aa0
lea rax, [r10*8]
cmp rax, rbx
jae 0x140002ae0
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 0x140002ad0
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 0x140002b50
mov r8, qword [rbp - 0x31]
btr ebx, 7
mov rcx, qword [0x1400b5948]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 0x40
je 0x140002b6c
mov r8, qword [rsp + 0x40]
and ebx, 0xffffffbf
mov rcx, qword [0x1400b5948]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 0x20
je 0x140002b87
mov r8, qword [rbp + 0x17]
and ebx, 0xffffffdf
mov rcx, qword [0x1400b5948]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 0x10
je 0x140002ba1
mov rcx, qword [0x1400b5948]
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 0x140002bc4
mov r8, qword [rbp - 0x19]
and ebx, 0xfffffff7
mov rcx, qword [0x1400b5948]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 4
je 0x140002bdd
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [0x1400b5948]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 2
je 0x140002bf5
mov r8, qword [rbp + 0x2f]
xor edx, edx
mov rcx, qword [0x1400b5948]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, 1
je 0x140002c0c
mov rcx, qword [0x1400b5948]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [0x1400b5a50], r12b
mov rdi, qword [rsp + 0x138]
je 0x140002c32
lea rdx, [rbp - 0x11]
lea rcx, [0x1400b5a10]
call fcn.14000f9e0
jmp 0x140002cf7
mov rax, qword [0x1400b5a28]
cmp rax, 1
jne 0x140002c72
mov rcx, qword [0x1400b5a10]
lea r9, [0x1400b5958]
mov r8d, esi
mov qword [rsp + 0x20], r12
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rsi
lea rcx, [0x1400b5a10]
call fcn.140004900
jmp 0x140002cf7
lea rcx, [0x1400b5a10]
test rax, rax
jne 0x140002ca7
mov rdx, rsi
call fcn.140004900
mov rcx, qword [0x1400b5a10]
lea r9, [0x1400b5958]
mov r8d, esi
mov qword [rsp + 0x20], r12
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140002cf7
mov rbx, qword [0x1400b5a20]
xor r8d, r8d
shr rbx, 1
mov rdx, rbx
call fcn.140004b20
mov rcx, qword [0x1400b5a10]
lea r9, [0x1400b5958]
mov r8d, esi
mov qword [rsp + 0x20], r12
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [0x1400b5a20]
lea rcx, [0x1400b5a10]
and edx, 1
mov r8b, 1
add rdx, rbx
call fcn.140004b20
mov rcx, qword [0x1400b5948]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [0x1400b5a10]
add rsp, 0x100
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret