Function at 0x1400d7e60
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
mov eax, 0x160
call fcn.1401127d0
sub rsp, rax
mov rax, qword [0x1401bd830]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0xd0]
xor r13d, r13d
mov rdi, qword [rbp + 0xc0]
mov r14, r8
mov r12, qword [rbp + 0xe8]
mov r15, r9
shr r14, 3
mov rbx, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0xe0]
mov qword [rbp - 0x48], rax
lea eax, [r14 - 0x14]
mov qword [rbp - 0x58], rcx
mov rcx, qword [rbp + 0xd8]
mov qword [rbp - 0x78], r9
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x50], rcx
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x34], r13d
mov qword [rbp - 0x68], 2
test eax, 0xfffffff3
jne 0x1400d8689
cmp r14d, 0x18
je 0x1400d8689
test r9, r9
jne 0x1400d7f19
call fcn.140075d70
mov r15, rax
mov qword [rbp - 0x78], rax
mov rcx, qword [rbp + 0xc8]
mov eax, 0x200
cmp rbx, rax
mov qword [rsp + 0x158], rsi
cmovae rax, rbx
add rax, 0x3f
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x78], rax
test rcx, rcx
je 0x1400d7f58
movsxd rax, r14d
cmp rcx, rax
jae 0x1400d7f58
mov qword [rsp + 0x70], r13
movsxd rsi, r14d
jmp 0x1400d7f82
movsxd rsi, r14d
cmp rcx, rsi
cmova rcx, rsi
mov qword [rbp + 0xc8], rcx
test rdi, rdi
je 0x1400d7f82
mov r8, rcx
mov rdx, rdi
lea rcx, [rbp + 0x28]
call fcn.140113bc0
mov qword [rsp + 0x70], rdi
call fcn.1400d0120
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400d8247
call fcn.14009d6a0
mov qword [rsp + 0x40], rax
mov rbx, rax
test rax, rax
je 0x1400d823d
mov rcx, rax
call fcn.14009d720
mov rcx, rbx
call fcn.14009d540
mov rcx, rbx
mov rdi, rax
call fcn.14009d540
mov rcx, rbx
mov qword [rsp + 0x60], rax
call fcn.14009d540
mov rcx, rbx
mov qword [rbp - 0x80], rax
call fcn.14009d540
mov rcx, rbx
mov qword [rsp + 0x38], rax
call fcn.14009d540
mov rcx, rbx
mov qword [rsp + 0x48], rax
call fcn.14009d540
mov rcx, rbx
mov qword [rbp - 0x60], rax
call fcn.14009d540
mov rcx, rbx
mov qword [rsp + 0x58], rax
call fcn.14009d540
mov rbx, qword [rsp + 0x78]
mov r13, rax
mov qword [rbp - 0x70], rax
call fcn.140062260
mov rdx, rax
lea r8d, [rbx - 1]
mov rcx, r13
call fcn.14008e770
test eax, eax
je 0x1400d8224
nop word [rax + rax]
mov r13, qword [rsp + 0x40]
nop word [rax + rax]
mov ebx, dword [rsp + 0x34]
xor edx, edx
mov r8d, ebx
mov rcx, r12
call fcn.1400dcd10
inc ebx
mov dword [rsp + 0x34], ebx
test eax, eax
je 0x1400d8224
cmp qword [rbp + 0xc8], 0
je 0x1400d808c
cmp qword [rsp + 0x70], 0
je 0x1400d808c
xor ebx, ebx
mov qword [rbp + 0xc8], rbx
jmp 0x1400d80a5
mov edx, r14d
lea rcx, [rbp + 0x28]
call fcn.1400697e0
test eax, eax
js 0x1400d8224
mov ebx, 1
mov r8, rsi
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 8]
call fcn.140113bc0
mov r8, rsi
lea rdx, [rbp + 0x28]
lea rcx, [rbp - 0x18]
call fcn.140113bc0
lea rax, [rsi - 1]
test rax, rax
js 0x1400d80dd
nop
add byte [rbp + rax + 8], 1
jne 0x1400d80dd
sub rax, 1
jns 0x1400d80d0
mov qword [rsp + 0x28], 0
lea r8, [rbp - 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, rsi
lea rcx, [rbp + 0x28]
call fcn.140075290
test eax, eax
je 0x1400d8224
mov qword [rsp + 0x28], 0
lea r8, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, rsi
lea rcx, [rbp + 8]
call fcn.140075290
test eax, eax
je 0x1400d8224
xor ecx, ecx
test r14d, r14d
jle 0x1400d81c1
cmp r14d, 0x40
jb 0x1400d81c1
mov edx, r14d
and edx, 0x8000003f
jge 0x1400d8156
dec edx
or edx, 0xffffffc0
inc edx
mov eax, r14d
sub eax, edx
movsxd rdx, eax
nop
movdqu xmm0, xmmword [rbp + rcx - 0x38]
movdqu xmm1, xmmword [rbp + rcx - 0x18]
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x38], xmm1
movdqu xmm0, xmmword [rbp + rcx - 0x28]
movdqu xmm1, xmmword [rbp + rcx - 8]
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x28], xmm1
movdqu xmm0, xmmword [rbp + rcx - 0x18]
movdqu xmm1, xmmword [rbp + rcx + 8]
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x18], xmm1
movdqu xmm0, xmmword [rbp + rcx - 8]
movdqu xmm1, xmmword [rbp + rcx + 0x18]
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 8], xmm1
add rcx, 0x40
cmp rcx, rdx
jl 0x1400d8160
cmp rcx, rsi
jge 0x1400d81e1
nop word [rax + rax]
movzx eax, byte [rbp + rcx - 0x18]
xor byte [rbp + rcx - 0x38], al
inc rcx
cmp rcx, rsi
jl 0x1400d81d0
or byte [rbp - 0x38], 0x80
lea rcx, [rbp - 0x38]
mov r8, qword [rsp + 0x38]
mov edx, r14d
or byte [rbp + rsi - 0x39], 1
call fcn.140061430
test rax, rax
je 0x1400d8224
mov rcx, qword [rsp + 0x38]
mov r9d, ebx
mov r8, r13
mov qword [rsp + 0x20], r12
mov edx, reloc.WLDAP32.dll_Ordinal_50
call fcn.1400dd250
test eax, eax
jg 0x1400d8257
je 0x1400d8050
mov r13d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.14009d420
mov rcx, qword [rsp + 0x40]
call fcn.14009d4a0
mov rcx, qword [rsp + 0x68]
call fcn.1400d00d0
mov rsi, qword [rsp + 0x158]
mov eax, r13d
jmp 0x1400d868b
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 2]
call fcn.1400dcd10
test eax, eax
je 0x1400d8224
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 3]
call fcn.1400dcd10
test eax, eax
je 0x1400d8224
mov rcx, qword [rsp + 0x78]
lea r15, [rsi - 1]
mov rbx, qword [rbp - 0x80]
dec rcx
movabs rax, 0xcccccccccccccccd
xor r13d, r13d
mul rcx
mov r12, rdx
shr r12, 7
test r13d, r13d
je 0x1400d82c0
mov rcx, qword [rsp + 0x50]
mov r8d, r13d
xor edx, edx
call fcn.1400dcd10
test eax, eax
je 0x1400d8224
xor edx, edx
mov rcx, rbx
call fcn.140062180
xor ebx, ebx
test r12d, r12d
js 0x1400d8373
mov rax, r15
test r15, r15
js 0x1400d82ed
nop dword [rax]
add byte [rbp + rax + 8], 1
jne 0x1400d82ed
sub rax, 1
jns 0x1400d82e0
mov rax, qword [rbp - 0x78]
lea r8, [rbp - 0x38]
mov qword [rsp + 0x28], 0
lea rcx, [rbp + 8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, rsi
call fcn.140075290
test eax, eax
je 0x1400d8224
mov r8, rdi
lea rcx, [rbp - 0x38]
mov edx, r14d
call fcn.140061430
test rax, rax
je 0x1400d8224
lea r8d, [r14*8]
mov rdx, rdi
imul r8d, ebx
mov rcx, rdi
call fcn.14008e770
test eax, eax
je 0x1400d8224
mov rdx, qword [rbp - 0x80]
mov r8, rdi
mov rcx, rdx
call fcn.1400cbe90
test eax, eax
je 0x1400d8224
inc ebx
cmp ebx, r12d
jle 0x1400d82d5
mov rdx, qword [rsp + 0x78]
mov rbx, qword [rbp - 0x80]
dec edx
mov rcx, rbx
call fcn.140061db0
test eax, eax
je 0x1400d8224
mov rcx, qword [rsp + 0x48]
mov rdx, rbx
call fcn.140061b00
test rax, rax
je 0x1400d8224
mov rdx, qword [rsp + 0x48]
mov r8, qword [rbp - 0x70]
mov rcx, rdx
call fcn.1400cbe90
test eax, eax
je 0x1400d8224
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14008e910
test eax, eax
je 0x1400d8224
mov rax, qword [rsp + 0x40]
mov r9, rdi
mov r8, qword [rsp + 0x48]
xor ecx, ecx
mov rdx, qword [rbp - 0x60]
mov qword [rsp + 0x20], rax
call fcn.1400cfa60
test eax, eax
je 0x1400d8224
call fcn.140062260
mov rdx, qword [rbp - 0x60]
mov r8, rax
mov rcx, rdi
call fcn.1400cbf40
test eax, eax
je 0x1400d8224
mov rdx, qword [rsp + 0x48]
mov r8, rdi
mov rcx, qword [rsp + 0x58]
call fcn.1400cbf40
test eax, eax
je 0x1400d8224
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rsp + 0x58]
call fcn.140061760
test eax, eax
js 0x1400d846c
mov rax, qword [rsp + 0x50]
mov r9d, 1
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x31]
call fcn.1400dd250
test eax, eax
jg 0x1400d848a
jne 0x1400d8224
inc r13d
cmp r13d, 0x1000
jl 0x1400d82a4
mov r15, qword [rbp - 0x78]
mov r12, qword [rsp + 0x50]
jmp 0x1400d8040
mov rbx, qword [rsp + 0x50]
mov edx, 2
mov rcx, rbx
lea r8d, [rdx - 1]
call fcn.1400dcd10
test eax, eax
je 0x1400d8224
call fcn.140062260
mov r15, qword [rsp + 0x58]
mov r8, rax
mov r12, qword [rbp - 0x70]
mov rdx, r15
mov rcx, r12
call fcn.1400cbf40
test eax, eax
je 0x1400d8224
mov r14, qword [rsp + 0x40]
mov r8, r12
mov r9, qword [rsp + 0x38]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], r14
call fcn.1400cfa60
test eax, eax
je 0x1400d8224
mov edx, 2
mov rcx, r12
call fcn.140062180
test eax, eax
je 0x1400d8224
mov rcx, qword [rsp + 0x68]
mov r8, r14
mov rdx, r15
call fcn.1400d01a0
test eax, eax
je 0x1400d8224
mov rax, qword [rsp + 0x68]
mov r9, r15
mov rcx, qword [rsp + 0x60]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], r14
call fcn.1400b60b0
test eax, eax
je 0x1400d8224
nop word [rax + rax]
mov rcx, qword [rsp + 0x60]
cmp dword [rcx + 8], 1
jne 0x1400d85b3
mov rax, qword [rcx]
cmp qword [rax], 1
jne 0x1400d85b3
cmp dword [rcx + 0x10], 0
jne 0x1400d85b3
call fcn.140062260
mov r8, rax
mov rdx, r12
mov rcx, r12
call fcn.1400cbe90
test eax, eax
je 0x1400d8224
mov rax, qword [rsp + 0x68]
mov r9, r15
mov rcx, qword [rsp + 0x60]
mov r8, rdi
inc dword [rbp - 0x68]
mov rdx, r12
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call fcn.1400b60b0
test eax, eax
jne 0x1400d8550
jmp 0x1400d8224
mov edx, 3
mov rcx, rbx
lea r8d, [rdx - 2]
call fcn.1400dcd10
test eax, eax
je 0x1400d8224
mov rbx, qword [rbp - 0x58]
mov dword [rsp + 0x30], 1
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400d85ee
call fcn.140061d10
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400d85fc
call fcn.140061d10
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400d860a
call fcn.140061d10
mov rcx, r15
call fcn.140061be0
mov rcx, qword [rsp + 0x38]
mov qword [rbx + 0x10], rax
call fcn.140061be0
mov rcx, qword [rsp + 0x60]
mov qword [rbx + 0x18], rax
call fcn.140061be0
cmp qword [rbx + 0x10], 0
mov qword [rbx + 0x20], rax
je 0x1400d8681
cmp qword [rbx + 0x18], 0
je 0x1400d8681
test rax, rax
je 0x1400d8681
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x1400d8651
mov dword [rax], r13d
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x1400d8660
mov rax, qword [rbp - 0x68]
mov dword [rdx], eax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x1400d8224
mov r8, rsi
lea rdx, [rbp + 0x28]
mov rcx, rax
call fcn.140113bc0
jmp 0x1400d8224
xor r13d, r13d
jmp 0x1400d8229
xor eax, eax
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140111cf0
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret