Function at 0x180050eb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa0
mov rax, qword [0x1800c8010]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov esi, dword [rdx + 0x28]
xor eax, eax
mov rdi, rdx
mov qword [rbp + 0xf], rax
mov r14, rcx
mov qword [rbp - 0x11], rax
add rsi, 0x40
mov dword [rbp - 9], eax
lea ecx, [rax + 0x40]
mov qword [rbp - 1], rax
mov rdx, rsi
mov dword [rbp - 0x51], eax
mov r15, r8
mov ebx, eax
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r13, rax
test rax, rax
je 0x180051215
mov rcx, rax
call fcn.180067754
mov eax, dword [r14 + 0x38]
mov dword [r13 + 4], eax
mov eax, dword [r14 + 0x3c]
mov dword [r13 + 8], eax
mov dword [r13 + 0x18], 0x84de5360
mov eax, dword [r14 + 0x2c]
mov dword [r13 + 0xc], eax
mov rax, qword [r14 + 0x30]
mov qword [r13 + 0x10], rax
mov eax, dword [rdi]
mov dword [r13 + 0x1c], eax
mov eax, dword [rdi + 4]
mov dword [r13 + 0x20], eax
mov eax, dword [rdi + 8]
mov dword [r13 + 0x24], eax
mov eax, dword [rdi + 0xc]
mov dword [r13 + 0x28], eax
mov eax, dword [rdi + 0x10]
mov dword [r13 + 0x2c], eax
mov eax, dword [rdi + 0x14]
mov dword [r13 + 0x30], eax
mov eax, dword [rdi + 0x18]
mov dword [r13 + 0x34], eax
mov eax, dword [rdi + 0x28]
mov dword [r13 + 0x38], eax
mov eax, dword [rdi + 0x28]
test eax, eax
je 0x180050f99
mov rdx, qword [rdi + 0x20]
lea rcx, [r13 + 0x3c]
mov r8d, eax
call fcn.180059790
mov rdx, rsi
mov rcx, r13
call fcn.180030090
lea r8, [rbp + 0xf]
mov rdx, rsi
mov rcx, r13
call fcn.18002fa60
xor esi, esi
mov r12, rax
mov edi, esi
nop word [rax + rax]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x180050fd2
call fcn.18000cfe0
mov qword [rbp - 0x11], rsi
lea rax, [rbp - 9]
mov rdx, r12
lea r9, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov rcx, r14
call fcn.180050a70
test eax, eax
jne 0x180051086
movdqa xmm0, xmmword [0x1800bb6e0]
mov eax, 0x10
psubb xmm0, xmmword [0x1800bacd0]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x39], 0x4b42
mov byte [rbp - 0x37], bl
nop word [rax + rax]
add byte [rbp + rax - 0x49], 0xf7
inc rax
cmp rax, 0x12
jb 0x180051020
mov qword [rbp - 0x21], rsi
lea rax, [rbp - 0x49]
mov qword [rbp - 0x19], 0xf
mov r8, 0xffffffffffffffff
mov byte [rbp - 0x31], bl
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x180051050
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x31]
call fcn.18000b0f0
lea rdx, [rbp - 0x31]
call fcn.18000a540
mov ecx, 0x64
call rax
inc edi
cmp edi, 3
jl 0x180050fc0
jmp 0x180051204
test r12, r12
je 0x180051096
mov rcx, r12
call fcn.18000cfe0
mov r12, rsi
mov rcx, r13
call fcn.18000cfe0
mov edx, dword [rbp - 9]
lea r8, [rbp - 1]
mov rcx, qword [rbp - 0x11]
mov r13, rsi
call fcn.18002fd30
mov rsi, qword [rbp - 1]
xor dil, dil
mov dword [rbp + 7], 0xcc9933dd
mov rbx, rax
test rax, rax
je 0x18005126f
test rsi, rsi
je 0x180051124
movsd xmm1, qword [0x1800ba7c8]
lea rcx, [0x1800a7d98]
movq rdx, xmm1
call fcn.18000ba10
xor r8d, r8d
test rsi, rsi
je 0x180051124
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8 + rbx]
mov rax, r8
and eax, 3
movzx ecx, byte [rbp + rax + 7]
xor cl, dil
movzx edi, dl
xor cl, dl
mov byte [r8 + rbx], cl
inc r8
cmp r8, rsi
jb 0x180051100
mov eax, dword [rbx + 0x38]
add rax, 0x3c
cmp qword [rbp - 1], rax
jb 0x180051204
mov eax, dword [r14 + 0x38]
cmp dword [rbx + 4], eax
jne 0x180051204
mov eax, dword [r14 + 0x3c]
cmp dword [rbx + 8], eax
jne 0x180051204
cmp dword [rbx + 0x18], 0x84de5360
jne 0x180051204
mov eax, dword [r14 + 0x2c]
cmp dword [rbx + 0xc], eax
jne 0x180051204
mov rax, qword [r14 + 0x30]
cmp qword [rbx + 0x10], rax
jne 0x180051204
mov eax, dword [rbx + 0x1c]
lea r14, [rbx + 0x3c]
mov dword [r15], eax
mov eax, dword [rbx + 0x20]
mov dword [r15 + 4], eax
mov eax, dword [rbx + 0x24]
mov dword [r15 + 8], eax
mov eax, dword [rbx + 0x28]
mov dword [r15 + 0xc], eax
mov eax, dword [rbx + 0x2c]
mov dword [r15 + 0x10], eax
mov eax, dword [rbx + 0x30]
mov dword [r15 + 0x14], eax
mov eax, dword [rbx + 0x34]
mov dword [r15 + 0x18], eax
mov rcx, qword [r15 + 0x20]
mov edi, dword [rbx + 0x38]
test rcx, rcx
je 0x1800511c4
call fcn.18000cfe0
xor esi, esi
mov qword [r15 + 0x20], rsi
jmp 0x1800511c6
xor esi, esi
mov dword [r15 + 0x28], esi
test r14, r14
je 0x1800511fd
test edi, edi
je 0x1800511fd
lea rdx, [rdi + 1]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r15 + 0x20], rax
test rax, rax
je 0x180051204
mov r8, rdi
mov rdx, r14
mov rcx, rax
call fcn.180059790
mov dword [r15 + 0x28], edi
mov dword [rbp - 0x51], 1
test r12, r12
je 0x180051211
mov rcx, r12
call fcn.18000cfe0
mov r12d, dword [rbp - 0x51]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x18005122b
call fcn.18000cfe0
mov qword [rbp - 0x11], 0
test r13, r13
je 0x180051238
mov rcx, r13
call fcn.18000cfe0
test rbx, rbx
je 0x180051245
mov rcx, rbx
call fcn.18000cfe0
mov eax, r12d
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800555d0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r12d, r13d
jmp 0x180051215