Function at 0x18006cb40
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x18006cb7f
lea rax, str.Empty_key
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rax
call fcn.18007aac4
lea rdx, [0x1800cc2c8]
lea rcx, [rsp + 0x20]
call fcn.18007e92c
int3
mov dword [rcx + 0x3d0], reloc.WS2_32.dll_recv
mov dword [rcx + 0x3cc], reloc.WS2_32.dll_recv
mov rax, qword [0x1800afd08]
mov qword [rcx + 0x3d8], rax
mov rax, qword [0x1800afd10]
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x80], rsi
mov qword [rcx + 0x3e0], rax
movsxd r8, dword [rcx + 0x3d0]
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x50], r13
lea rdx, [0x1800afd08]
add rcx, 0x3f8
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
call fcn.18007abc0
mov r11d, dword [rbx + 0x3cc]
cmp r11d, 0x10
je 0x18006cc16
mov eax, recv
cmp r11d, 0x18
jne 0x18006cc36
cmp dword [rbx + 0x3d0], 0x20
mov ecx, recv
cmovne eax, ecx
jmp 0x18006cc36
mov edx, dword [rbx + 0x3d0]
cmp edx, 0x10
jne 0x18006cc26
lea eax, [rdx - 6]
jmp 0x18006cc36
mov eax, recv
mov ecx, recv
cmp edx, 0x18
cmove eax, ecx
mov dword [rbx + 0x3d4], eax
mov eax, dword [rbx + 0x3d0]
lea rcx, [rbx + 0xc]
cdq
mov r8d, 0x1e0
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
movsxd r12, eax
call fcn.18007e840
lea rcx, [rbx + 0x1ec]
xor edx, edx
mov r8d, 0x1e0
call fcn.18007e840
mov eax, dword [rbx + 0x3cc]
mov ebp, dword [rbx + 0x3d4]
cdq
inc ebp
and edx, 3
add eax, edx
lea rdx, [rbx + 0x418]
imul ebp, r12d
sar eax, 2
movsxd r14, eax
test eax, eax
jle 0x18006ccd1
mov r8d, r14d
nop
movzx ecx, byte [rdi]
add rdx, 4
add rdi, 4
shl ecx, 0x18
mov dword [rdx - 4], ecx
movzx eax, byte [rdi - 3]
shl eax, 0x10
or dword [rdx - 4], eax
movzx eax, byte [rdi - 2]
shl eax, 8
or dword [rdx - 4], eax
movzx eax, byte [rdi - 1]
or dword [rdx - 4], eax
dec r8
jne 0x18006cca0
xor r10d, r10d
xor edi, edi
test r14d, r14d
jle 0x18006cd28
lea r11, [rbx + 0x418]
cmp r10d, ebp
jge 0x18006cd28
mov eax, r10d
inc rdi
add r11, 4
cdq
inc r10d
idiv r12d
movsxd r8, eax
mov eax, dword [r11 - 4]
movsxd r9, edx
lea rcx, [r9 + r8*8]
mov dword [rbx + rcx*4 + 0xc], eax
movsxd rax, dword [rbx + 0x3d4]
sub rax, r8
lea rcx, [r9 + rax*8]
mov eax, dword [r11 - 4]
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp rdi, r14
jl 0x18006cce2
lea r15, [0x180000000]
cmp r10d, ebp
jge 0x18006cf0d
lea r15, [0x1800a81b0]
lea r11, [0x180000000]
nop word [rax + rax]
mov r8d, dword [rbx + r14*4 + 0x414]
inc r15
movsxd rdx, r8d
mov rax, rdx
sar rax, 0x10
movzx ecx, al
movsx eax, byte [r15 - 1]
movsx r9d, byte [rcx + r11 + 0xa4fb0]
xor r9d, eax
mov rax, rdx
sar rax, 8
shl r9d, 8
movzx ecx, al
movzx eax, byte [rcx + r11 + 0xa4fb0]
xor r9d, eax
movzx eax, dl
movzx eax, byte [rax + r11 + 0xa4fb0]
shl r9d, 8
xor r9d, eax
mov eax, r8d
shr rax, 0x18
shl r9d, 8
movzx eax, byte [rax + r11 + 0xa4fb0]
xor r9d, eax
xor dword [rbx + 0x418], r9d
cmp r14d, 8
je 0x18006cdf4
cmp r14, 1
jle 0x18006ce9f
lea rcx, [rbx + 0x41c]
lea rdx, [r14 - 1]
nop
mov eax, dword [rcx - 4]
add rcx, 4
xor dword [rcx - 4], eax
dec rdx
jne 0x18006cde0
jmp 0x18006ce9f
lea rcx, [rbx + 0x41c]
mov edx, 3
mov eax, dword [rcx - 4]
add rcx, 4
xor dword [rcx - 4], eax
dec rdx
jne 0x18006ce00
mov eax, dword [rbx + 0x424]
mov ecx, eax
movsxd rdx, eax
shr rcx, 0x18
mov rax, rdx
movsx r8d, byte [rcx + r11 + 0xa4fb0]
sar rax, 0x10
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + r11 + 0xa4fb0]
xor r8d, eax
mov rax, rdx
sar rax, 8
shl r8d, 8
movzx ecx, al
movzx eax, byte [rcx + r11 + 0xa4fb0]
xor r8d, eax
movzx eax, dl
movzx eax, byte [rax + r11 + 0xa4fb0]
shl r8d, 8
xor r8d, eax
xor dword [rbx + 0x428], r8d
cmp r14, 5
jle 0x18006ce9f
lea rcx, [rbx + 0x42c]
lea rdx, [r14 - 5]
nop word [rax + rax]
mov eax, dword [rcx - 4]
add rcx, 4
xor dword [rcx - 4], eax
dec rdx
jne 0x18006ce90
xor edi, edi
test r14d, r14d
jle 0x18006cefd
lea r11, [rbx + 0x418]
nop dword [rax]
cmp r10d, ebp
jge 0x18006cf06
mov eax, r10d
inc rdi
add r11, 4
cdq
inc r10d
idiv r12d
movsxd r8, eax
mov eax, dword [r11 - 4]
movsxd r9, edx
lea rcx, [r9 + r8*8]
mov dword [rbx + rcx*4 + 0xc], eax
movsxd rax, dword [rbx + 0x3d4]
sub rax, r8
lea rcx, [r9 + rax*8]
mov eax, dword [r11 - 4]
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp rdi, r14
jl 0x18006ceb0
lea r11, [0x180000000]
cmp r10d, ebp
jl 0x18006cd50
lea r15, [0x180000000]
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov edi, 1
mov rbp, r12
mov r12, qword [rsp + 0x88]
cmp dword [rbx + 0x3d4], edi
jle 0x18006cfaf
lea rsi, [rbx + 0x20c]
nop word [rax + rax]
test rbp, rbp
jle 0x18006cfa1
mov r10, rsi
mov r11, rbp
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
mov edx, eax
movsxd r9, eax
shr rdx, 0x18
mov rax, r9
mov r8d, dword [r15 + rdx*4 + 0xa71b0]
sar rax, 0x10
movzx ecx, al
mov rax, r9
xor r8d, dword [r15 + rcx*4 + 0xa75b0]
sar rax, 8
movzx ecx, al
movzx eax, r9b
xor r8d, dword [r15 + rcx*4 + 0xa79b0]
xor r8d, dword [r15 + rax*4 + 0xa7db0]
dec r11
mov dword [r10 - 4], r8d
jne 0x18006cf50
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x3d4]
jl 0x18006cf40
mov r15, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x70]
mov byte [rbx + 8], 1
add rsp, 0x58
pop rdi
pop rbx
ret