Function at 0x14006ea40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14006eeae
mov qword [rax + 8], rbp
mov dword [rcx + 0x3d0], reloc.WS2_32.dll_recv
mov qword [rax + 0x18], r12
mov dword [rcx + 0x3cc], reloc.WLDAP32.dll_Ordinal_32
mov qword [rax + 0x20], r13
mov qword [rax - 0x20], r14
mov qword [rax - 0x28], r15
mov rax, qword [r8]
add rcx, 0x3f8
mov qword [rcx - 0x20], rax
mov rax, qword [r8 + 8]
mov rdx, rdi
mov qword [rcx - 0x18], rax
movsxd r8, dword [rcx - 0x28]
call fcn.1400430e0
mov eax, dword [rbx + 0x3cc]
cmp eax, 0x10
je 0x14006eacc
cmp eax, 0x18
mov eax, reloc.WS2_32.dll_ntohl
jne 0x14006eaec
cmp dword [rbx + 0x3d0], 0x20
mov ecx, listen
cmovne eax, ecx
jmp 0x14006eaec
mov edx, dword [rbx + 0x3d0]
cmp edx, 0x10
jne 0x14006eadc
lea eax, [rdx - 6]
jmp 0x14006eaec
mov eax, reloc.WS2_32.dll_ntohl
mov ecx, listen
cmp edx, 0x18
cmove eax, ecx
mov dword [rbx + 0x3d4], eax
mov eax, dword [rbx + 0x3d0]
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
movsxd r15, eax
mov r14, r15
cmp dword [rbx + 0x3d4], edx
jl 0x14006eb32
lea r8, [rbx + 0xc]
test r15d, r15d
jle 0x14006eb24
mov rdi, r8
xor eax, eax
mov rcx, r15
rep stosd dword [rdi], eax
inc edx
add r8, 0x20
cmp edx, dword [rbx + 0x3d4]
jle 0x14006eb15
xor edx, edx
cmp dword [rbx + 0x3d4], edx
jl 0x14006eb60
lea r8, [rbx + 0x1ec]
test r15d, r15d
jle 0x14006eb52
mov rdi, r8
xor eax, eax
mov rcx, r15
rep stosd dword [rdi], eax
inc edx
add r8, 0x20
cmp edx, dword [rbx + 0x3d4]
jle 0x14006eb43
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, r15d
sar eax, 2
movsxd r13, eax
test eax, eax
jle 0x14006ebc1
mov edi, r13d
nop dword [rax]
movzx ecx, byte [rsi]
lea rsi, [rsi + 4]
lea rdx, [rdx + 4]
shl ecx, 0x18
mov dword [rdx - 4], ecx
movzx eax, byte [rsi - 3]
shl eax, 0x10
or dword [rdx - 4], eax
movzx eax, byte [rsi - 2]
shl eax, 8
or dword [rdx - 4], eax
movzx eax, byte [rsi - 1]
or dword [rdx - 4], eax
dec rdi
jne 0x14006eb90
xor r9d, r9d
xor r11d, r11d
test r13d, r13d
jle 0x14006ec1d
lea r10, [rbx + 0x418]
cmp r9d, ebp
jge 0x14006edf7
mov eax, r9d
inc r11
add r10, 4
cdq
inc r9d
idiv r15d
movsxd rdi, eax
mov eax, dword [r10 - 4]
movsxd r8, edx
lea rcx, [r8 + rdi*8]
mov dword [rbx + rcx*4 + 0xc], eax
movsxd rax, dword [rbx + 0x3d4]
sub rax, rdi
lea rcx, [r8 + rax*8]
mov eax, dword [r10 - 4]
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp r11, r13
jl 0x14006ebd3
cmp r9d, ebp
jge 0x14006edf7
lea r10, [0x14008ddf0]
lea r14, [0x140000000]
nop word [rax + rax]
mov edi, dword [rbx + r13*4 + 0x414]
inc r10
movsxd rdx, edi
mov qword [rsp + 0x78], r10
mov rax, rdx
sar rax, 0x10
movzx ecx, al
movsx eax, byte [r10 - 1]
movsx r8d, byte [rcx + r14 + 0x90f10]
xor r8d, eax
mov rax, rdx
sar rax, 8
shl r8d, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0x90f10]
xor r8d, eax
movzx eax, dl
movzx eax, byte [rax + r14 + 0x90f10]
shl r8d, 8
xor r8d, eax
mov eax, edi
shr rax, 0x18
shl r8d, 8
movzx eax, byte [rax + r14 + 0x90f10]
xor r8d, eax
xor dword [rbx + 0x418], r8d
cmp r13d, 8
je 0x14006ecf4
cmp r13, 1
jle 0x14006ed8f
lea rcx, [rbx + 0x41c]
lea rdx, [r13 - 1]
nop word [rax + rax]
mov eax, dword [rcx - 4]
lea rcx, [rcx + 4]
xor dword [rcx - 4], eax
dec rdx
jne 0x14006ece0
jmp 0x14006ed8f
lea rcx, [rbx + 0x41c]
mov edx, 3
mov eax, dword [rcx - 4]
lea rcx, [rcx + 4]
xor dword [rcx - 4], eax
dec rdx
jne 0x14006ed00
mov eax, dword [rbx + 0x424]
mov ecx, eax
movsxd rdx, eax
shr rcx, 0x18
mov rax, rdx
movsx edi, byte [rcx + r14 + 0x90f10]
sar rax, 0x10
movzx ecx, al
shl edi, 8
movzx eax, byte [rcx + r14 + 0x90f10]
xor edi, eax
mov rax, rdx
sar rax, 8
shl edi, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0x90f10]
xor edi, eax
movzx eax, dl
movzx eax, byte [rax + r14 + 0x90f10]
shl edi, 8
xor edi, eax
xor dword [rbx + 0x428], edi
cmp r13, 5
jle 0x14006ed8f
lea rax, [rbx + 0x42c]
lea rdx, [r13 - 5]
nop
mov ecx, dword [rax - 4]
lea rax, [rax + 4]
xor dword [rax - 4], ecx
dec rdx
jne 0x14006ed80
xor r11d, r11d
test r13d, r13d
jle 0x14006edeb
lea r10, [rbx + 0x418]
nop
cmp r9d, ebp
jge 0x14006edf4
mov eax, r9d
inc r11
add r10, 4
cdq
inc r9d
idiv r15d
movsxd rdi, eax
mov eax, dword [r10 - 4]
movsxd r8, edx
lea rcx, [r8 + rdi*8]
mov dword [rbx + rcx*4 + 0xc], eax
movsxd rax, dword [rbx + 0x3d4]
sub rax, rdi
lea rcx, [r8 + rax*8]
mov eax, dword [r10 - 4]
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp r11, r13
jl 0x14006eda0
mov r10, qword [rsp + 0x78]
cmp r9d, ebp
jl 0x14006ec40
mov r14, r15
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x70]
mov r10d, 1
cmp dword [rbx + 0x3d4], r10d
jle 0x14006ee9d
lea r11, [rbx + 0x20c]
test r14, r14
jle 0x14006ee8d
mov r8, r11
mov r9, r14
lea rsi, [0x140000000]
nop dword [rax]
mov eax, dword [r8]
lea r8, [r8 + 4]
mov edx, eax
movsxd rdi, eax
shr rdx, 0x18
mov rax, rdi
mov edx, dword [rsi + rdx*4 + 0x8ea10]
sar rax, 0x10
movzx ecx, al
mov rax, rdi
xor edx, dword [rsi + rcx*4 + 0x8e610]
sar rax, 8
movzx ecx, al
movzx eax, dil
xor edx, dword [rsi + rcx*4 + 0x8e210]
xor edx, dword [rsi + rax*4 + 0x8de10]
mov dword [r8 - 4], edx
dec r9
jne 0x14006ee40
inc r10d
add r11, 0x20
cmp r10d, dword [rbx + 0x3d4]
jl 0x14006ee27
mov byte [rbx + 8], 1
mov r14, qword [rsp + 0x48]
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
lea rax, str.Empty_key
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x78], rax
call fcn.140043704
lea rdx, [0x14009ae68]
lea rcx, [rsp + 0x28]
call fcn.140049078
int3