Function at 0x1400a0060
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0x78]
mov eax, 0x178
call fcn.140150d80
sub rsp, rax
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0xe0]
mov r12, qword [rbp + 0xf8]
mov r15, r8
xor r8d, r8d
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 0xf0]
shr r15, 3
mov rbx, rdx
mov rdx, qword [rbp + 0xd0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], rcx
mov rcx, qword [rbp + 0xe8]
lea eax, [r15 - 0x14]
mov rsi, r9
mov qword [rbp - 0x80], r9
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x40], rcx
mov qword [rsp + 0x68], r12
mov r13d, r8d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x40], r8d
mov qword [rbp - 0x68], 2
test eax, 0xfffffff3
jne 0x1400a0869
cmp r15d, 0x18
je 0x1400a0869
mov qword [rsp + 0x168], r14
test r9, r9
jne 0x1400a0128
call fcn.14005a4a0
mov rdx, qword [rbp - 0x70]
xor r8d, r8d
mov rsi, rax
mov qword [rbp - 0x80], rax
mov rcx, qword [rbp + 0xd8]
mov eax, 0x200
cmp rbx, rax
cmovb rbx, rax
lea rax, [rbx + 0x3f]
and rax, 0xffffffffffffffc0
mov qword [rbp - 0x60], rax
test rcx, rcx
je 0x1400a015a
movsxd rax, r15d
cmp rcx, rax
cmovb rdx, r8
mov qword [rbp - 0x70], rdx
movsxd r14, r15d
cmp rcx, r14
cmova rcx, r14
mov qword [rbp + 0xd8], rcx
test rdx, rdx
je 0x1400a017c
mov r8, rcx
lea rcx, [rbp + 0x10]
call fcn.140152980
call fcn.140090820
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1400a0420
mov qword [rsp + 0x170], rdi
call fcn.1400846d0
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400a040e
mov rcx, rax
call fcn.140084750
mov rcx, rdi
call fcn.140084640
mov r13, qword [rsp + 0x38]
mov rcx, r13
mov rdi, rax
call fcn.140084640
mov rcx, r13
mov qword [rsp + 0x60], rax
call fcn.140084640
mov rcx, r13
mov qword [rsp + 0x78], rax
call fcn.140084640
mov rcx, r13
mov qword [rsp + 0x48], rax
call fcn.140084640
mov rcx, r13
mov qword [rsp + 0x50], rax
call fcn.140084640
mov rcx, r13
mov qword [rbp - 0x58], rax
call fcn.140084640
mov rcx, r13
mov qword [rsp + 0x58], rax
call fcn.140084640
mov rbx, rax
mov qword [rbp - 0x78], rax
call fcn.140076ad0
mov r8, qword [rbp - 0x60]
mov rcx, rbx
mov rdx, rax
dec r8d
call fcn.140077230
test eax, eax
je 0x1400a03f5
mov ebx, dword [rsp + 0x40]
xor edx, edx
mov rcx, r12
mov r8d, ebx
call fcn.1400ad080
inc ebx
mov dword [rsp + 0x40], ebx
test eax, eax
je 0x1400a03f5
cmp qword [rbp + 0xd8], 0
je 0x1400a027d
cmp qword [rbp - 0x70], 0
je 0x1400a027d
xor eax, eax
mov ebx, eax
mov qword [rbp + 0xd8], rax
jmp 0x1400a0296
lea rcx, [rbp + 0x10]
mov edx, r15d
call fcn.14005f820
test eax, eax
js 0x1400a03f5
mov ebx, 1
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x10]
mov r8, r14
call fcn.140152980
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x30]
mov r8, r14
call fcn.140152980
lea rax, [r14 - 1]
test rax, rax
js 0x1400a02cb
nop
inc byte [rbp + rax - 0x10]
jne 0x1400a02cb
dec rax
jns 0x1400a02c0
lea r8, [rbp - 0x30]
lea rcx, [rbp + 0x10]
xor r9d, r9d
mov rdx, r14
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
call fcn.140082230
test eax, eax
je 0x1400a03f5
lea r8, [rbp + 0x30]
lea rcx, [rbp - 0x10]
xor r9d, r9d
mov rdx, r14
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
call fcn.140082230
test eax, eax
je 0x1400a03f5
xor eax, eax
mov edx, eax
test r15d, r15d
jle 0x1400a0393
cmp r15d, 0x20
jb 0x1400a0393
mov r8d, eax
mov eax, r15d
and eax, 0x8000001f
jge 0x1400a0340
dec eax
or eax, 0xffffffe0
inc eax
mov r9d, r15d
sub r9d, eax
nop word [rax + rax]
movsxd rax, r8d
add rdx, 0x20
movdqu xmm0, xmmword [rbp + rax - 0x30]
movdqu xmm1, xmmword [rbp + rax + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x30], xmm1
lea eax, [r8 + 0x10]
add r8d, 0x20
movsxd rcx, eax
movdqu xmm0, xmmword [rbp + rcx - 0x30]
movdqu xmm1, xmmword [rbp + rcx + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x30], xmm1
cmp r8d, r9d
jl 0x1400a0350
cmp rdx, r14
jge 0x1400a03b1
nop dword [rax + rax]
movzx eax, byte [rbp + rdx + 0x30]
inc rdx
xor byte [rbp + rdx - 0x31], al
cmp rdx, r14
jl 0x1400a03a0
or byte [rbp - 0x30], 0x80
mov r8, qword [rsp + 0x48]
or byte [rbp + r14 - 0x31], 1
lea rcx, [rbp - 0x30]
mov edx, r15d
call fcn.140075fb0
test rax, rax
je 0x1400a03f5
mov rcx, qword [rsp + 0x48]
mov r9d, ebx
mov r8, r13
mov edx, reloc.WLDAP32.dll_Ordinal_50
mov qword [rsp + 0x20], r12
call fcn.1400ad3a0
test eax, eax
jg 0x1400a0430
je 0x1400a0240
mov r13d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.140084580
mov rcx, qword [rsp + 0x38]
call fcn.140084600
mov rcx, qword [rsp + 0x70]
call fcn.1400907d0
mov rdi, qword [rsp + 0x170]
mov r14, qword [rsp + 0x168]
mov eax, r13d
jmp 0x1400a086b
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 2]
call fcn.1400ad080
test eax, eax
je 0x1400a03f5
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 3]
call fcn.1400ad080
test eax, eax
je 0x1400a03f5
mov rcx, qword [rbp - 0x60]
mov rbx, qword [rsp + 0x78]
movabs rax, 0xcccccccccccccccd
dec rcx
xor r13d, r13d
lea rsi, [r14 - 1]
mul rcx
mov r12, rdx
shr r12, 7
nop dword [rax]
test r13d, r13d
je 0x1400a049c
mov rcx, qword [rsp + 0x68]
mov r8d, r13d
xor edx, edx
call fcn.1400ad080
test eax, eax
je 0x1400a03f5
xor edx, edx
mov rcx, rbx
call fcn.1400769f0
xor ecx, ecx
mov ebx, ecx
test r12d, r12d
js 0x1400a0553
mov rax, rsi
test rsi, rsi
js 0x1400a04cb
nop dword [rax + rax]
inc byte [rbp + rax - 0x10]
jne 0x1400a04cb
dec rax
jns 0x1400a04c0
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x28], rcx
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x10]
xor r9d, r9d
mov rdx, r14
mov qword [rsp + 0x20], rax
call fcn.140082230
test eax, eax
je 0x1400a03f5
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, r15d
call fcn.140075fb0
test rax, rax
je 0x1400a03f5
lea r8d, [r15*8]
mov rdx, rdi
mov rcx, rdi
imul r8d, ebx
call fcn.140077230
test eax, eax
je 0x1400a03f5
mov rdx, qword [rsp + 0x78]
mov r8, rdi
mov rcx, rdx
call fcn.1400849f0
test eax, eax
je 0x1400a03f5
inc ebx
mov ecx, 0
cmp ebx, r12d
jle 0x1400a04b3
mov rdx, qword [rbp - 0x60]
mov rbx, qword [rsp + 0x78]
dec edx
mov rcx, rbx
call fcn.1400766c0
test eax, eax
je 0x1400a03f5
mov rcx, qword [rsp + 0x50]
mov rdx, rbx
call fcn.1400764c0
test rax, rax
je 0x1400a03f5
mov rdx, qword [rsp + 0x50]
mov r8, qword [rbp - 0x78]
mov rcx, rdx
call fcn.1400849f0
test eax, eax
je 0x1400a03f5
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call fcn.1400773e0
test eax, eax
je 0x1400a03f5
mov rax, qword [rsp + 0x38]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rbp - 0x58]
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.14008cce0
test eax, eax
je 0x1400a03f5
call fcn.140076ad0
mov rdx, qword [rbp - 0x58]
mov rcx, rdi
mov r8, rax
call fcn.140084aa0
test eax, eax
je 0x1400a03f5
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov r8, rdi
call fcn.140084aa0
test eax, eax
je 0x1400a03f5
mov rdx, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x58]
call fcn.1400761f0
test eax, eax
js 0x1400a064c
mov rax, qword [rsp + 0x68]
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
mov r9d, 1
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x31]
call fcn.1400ad3a0
test eax, eax
jg 0x1400a066f
jne 0x1400a03f5
inc r13d
cmp r13d, 0x1000
jl 0x1400a0480
mov rsi, qword [rbp - 0x80]
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x38]
jmp 0x1400a0240
mov rbx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx - 1]
mov rcx, rbx
call fcn.1400ad080
test eax, eax
je 0x1400a03f5
call fcn.140076ad0
mov r15, qword [rsp + 0x58]
mov r12, qword [rbp - 0x78]
mov rdx, r15
mov rcx, r12
mov r8, rax
call fcn.140084aa0
test eax, eax
je 0x1400a03f5
mov rsi, qword [rsp + 0x38]
mov r9, qword [rsp + 0x48]
mov r8, r12
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.14008cce0
test eax, eax
je 0x1400a03f5
mov edx, 2
mov rcx, r12
call fcn.1400769f0
test eax, eax
je 0x1400a03f5
mov rcx, qword [rsp + 0x70]
mov r8, rsi
mov rdx, r15
call fcn.1400908a0
test eax, eax
je 0x1400a03f5
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov r9, r15
mov qword [rsp + 0x28], rax
mov r8, rdi
mov rdx, r12
mov qword [rsp + 0x20], rsi
call fcn.14008dc90
test eax, eax
je 0x1400a03f5
nop dword [rax]
mov rcx, qword [rsp + 0x60]
cmp dword [rcx + 8], 1
jne 0x1400a0793
mov rax, qword [rcx]
cmp qword [rax], 1
jne 0x1400a0793
cmp dword [rcx + 0x10], 0
jne 0x1400a0793
call fcn.140076ad0
mov rdx, r12
mov rcx, r12
mov r8, rax
call fcn.1400849f0
test eax, eax
je 0x1400a03f5
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
inc dword [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov r9, r15
mov r8, rdi
mov rdx, r12
mov qword [rsp + 0x20], rsi
call fcn.14008dc90
test eax, eax
jne 0x1400a0730
jmp 0x1400a03f5
mov edx, 3
mov rcx, rbx
lea r8d, [rdx - 2]
call fcn.1400ad080
test eax, eax
je 0x1400a03f5
mov rbx, qword [rbp - 0x50]
mov dword [rsp + 0x30], 1
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400a07ce
call fcn.140076610
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400a07dc
call fcn.140076610
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400a07ea
call fcn.140076610
mov rcx, r15
call fcn.1400765a0
mov rcx, qword [rsp + 0x48]
mov qword [rbx + 0x10], rax
call fcn.1400765a0
mov rcx, qword [rsp + 0x60]
mov qword [rbx + 0x18], rax
call fcn.1400765a0
cmp qword [rbx + 0x10], 0
mov qword [rbx + 0x20], rax
je 0x1400a0861
cmp qword [rbx + 0x18], 0
je 0x1400a0861
test rax, rax
je 0x1400a0861
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x1400a0831
mov dword [rax], r13d
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x1400a0840
mov rax, qword [rbp - 0x68]
mov dword [rdx], eax
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x1400a03f5
lea rdx, [rbp + 0x10]
mov r8, r14
mov rcx, rax
call fcn.140152980
jmp 0x1400a03f5
xor r13d, r13d
jmp 0x1400a03fa
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140150a60
add rsp, 0x178
pop r15
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret