Function at 0x1400cb850
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xb8
xor r12d, r12d
lea r8, [rbp + 0x7f]
xor r9d, r9d
mov qword [rbp - 0x29], r12
mov r13, rcx
mov qword [rbp + 0x7f], r12
mov edi, r12d
mov r15d, r12d
lea edx, [r12 + 0x1b]
call fcn.1400c35e0
mov dword [rbp + 0x77], eax
mov ebx, eax
test eax, eax
jne 0x1400cbcc6
movsxd r8, dword [r13 + 0x1f8]
lea edx, [rax + 1]
mov qword [rsp + 0xb0], rsi
mov rsi, qword [rbp + 0x7f]
mov rcx, rsi
mov qword [rsp + 0xa8], r14
call fcn.14005d160
movsxd r8, dword [r13 + 0x1d8]
lea edx, [rbx + 2]
mov rcx, rsi
call fcn.14005d160
nop dword [rax]
mov rcx, rsi
call fcn.14005b950
cmp eax, 0x64
jne 0x1400cb993
xor edx, edx
mov rcx, rsi
call fcn.14005bed0
mov rcx, rax
call fcn.140054c10
mov r14, rax
test rsi, rsi
je 0x1400cb946
mov rcx, qword [rsi]
mov edx, dword [rsi + 0x84]
cmp byte [rcx + 0x51], r12b
jne 0x1400cb929
cmp edx, 0xc0a
je 0x1400cb929
mov eax, dword [rcx + 0x48]
and eax, edx
jmp 0x1400cb92e
call fcn.140036510
mov dword [rsi + 0x84], eax
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400cb946
call qword [0x1403252b8]
mov edi, r12d
cmp dword [r13 + 0x1d8], r12d
jle 0x1400cb98b
mov rsi, qword [rbp - 0x29]
nop word [rax + rax]
lea r9, [rbp + 0x77]
mov r8d, edi
mov edx, r14d
mov rcx, r13
call fcn.1400cb330
xor rsi, rax
inc edi
cmp edi, dword [r13 + 0x1d8]
jl 0x1400cb960
mov ebx, dword [rbp + 0x77]
mov qword [rbp - 0x29], rsi
mov rsi, qword [rbp + 0x7f]
test ebx, ebx
je 0x1400cb8e0
mov rcx, rsi
call fcn.14005ac60
test ebx, ebx
jne 0x1400cbcb2
mov ebx, eax
test eax, eax
jne 0x1400cbcb2
mov rax, qword [r13 + 0x48]
mov rdx, qword [r13 + 0x1a8]
mov rcx, qword [rax]
mov qword [rbp - 0x11], rcx
lea rcx, str.SELECT__s
mov qword [rbp - 0x41], r12
call fcn.140037f90
mov rdi, rax
test rax, rax
jne 0x1400cb9df
lea ebx, [rax + 7]
jmp 0x1400cbca9
mov rcx, qword [r13 + 0x18]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x30], r12
mov r9d, 1
mov qword [rsp + 0x28], rax
or r8d, 0xffffffff
mov rdx, rdi
mov qword [rsp + 0x20], r12
call fcn.140090ca0
mov rcx, rdi
mov ebx, eax
call fcn.140035dc0
test ebx, ebx
jne 0x1400cbca9
nop word [rax + rax]
mov rcx, qword [rbp - 0x41]
call fcn.14005b950
cmp eax, 0x64
jne 0x1400cbca9
mov rdi, qword [rbp - 0x41]
xor edx, edx
mov rcx, rdi
call fcn.14005bed0
mov rcx, rax
call fcn.140054c10
mov qword [rbp - 1], rax
test rdi, rdi
je 0x1400cba8c
mov rcx, qword [rdi]
mov edx, dword [rdi + 0x84]
cmp byte [rcx + 0x51], r12b
jne 0x1400cba6f
cmp edx, 0xc0a
je 0x1400cba6f
mov eax, dword [rcx + 0x48]
and eax, edx
jmp 0x1400cba74
call fcn.140036510
mov dword [rdi + 0x84], eax
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400cba8c
call qword [0x1403252b8]
mov dword [rbp + 0x7f], r12d
cmp qword [r13 + 0x58], r12
je 0x1400cbaa8
mov edx, dword [r13 + 0x30]
mov rcx, qword [rbp - 0x41]
inc edx
call fcn.14005c1f0
mov dword [rbp + 0x7f], eax
mov eax, r12d
mov rdx, r12
mov dword [rbp - 0x49], eax
mov qword [rbp - 9], rdx
cmp eax, dword [r13 + 0x30]
jge 0x1400cba20
mov rcx, qword [r13 + 0x40]
cmp byte [rdx + rcx], r12b
jne 0x1400cbc95
mov rcx, qword [rbp - 0x41]
lea ebx, [rax + 1]
mov edx, ebx
call fcn.14005c2d0
mov rcx, qword [rbp - 0x41]
mov edx, ebx
mov rdi, rax
call fcn.14005c000
mov r14, qword [r13 + 0x48]
lea r9, [rbp - 0x39]
mov r8d, eax
mov qword [rbp - 0x39], r12
mov rdx, rdi
mov rcx, r14
mov rsi, qword [r14]
call qword [rsi + Ordinal_26]
mov ebx, eax
test eax, eax
jne 0x1400cbb36
mov rax, qword [rbp - 0x39]
mov qword [rax], r14
cmp dword [rsi], 1
jl 0x1400cbb36
mov edx, dword [rbp + 0x7f]
mov rcx, qword [rbp - 0x39]
call qword [rsi + Ordinal_50]
mov ebx, eax
test eax, eax
je 0x1400cbb36
mov rcx, qword [rbp - 0x39]
call qword [rsi + reloc.WLDAP32.dll_Ordinal_32]
mov rdi, r12
mov qword [rbp - 0x39], r12
jmp 0x1400cbb3a
mov rdi, qword [rbp - 0x39]
mov qword [rbp - 0x19], rdi
test ebx, ebx
jne 0x1400cbc78
nop word [rax + rax]
mov rsi, qword [rbp - 0x11]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x1d]
lea rax, [rbp - 0x21]
mov dword [rbp - 0x31], r12d
lea r8, [rbp - 0x31]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 7]
mov dword [rbp - 0x1d], r12d
mov rcx, rdi
mov dword [rbp - 0x21], r12d
mov dword [rbp + 0x77], r12d
call qword [rsi + Ordinal_41]
mov ebx, eax
test eax, eax
jne 0x1400cbc72
mov rax, qword [rbp - 1]
movsxd r13, dword [rbp - 0x49]
movsxd rdx, dword [rbp + 0x77]
mov esi, dword [rbp - 0x31]
mov r10, qword [rbp + 7]
lea r14, [rax + rax*8]
movsxd rax, dword [rbp + 0x7f]
add r14, rax
imul rcx, r14, 0x51
add rcx, r13
lea rax, [rdx + rcx*8]
add rcx, rax
test esi, esi
jle 0x1400cbbe9
mov rdx, r10
mov r8d, esi
nop dword [rax + rax]
movsx rax, byte [rdx]
lea rcx, [rcx + rcx*8]
add rcx, rax
lea rdx, [rdx + 1]
sub r8, 1
jne 0x1400cbbd0
movsxd rdx, dword [rbp + 0x77]
xor r15, rcx
mov rcx, qword [rbp + 0x67]
mov eax, dword [rcx + 0x1d8]
cmp eax, 1
jle 0x1400cbb50
mov rdi, qword [rcx + 0x1e0]
lea ebx, [rax - 1]
mov r9d, Ordinal_41
lea r11d, [r9 - 0x27]
cmp dword [r9 + rdi], esi
jg 0x1400cbc5c
movsxd r8, dword [r9 + rdi]
lea rcx, [r11 + r14*8]
add rcx, r14
lea rax, [rcx*8]
add rax, r13
add rcx, rax
lea rax, [rdx + rcx*8]
add rcx, rax
mov rax, r12
test r8, r8
jle 0x1400cbc59
movsx rdx, byte [rax + r10]
lea rcx, [rcx + rcx*8]
add rcx, rdx
inc rax
cmp rax, r8
jl 0x1400cbc41
movsxd rdx, dword [rbp + 0x77]
xor r15, rcx
inc r11
add r9, 0x28
sub rbx, 1
jne 0x1400cbc13
mov rdi, qword [rbp - 0x19]
jmp 0x1400cbb50
mov r13, qword [rbp + 0x67]
jmp 0x1400cbc7c
mov rsi, qword [rbp - 0x11]
test rdi, rdi
je 0x1400cbc87
mov rcx, rdi
call qword [rsi + reloc.WLDAP32.dll_Ordinal_32]
mov eax, dword [rbp - 0x49]
cmp ebx, 0x65
mov rdx, qword [rbp - 9]
cmove ebx, r12d
inc eax
inc rdx
mov dword [rbp - 0x49], eax
mov qword [rbp - 9], rdx
test ebx, ebx
je 0x1400cbab5
mov rcx, qword [rbp - 0x41]
call fcn.14005ab60
mov rdi, qword [rbp - 0x29]
mov rsi, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xa8]
mov rax, qword [rbp + 0x6f]
cmp rdi, r15
sete r12b
mov dword [rax], r12d
mov eax, ebx
add rsp, 0xb8
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret