Function at 0x140166f90
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rdi
push r12
push r14
mov eax, 0x170
call fcn.140189b00
sub rsp, rax
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x1d0]
mov r12, qword [rsp + 0x1e8]
mov rbx, rdx
mov rdx, qword [rsp + 0x1d8]
mov r14, r8
mov qword [rsp + 0xa0], rcx
mov rcx, qword [rsp + 0x1c0]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0xb8], rdx
xor edx, edx
shr r14, 3
cmp r14d, 0x14
mov qword [rsp + 0xb0], rax
mov rbp, r9
mov qword [rsp + 0x80], r9
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x70], r12
mov edi, edx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x88], 2
je 0x14016704f
cmp r14d, 0x1c
je 0x14016704f
cmp r14d, 0x20
je 0x14016704f
xor eax, eax
jmp 0x1401677ed
test r9, r9
mov qword [rsp + 0x168], rsi
jne 0x140167073
call fcn.1400dcc50
mov rcx, qword [rsp + 0x78]
xor edx, edx
mov rbp, rax
mov qword [rsp + 0x80], rax
mov eax, 0x200
cmp rbx, rax
cmovb rbx, rax
lea rax, [rbx + 0x3f]
mov rbx, qword [rsp + 0x1c8]
and rax, 0xffffffffffffffc0
test rbx, rbx
mov qword [rsp + 0x90], rax
je 0x1401670ab
movsxd rax, r14d
cmp rbx, rax
cmovb rcx, rdx
mov qword [rsp + 0x78], rcx
movsxd rsi, r14d
cmp rbx, rsi
cmova rbx, rsi
test rcx, rcx
mov qword [rsp + 0x1c8], rbx
je 0x1401670d5
mov rdx, rcx
lea rcx, [rsp + 0x108]
mov r8, rbx
call fcn.140042d30
call fcn.140121e60
test rax, rax
mov qword [rsp + 0x60], rax
je 0x1401677e3
mov qword [rsp + 0x160], r13
call fcn.1400ff3f0
test rax, rax
mov r13, rax
mov qword [rsp + 0x38], rax
je 0x1401677d1
mov rcx, rax
mov qword [rsp + 0x158], r15
call fcn.1400ff510
mov rcx, r13
call fcn.1400ff690
mov rcx, r13
mov rdi, rax
call fcn.1400ff690
mov rcx, r13
mov qword [rsp + 0x50], rax
call fcn.1400ff690
mov rcx, r13
mov r15, rax
call fcn.1400ff690
mov rcx, r13
mov qword [rsp + 0x58], rax
call fcn.1400ff690
mov rcx, r13
mov qword [rsp + 0xc0], rax
call fcn.1400ff690
mov rcx, r13
mov qword [rsp + 0x98], rax
call fcn.1400ff690
mov rcx, r13
mov qword [rsp + 0x68], rax
call fcn.1400ff690
mov qword [rsp + 0x48], rax
call fcn.1400bb2b0
mov r8, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
add r8d, 0xffffffff
mov rdx, rax
call fcn.140110e20
test eax, eax
je 0x1401677b5
nop
nop
nop
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, r12
call fcn.14016c3a0
add dword [rsp + 0x40], 1
test eax, eax
je 0x1401677b5
test rbx, rbx
je 0x1401671e7
cmp qword [rsp + 0x78], 0
je 0x1401671e7
xor eax, eax
mov ebx, eax
mov qword [rsp + 0x1c8], rax
jmp 0x140167204
lea rcx, [rsp + 0x108]
mov edx, r14d
call fcn.14009f5a0
test eax, eax
js 0x1401677b5
mov ebx, 1
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0xe8]
mov r8, rsi
call fcn.140042d30
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x128]
mov r8, rsi
call fcn.140042d30
lea r11, [rsi - 1]
test r11, r11
js 0x140167251
nop
add byte [rsp + r11 + 0xe8], 1
jne 0x140167251
sub r11, 1
jns 0x140167240
lea r8, [rsp + 0xc8]
lea rcx, [rsp + 0x108]
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbp
call fcn.1400dab10
test eax, eax
je 0x1401677b5
lea r8, [rsp + 0x128]
lea rcx, [rsp + 0xe8]
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbp
call fcn.1400dab10
test eax, eax
je 0x1401677b5
xor ecx, ecx
test r14d, r14d
jle 0x1401672d8
nop
nop
movzx eax, byte [rsp + rcx + 0x128]
add rcx, 1
xor byte [rsp + rcx + 0xc7], al
cmp rcx, rsi
jl 0x1401672c0
or byte [rsp + 0xc8], 0x80
mov r8, qword [rsp + 0x58]
or byte [rsp + rsi + 0xc7], 1
lea rcx, [rsp + 0xc8]
mov edx, r14d
call fcn.1400bb8c0
test rax, rax
je 0x1401677b5
mov rcx, qword [rsp + 0x58]
mov r9d, ebx
mov r8, r13
mov edx, reloc.WLDAP32.dll_Ordinal_50
mov qword [rsp + 0x20], r12
call fcn.14016c930
test eax, eax
jg 0x140167339
test eax, eax
jne 0x1401677b5
mov rbx, qword [rsp + 0x1c8]
jmp 0x1401671b0
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 2]
call fcn.14016c3a0
test eax, eax
je 0x1401677b5
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 3]
call fcn.14016c3a0
test eax, eax
je 0x1401677b5
mov rcx, qword [rsp + 0x90]
movabs rax, 0xcccccccccccccccd
xor r12d, r12d
add rcx, 0xffffffffffffffff
lea r13, [rsi - 1]
mul rcx
mov rbp, rdx
shr rbp, 7
nop
test r12d, r12d
je 0x1401673ac
mov rcx, qword [rsp + 0x70]
mov r8d, r12d
xor edx, edx
call fcn.14016c3a0
test eax, eax
je 0x1401677b0
xor edx, edx
mov rcx, r15
call fcn.1400bb830
xor ecx, ecx
test ebp, ebp
mov ebx, ecx
js 0x140167476
test r13, r13
mov rax, r13
js 0x1401673e0
nop
nop
add byte [rsp + rax + 0xe8], 1
jne 0x1401673e0
sub rax, 1
jns 0x1401673d0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rcx
lea r8, [rsp + 0xc8]
lea rcx, [rsp + 0xe8]
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call fcn.1400dab10
test eax, eax
je 0x1401677b0
lea rcx, [rsp + 0xc8]
mov r8, rdi
mov edx, r14d
call fcn.1400bb8c0
test rax, rax
je 0x1401677b0
lea r8d, [r14*8]
mov rdx, rdi
mov rcx, rdi
imul r8d, ebx
call fcn.140110e20
test eax, eax
je 0x1401677b0
mov r8, rdi
mov rdx, r15
mov rcx, r15
call fcn.140113c40
test eax, eax
je 0x1401677b0
add ebx, 1
mov ecx, 0
cmp ebx, ebp
jle 0x1401673c2
mov rdx, qword [rsp + 0x90]
mov rcx, r15
add edx, 0xffffffff
call fcn.1400bbd50
test eax, eax
je 0x1401677b0
mov rbx, qword [rsp + 0xc0]
mov rdx, r15
mov rcx, rbx
call fcn.1400bb720
test rax, rax
je 0x1401677b0
mov r8, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, rbx
call fcn.140113c40
test eax, eax
je 0x1401677b0
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call fcn.140110c30
test eax, eax
je 0x1401677b0
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x98]
mov r9, rdi
mov r8, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140152f90
test eax, eax
je 0x1401677b0
call fcn.1400bb2b0
mov rdx, qword [rsp + 0x98]
mov rcx, rdi
mov r8, rax
call fcn.140113b70
test eax, eax
je 0x1401677b0
mov rdx, rbx
mov rbx, qword [rsp + 0x68]
mov r8, rdi
mov rcx, rbx
call fcn.140113b70
test eax, eax
je 0x1401677b0
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1400bbb90
test eax, eax
js 0x14016757c
mov rbx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
mov r9d, 1
mov qword [rsp + 0x20], rbx
lea edx, [r9 + 0x31]
call fcn.14016c930
test eax, eax
jg 0x1401675ac
test eax, eax
jne 0x1401677b0
add r12d, 1
cmp r12d, 0x1000
jl 0x140167390
mov rbp, qword [rsp + 0x80]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x1c8]
jmp 0x1401671b0
mov edx, 2
mov rcx, rbx
lea r8d, [rdx - 1]
call fcn.14016c3a0
test eax, eax
je 0x1401677b0
call fcn.1400bb2b0
mov rbp, qword [rsp + 0x68]
mov r14, qword [rsp + 0x48]
mov rdx, rbp
mov rcx, r14
mov r8, rax
call fcn.140113b70
test eax, eax
je 0x1401677b0
mov r15, qword [rsp + 0x58]
mov r13, qword [rsp + 0x38]
mov r8, r14
xor edx, edx
mov rcx, rdi
mov r9, r15
mov qword [rsp + 0x20], r13
call fcn.140152f90
test eax, eax
je 0x1401677b5
mov edx, 2
mov rcx, r14
call fcn.1400bb830
test eax, eax
je 0x1401677b5
mov rcx, qword [rsp + 0x60]
mov r8, r13
mov rdx, rbp
call fcn.140121af0
test eax, eax
je 0x1401677b5
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov r9, rbp
mov qword [rsp + 0x28], rax
mov r8, rdi
mov rdx, r14
mov qword [rsp + 0x20], r13
call fcn.14014c7a0
test eax, eax
je 0x1401677b5
nop
nop
mov rcx, qword [rsp + 0x50]
cmp dword [rcx + 8], 1
jne 0x1401676d8
mov rax, qword [rcx]
cmp qword [rax], 1
jne 0x1401676d8
cmp dword [rcx + 0x10], 0
jne 0x1401676d8
call fcn.1400bb2b0
mov rdx, r14
mov rcx, r14
mov r8, rax
call fcn.140113c40
test eax, eax
je 0x1401677b5
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
add dword [rsp + 0x88], 1
mov qword [rsp + 0x28], rax
mov r9, rbp
mov r8, rdi
mov rdx, r14
mov qword [rsp + 0x20], r13
call fcn.14014c7a0
test eax, eax
jne 0x140167670
jmp 0x1401677b5
mov edx, 3
mov rcx, rbx
lea r8d, [rdx - 2]
call fcn.14016c3a0
test eax, eax
je 0x1401677b5
mov rbx, qword [rsp + 0xa0]
mov edi, 1
nop
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14016770e
call fcn.1400bb480
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14016771c
call fcn.1400bb480
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14016772a
call fcn.1400bb480
mov rcx, rbp
call fcn.1400bc180
mov rcx, r15
mov qword [rbx + 0x10], rax
call fcn.1400bc180
mov rcx, qword [rsp + 0x50]
mov qword [rbx + 0x18], rax
call fcn.1400bc180
cmp qword [rbx + 0x10], 0
mov qword [rbx + 0x20], rax
je 0x1401677ac
cmp qword [rbx + 0x18], 0
je 0x1401677ac
test rax, rax
je 0x1401677ac
mov rax, qword [rsp + 0xb8]
test rax, rax
je 0x140167773
mov dword [rax], r12d
mov rdx, qword [rsp + 0xb0]
test rdx, rdx
je 0x14016778a
mov rax, qword [rsp + 0x88]
mov dword [rdx], eax
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x1401677b9
lea rdx, [rsp + 0x108]
mov r8, rsi
mov rcx, rax
call fcn.140042d30
jmp 0x1401677b9
xor edi, edi
jmp 0x1401677b9
mov r13, qword [rsp + 0x38]
mov edi, dword [rsp + 0x30]
mov rcx, r13
call fcn.1400ff610
mov rcx, r13
call fcn.1400ff470
mov r15, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x60]
call fcn.140121aa0
mov r13, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x168]
mov eax, edi
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.140041910
add rsp, 0x170
pop r14
pop r12
pop rdi
pop rbp
pop rbx
ret