Function at 0x140289a70
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
lea rbp, [r11 - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov qword [r11 - 0x20], r12
mov rsi, rcx
mov qword [r11 - 0x30], r14
movzx r12d, r9b
mov qword [r11 - 0x38], r15
mov r15, rdx
mov edx, 0x304
movsxd r14, r8d
cmp word [rcx + 0x1c60], dx
jb 0x140289acc
movzx r8d, byte [rcx + 0x67bd]
mov byte [rcx + 0x67bd], 0x17
mov byte [r14 + r15], r8b
inc r14d
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xa0], r13
cmp word [rcx + 0x1c60], dx
jae 0x140289b40
movzx edi, word [rcx + 0x1c60]
lea rdx, [rbp + 0xc]
movzx ebx, byte [rcx + 0x67bd]
mov r8, qword [rcx]
lea rcx, [rbp - 1]
call fcn.1402b1fc0
movzx r8d, bl
lea rdx, [rbp + 0xc]
mov rcx, rax
call fcn.1402b2060
movzx r8d, di
lea rdx, [rbp + 0xc]
mov rcx, rax
call fcn.1402b1f00
movzx r8d, r14w
lea rdx, [rbp + 0xc]
mov rcx, rax
call fcn.1402b1f00
mov edx, 0x304
mov r13d, reloc.WS2_32.dll_listen
jmp 0x140289b73
movzx eax, byte [rsi + 0x67bd]
lea ecx, [r14 + 0x10]
mov byte [rbp - 1], al
mov r13d, 5
movzx eax, byte [rsi + 0x67be]
mov byte [rbp], al
movzx eax, byte [rsi + 0x67bf]
mov byte [rbp + 1], al
mov eax, ecx
sar eax, 8
mov byte [rbp + 2], al
mov byte [rbp + 3], cl
cmp word [rsi + 0x1c60], dx
jae 0x140289c38
mov rax, qword [rsi + 0x38]
cmp byte [rax + 7], 3
je 0x140289c38
test r12b, r12b
je 0x140289b9c
mov rbx, qword [rsi + 0x3910]
jmp 0x140289ba3
mov rbx, qword [rsi + 0x3918]
mov rdi, qword [rsi]
cmp word [rsi + 0x1c60], dx
jae 0x140289bdc
cmp byte [rax + 7], 3
je 0x140289bdc
mov r9d, 4
lea rdx, [rbp - 5]
mov r8, rbx
lea rcx, [rbp - 0x11]
call fcn.1402b2080
mov r8, rdi
lea rdx, [rbp - 5]
mov rcx, rax
call fcn.1402b1fc0
jmp 0x140289c20
xor r8d, r8d
lea rdx, [rbp - 5]
lea rcx, [rbp - 0x11]
call fcn.1402b1f70
mov r8, rdi
lea rdx, [rbp - 5]
lea rcx, [rbp - 0xd]
call fcn.1402b1fc0
lea rax, [rbp - 0x11]
mov edx, listen
sub rbx, rax
lea rcx, [rbp - 0x11]
nop dword [rax]
movzx eax, byte [rcx + rbx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140289c10
lea rcx, [r15 - 8]
mov r8d, 8
lea rdx, [rbp - 0xd]
call fcn.140295270
jmp 0x140289cd0
test r12b, r12b
je 0x140289c46
mov rbx, qword [rsi + 0x3910]
jmp 0x140289c4d
mov rbx, qword [rsi + 0x3918]
mov rdi, qword [rsi]
cmp word [rsi + 0x1c60], dx
jae 0x140289c8a
mov rax, qword [rsi + 0x38]
cmp byte [rax + 7], 3
je 0x140289c8a
mov r9d, 4
lea rdx, [rbp - 5]
mov r8, rbx
lea rcx, [rbp - 0x11]
call fcn.1402b2080
mov r8, rdi
lea rdx, [rbp - 5]
mov rcx, rax
call fcn.1402b1fc0
jmp 0x140289cd0
xor r8d, r8d
lea rdx, [rbp - 5]
lea rcx, [rbp - 0x11]
call fcn.1402b1f70
mov r8, rdi
lea rdx, [rbp - 5]
lea rcx, [rbp - 0xd]
call fcn.1402b1fc0
lea rax, [rbp - 0x11]
mov edx, listen
sub rbx, rax
lea rcx, [rbp - 0x11]
nop word [rax + rax]
movzx eax, byte [rcx + rbx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140289cc0
mov rax, qword [rsi + 0x38]
lea r9, [rbp - 0x11]
mov r12, qword [rsp + 0xa8]
mov r8d, r14d
mov rdi, qword [rsp + 0xe8]
mov rdx, r15
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
cmp byte [rax + 7], 2
lea rax, [rbp + 0xf]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 1]
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], select
jne 0x140289d29
lea rcx, [rsi + 0x43c0]
call fcn.1402ac4e0
jmp 0x140289d35
lea rcx, [rsi + 0x4740]
call fcn.1402aacc0
movsxd rcx, eax
lea rdx, [rbp + 0xf]
add rcx, r15
mov r8d, reloc.WS2_32.dll_recv
mov ebx, eax
call fcn.140295270
mov r15, qword [rsp + 0x90]
mov eax, 0x304
mov r14, qword [rsp + 0x98]
add ebx, 0x10
mov r13, qword [rsp + 0xa0]
cmp word [rsi + 0x1c60], ax
jae 0x140289d82
mov rax, qword [rsi + 0x38]
cmp byte [rax + 7], 3
lea eax, [rbx + 8]
jne 0x140289d84
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140284180
add rsp, 0xb0
pop rsi
pop rbx
pop rbp
ret