Function at 0x18005dde0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r13
push r14
push r15
sub rsp, 0xc8
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x138]
mov r10, qword [rsp + 0x140]
mov r13, qword [rsp + 0x118]
mov r14, qword [rsp + 0x128]
mov r15, qword [rsp + 0x130]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], edx
mov rdx, qword [rsp + 0x110]
lea rax, [r10 - 4]
mov rbx, r8
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rbx
cmp rax, 0xc
ja 0x18005e32d
test r10b, 1
jne 0x18005e32d
lea rax, [rdx - 7]
cmp rax, 6
ja 0x18005e32d
mov qword [rsp + 0xf8], rbp
mov rbp, qword [rsp + 0x120]
cmp rbp, 0xff00
jbe 0x18005de9a
mov eax, 0xfffffff3
jmp 0x18005e306
mov qword [rsp + 0xb0], r12
mov r12d, reloc.WS2_32.dll_ntohs
lea eax, [r10 - 2]
sub r12b, dl
test rbp, rbp
setne cl
lea r8d, [r12 - 1]
and al, 0xfe
shl cl, 4
mov byte [rsp + 0x30], r8b
or cl, al
shl cl, 2
or cl, r8b
mov r8, rdx
mov rdx, r9
mov byte [rsp + 0x70], cl
lea rcx, [rsp + 0x71]
call fcn.1800cbb10
mov r11, rbx
test r12b, r12b
je 0x18005df10
lea rax, [rsp + 0x7f]
movzx ecx, r12b
nop word [rax + rax]
mov byte [rax], r11b
dec rax
shr r11, 8
sub rcx, 1
jne 0x18005df00
test r11, r11
je 0x18005df1f
mov eax, 0xfffffff3
jmp 0x18005e2fe
xor eax, eax
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xb8], rdi
xor edi, edi
mov esi, reloc.WS2_32.dll_recv
mov qword [rsp + 0x80], rax
mov rcx, rdi
mov qword [rsp + 0x88], rax
mov rdx, rsi
nop
movzx eax, byte [rsp + rcx + 0x70]
inc rcx
xor byte [rsp + rcx + 0x7f], al
sub rdx, 1
jne 0x18005df50
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x80]
mov r8, rsi
mov qword [rsp + 0x20], rax
call fcn.18005b950
test eax, eax
jne 0x18005e2ee
test rbp, rbp
je 0x18005e0ab
xor eax, eax
mov ebx, reloc.WS2_32.dll_ntohl
lea rcx, [rsp + 0x72]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov rax, rbp
shr rax, 8
cmp rbp, rbx
mov rdx, r13
cmovb rbx, rbp
mov byte [rsp + 0x70], al
mov byte [rsp + 0x71], bpl
mov r8, rbx
call fcn.1800cbb10
sub rbp, rbx
add r13, rbx
mov rcx, rdi
mov rdx, rsi
nop
movzx eax, byte [rsp + rcx + 0x70]
inc rcx
xor byte [rsp + rcx + 0x7f], al
sub rdx, 1
jne 0x18005dfe0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x80]
mov r8, rsi
mov qword [rsp + 0x20], rax
call fcn.18005b950
test eax, eax
jne 0x18005e2ee
test rbp, rbp
je 0x18005e0ab
nop word [rax + rax]
cmp rbp, rsi
mov rbx, rbp
lea rcx, [rsp + 0x70]
cmova rbx, rsi
xor eax, eax
mov rdx, r13
mov r8, rbx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call fcn.1800cbb10
mov r11, rdi
mov rcx, rsi
nop dword [rax]
movzx eax, byte [rsp + r11 + 0x70]
inc r11
xor byte [rsp + r11 + 0x7f], al
sub rcx, 1
jne 0x18005e060
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x80]
mov r8, rsi
mov qword [rsp + 0x20], rax
call fcn.18005b950
test eax, eax
jne 0x18005e2ee
add r13, rbx
sub rbp, rbx
jne 0x18005e030
movzx eax, byte [rsp + 0x30]
mov rbx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x91]
mov r8, rbx
mov byte [rsp + 0x90], al
call fcn.1800cbb10
lea rcx, [rsp + rbx + 0x91]
movzx r8d, r12b
xor edx, edx
call fcn.1800cc600
mov rbp, qword [rsp + 0x60]
mov byte [rsp + 0x9f], 1
test rbp, rbp
je 0x18005e266
mov r13, qword [rsp + 0x48]
nop
cmp rbp, rsi
mov rbx, rbp
cmova rbx, rsi
cmp dword [rsp + 0x40], edi
jne 0x18005e173
xor eax, eax
lea rcx, [rsp + 0x70]
mov r8, rbx
mov rdx, r14
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call fcn.1800cbb10
mov r11, rdi
mov rcx, rsi
movzx eax, byte [rsp + r11 + 0x70]
inc r11
xor byte [rsp + r11 + 0x7f], al
sub rcx, 1
jne 0x18005e132
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x80]
mov r8, rsi
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.18005b950
test eax, eax
jne 0x18005e2ee
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x90]
mov r8, rsi
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.18005b950
test eax, eax
jne 0x18005e2ee
xor dl, dl
test rbx, rbx
je 0x18005e1c7
mov rcx, rdi
nop word [rax + rax]
movzx eax, byte [rcx + r14]
inc dl
xor al, byte [rsp + rcx + 0x70]
mov byte [rcx + r15], al
movzx ecx, dl
cmp rcx, rbx
jb 0x18005e1b0
cmp dword [rsp + 0x40], 1
jne 0x18005e231
xor eax, eax
lea rcx, [rsp + 0x70]
mov r8, rbx
mov rdx, r15
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call fcn.1800cbb10
mov r11, rdi
mov rcx, rsi
movzx eax, byte [rsp + r11 + 0x70]
inc r11
xor byte [rsp + r11 + 0x7f], al
sub rcx, 1
jne 0x18005e1f0
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x80]
mov r8, rsi
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.18005b950
test eax, eax
jne 0x18005e2ee
add r15, rbx
add r14, rbx
sub rbp, rbx
xor dl, dl
test r12b, r12b
je 0x18005e25b
lea rcx, [rsp + 0x9f]
movzx eax, dl
sub rcx, rax
add byte [rcx], 1
jne 0x18005e25b
inc dl
cmp dl, r12b
jb 0x18005e241
test rbp, rbp
jne 0x18005e100
jmp 0x18005e26b
mov r13, qword [rsp + 0x48]
test r12b, r12b
je 0x18005e28c
lea rax, [rsp + 0x9f]
movzx edx, r12b
nop dword [rax]
mov byte [rax], dil
dec rax
sub rdx, 1
jne 0x18005e280
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x90]
mov r8, rsi
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.18005b950
test eax, eax
jne 0x18005e2ee
nop word [rax + rax]
movzx eax, byte [rsp + rdi + 0x70]
inc rdi
xor byte [rsp + rdi + 0x7f], al
sub rsi, 1
jne 0x18005e2c0
mov r8, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.1800cbb10
xor eax, eax
mov rdi, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0xc8
pop r15
pop r14
pop r13
pop rbx
ret
mov eax, 0xfffffff3
jmp 0x18005e30e