Function at 0x140015120
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov r13, r8
mov rdi, rdx
mov r12, rcx
mov dword [rsp + 0x20], 0
mov qword [rdx], 0
mov qword [rdx + 8], 0
mov qword [rdx + 0x10], 0
mov dword [rsp + 0x20], 1
mov r8, r9
lea rdx, [rbp - 0x70]
call fcn.140015470
nop
mov rcx, qword [rbp + 0x70]
mov rbx, qword [rcx]
mov qword [rsp + 0x28], rbx
mov rax, qword [rcx + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x38], rax
test rbx, rbx
je 0x1400151a9
lock inc dword [rbx]
mov dword [rsp + 0x24], 0
mov esi, 0xffffffff
cmp qword [r13 + 0x10], 0
jle 0x140015411
xor r15d, r15d
lea r14, [0x14025ad40]
nop dword [rax + rax]
movsxd r9, dword [r12 + 4]
mov r8, r15
lea rdx, [rbp - 0x40]
mov rcx, r13
call fcn.14003f170
nop
mov r9, rax
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x58]
mov rcx, r12
call fcn.140016040
nop
mov rdx, rax
mov rcx, rdi
call fcn.14003de70
nop
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140015223
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140015223
mov rcx, qword [rbp - 0x58]
call fcn.1402275a0
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140015240
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140015240
mov rcx, qword [rbp - 0x40]
call fcn.1402275a0
movsxd r9, dword [r12 + 4]
mov r8, r15
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14003f170
mov r13, rax
mov rcx, qword [rax + 8]
mov rbx, r14
test rcx, rcx
cmovne rbx, rcx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
cmovne r14, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor eax, eax
mov qword [rsp + 0x50], rax
or dword [rsp + 0x20], 2
xor edi, edi
mov rax, qword [r13 + 0x10]
cmp qword [rsp + 0x38], rax
cmovl rax, qword [rsp + 0x38]
test rax, rax
jle 0x1400152f0
xor edx, edx
sub r14, rbx
movzx eax, byte [r14 + rbx]
xor al, byte [rbx]
mov byte [rbp + 0x70], al
mov qword [rsp + 0x70], 1
lea rax, [rbp + 0x70]
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14003ec90
inc edi
lea rbx, [rbx + 1]
mov rax, qword [r13 + 0x10]
movsxd rdx, edi
cmp qword [rsp + 0x38], rax
cmovl rax, qword [rsp + 0x38]
cmp rdx, rax
jl 0x1400152a1
mov rbx, qword [rsp + 0x50]
jmp 0x1400152f3
mov rbx, rdi
lea rcx, [rsp + 0x40]
call fcn.140042b10
test al, al
je 0x140015305
xor ecx, ecx
jmp 0x140015318
lea rcx, [0x14025ad40]
mov rax, qword [rsp + 0x48]
test rax, rax
cmovne rcx, rax
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rcx
movsxd r8, dword [r12 + 4]
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x60]
mov rdx, r15
mov rdi, qword [rbp + 0x58]
mov rcx, rdi
call fcn.140040370
and dword [rsp + 0x20], 0xfffffffd
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140015368
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140015368
mov rcx, qword [rsp + 0x40]
call fcn.1402275a0
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140015385
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140015385
mov rcx, qword [rbp - 0x28]
call fcn.1402275a0
movsxd r9, dword [r12 + 4]
mov r8, r15
lea rdx, [rbp - 0x10]
mov r13, qword [rbp + 0x60]
mov rcx, r13
call fcn.14003f170
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov qword [rax], rcx
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x30], rcx
mov qword [rax + 8], rdx
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x38], rcx
mov qword [rax + 0x10], rdx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400153ee
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400153ee
mov rcx, qword [rbp - 0x10]
call fcn.1402275a0
mov r14d, dword [rsp + 0x24]
add r14d, dword [r12 + 4]
mov dword [rsp + 0x24], r14d
movsxd r15, r14d
cmp r15, qword [r13 + 0x10]
lea r14, [0x14025ad40]
jl 0x1400151d0
test rbx, rbx
je 0x14001542a
mov eax, esi
lock xadd dword [rbx], eax
cmp eax, 1
jne 0x14001542a
mov rcx, rbx
call fcn.1402275a0
nop
mov rax, qword [rbp - 0x70]
test rax, rax
je 0x140015445
lock xadd dword [rax], esi
cmp esi, 1
jne 0x140015445
mov rcx, qword [rbp - 0x70]
call fcn.1402275a0
mov rax, rdi
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret