Function at 0x14008c110
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14008c57f
mov qword [rax + 8], rbp
mov r8d, reloc.WS2_32.dll_recv
mov qword [rax + 0x18], r12
mov rdx, rdi
mov qword [rax + 0x20], r13
mov dword [rcx + 0x3cc], reloc.WLDAP32.dll_Ordinal_32
mov dword [rcx + 0x3d0], reloc.WS2_32.dll_recv
add rcx, 0x3d8
mov qword [rax - 0x20], r14
mov qword [rax - 0x28], r15
call fcn.14004cf90
movsxd r8, dword [rbx + 0x3d0]
lea rcx, [rbx + 0x3f8]
mov rdx, rdi
call fcn.14004cf90
mov eax, dword [rbx + 0x3cc]
cmp eax, 0x10
je 0x14008c1a5
cmp eax, 0x18
mov eax, reloc.WS2_32.dll_ntohl
jne 0x14008c1c5
cmp dword [rbx + 0x3d0], 0x20
mov ecx, ntohl
cmovne eax, ecx
jmp 0x14008c1c5
mov edx, dword [rbx + 0x3d0]
cmp edx, 0x10
jne 0x14008c1b5
lea eax, [rdx - 6]
jmp 0x14008c1c5
cmp edx, 0x18
mov eax, reloc.WS2_32.dll_ntohl
mov ecx, ntohl
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 0x14008c20d
lea r8, [rbx + 0xc]
nop
test r15d, r15d
jle 0x14008c1ff
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 0x14008c1f0
xor edx, edx
cmp dword [rbx + 0x3d4], edx
jl 0x14008c23d
lea r8, [rbx + 0x1ec]
nop
test r15d, r15d
jle 0x14008c22f
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 0x14008c220
mov eax, dword [rbx + 0x3cc]
mov ebp, dword [rbx + 0x3d4]
cdq
and edx, 3
inc ebp
add eax, edx
imul ebp, r15d
sar eax, 2
lea rdx, [rbx + 0x418]
movsxd r13, eax
test eax, eax
jle 0x14008c2a1
mov edi, r13d
nop dword [rax]
movzx ecx, byte [rsi]
lea rsi, [rsi + 4]
shl ecx, 0x18
mov dword [rdx], ecx
lea rdx, [rdx + 4]
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
sub rdi, 1
jne 0x14008c270
xor r9d, r9d
lea rsi, [0x140000000]
xor r10d, r10d
test r13d, r13d
jle 0x14008c309
lea r8, [rbx + 0x418]
nop word [rax + rax]
cmp r9d, ebp
jge 0x14008c4c8
mov eax, r9d
inc r10
cdq
inc r9d
idiv r15d
movsxd rcx, eax
movsxd rdi, edx
lea rdx, [rdi + rcx*8]
mov ecx, dword [r8]
mov dword [rbx + rdx*4 + 0xc], ecx
mov ecx, dword [rbx + 0x3d4]
sub ecx, eax
movsxd rax, ecx
lea rcx, [rdi + rax*8]
mov eax, dword [r8]
add r8, 4
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp r10, r13
jl 0x14008c2c0
cmp r9d, ebp
jge 0x14008c4c8
lea rsi, [0x14009f430]
lea r14, [0x140000000]
mov edi, dword [rbx + r13*4 + 0x414]
lea rsi, [rsi + 1]
movsxd rdx, edi
mov rax, rdx
sar rax, 0x10
movzx ecx, al
movsx eax, byte [rsi - 1]
movsx r8d, byte [rcx + r14 + 0xa2550]
xor r8d, eax
mov rax, rdx
sar rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + r14 + 0xa2550]
xor r8d, eax
movzx eax, dl
shl r8d, 8
movzx eax, byte [rax + r14 + 0xa2550]
xor r8d, eax
mov eax, edi
shr rax, 0x18
shl r8d, 8
movzx eax, byte [rax + r14 + 0xa2550]
xor r8d, eax
xor dword [rbx + 0x418], r8d
cmp r13d, 8
je 0x14008c3c4
cmp r13, 1
jle 0x14008c45f
lea rcx, [rbx + 0x41c]
lea rdx, [r13 - 1]
nop
mov eax, dword [rcx - 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x14008c3b0
jmp 0x14008c45f
lea rcx, [rbx + 0x41c]
mov edx, 3
mov eax, dword [rcx - 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x14008c3d0
mov eax, dword [rbx + 0x424]
mov ecx, eax
movsxd rdx, eax
shr rcx, 0x18
mov rax, rdx
sar rax, 0x10
movsx edi, byte [rcx + r14 + 0xa2550]
movzx ecx, al
shl edi, 8
movzx eax, byte [rcx + r14 + 0xa2550]
xor edi, eax
mov rax, rdx
sar rax, 8
shl edi, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0xa2550]
xor edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [rax + r14 + 0xa2550]
xor edi, eax
xor dword [rbx + 0x428], edi
cmp r13, 5
jle 0x14008c45f
lea rax, [rbx + 0x42c]
lea rdx, [r13 - 5]
nop
mov ecx, dword [rax - 4]
xor dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x14008c450
xor r10d, r10d
test r13d, r13d
jle 0x14008c4b5
lea r8, [rbx + 0x418]
nop
cmp r9d, ebp
jge 0x14008c4be
mov eax, r9d
inc r10
cdq
inc r9d
idiv r15d
movsxd rcx, eax
movsxd rdi, edx
lea rdx, [rdi + rcx*8]
mov ecx, dword [r8]
mov dword [rbx + rdx*4 + 0xc], ecx
mov ecx, dword [rbx + 0x3d4]
sub ecx, eax
movsxd rax, ecx
lea rcx, [rdi + rax*8]
mov eax, dword [r8]
add r8, 4
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp r10, r13
jl 0x14008c470
cmp r9d, ebp
jl 0x14008c320
mov r14, r15
lea rsi, [0x140000000]
mov r15, qword [rsp + 0x50]
mov r10d, 1
mov r13, qword [rsp + 0x98]
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
cmp dword [rbx + 0x3d4], r10d
jle 0x14008c56e
lea r11, [rbx + 0x20c]
nop dword [rax + rax]
test r14, r14
jle 0x14008c55e
mov r8, r11
mov r9, r14
nop dword [rax + rax]
mov eax, dword [r8]
lea r8, [r8 + 4]
mov edx, eax
movsxd rdi, eax
shr rdx, 0x18
mov rax, rdi
sar rax, 0x10
movzx ecx, al
mov rax, rdi
sar rax, 8
mov edx, dword [rsi + rdx*4 + 0xa0050]
xor edx, dword [rsi + rcx*4 + 0x9fc50]
movzx ecx, al
movzx eax, dil
xor edx, dword [rsi + rcx*4 + 0x9f850]
xor edx, dword [rsi + rax*4 + 0x9f450]
mov dword [r8 - 4], edx
sub r9, 1
jne 0x14008c510
inc r10d
add r11, 0x20
cmp r10d, dword [rbx + 0x3d4]
jl 0x14008c500
mov byte [rbx + 8], 1
mov r14, qword [rsp + 0x58]
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
lea rax, vtable.std::exception.0
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x38]
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rax, str.Empty_key
mov qword [rsp + 0x20], rax
call fcn.14004ea70
lea rdx, [0x1400b17f8]
lea rcx, [rsp + 0x30]
call fcn.14004efe4
int3