Function at 0x180005430
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x180087020]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov r15, rcx
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x20], rdx
mov dword [rbp - 0x18], 0x6ced3417
mov dword [rbp - 0x14], 0xee5f0607
mov dword [rbp - 0x10], 0x9d6343f
mov ecx, dword [0x180089430]
mov rax, qword gs:[0x58]
mov rsi, qword [rax + rcx*8]
mov ecx, 0x5ec
mov eax, dword [rcx + rsi]
test al, 1
jne 0x1800054ce
or eax, 1
mov dword [rcx + rsi], eax
mov eax, 0x3d8
mov ebx, eax
mov byte [rax + rsi + 0xc], 1
movsd xmm0, qword [rbp - 0x18]
movsd qword [rax + rsi], xmm0
mov eax, dword [rbp - 0x10]
mov dword [rbx + rsi + 8], eax
lea rcx, [0x180068ac0]
call fcn.18003f1a4
nop
jmp 0x1800054d3
mov ebx, 0x3d8
lea r9, [rsi + rbx]
xor r12d, r12d
cmp byte [r9 + 0xc], r12b
je 0x180005510
mov edx, r12d
movabs r8, 0x8719637309815153
nop dword [rax]
movzx ecx, dl
and cl, 7
shl cl, 3
mov rax, r8
shr rax, cl
xor byte [rdx + r9], al
inc rdx
cmp rdx, 0xc
jb 0x1800054f0
mov byte [r9 + 0xc], r12b
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], 0xf
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [r9 + r8], r12b
jne 0x180005530
mov rdx, r9
lea rcx, [rbp - 0x60]
call fcn.180002e80
mov r14, rdi
cmp qword [rdi + 0x18], 8
jb 0x180005552
mov r14, qword [rdi]
lea rdx, [rbp - 0x60]
mov ecx, 1
call fcn.1800122a0
mov rcx, r14
call rax
mov r14d, eax
call fcn.180045878
cmp eax, 0x4a
jne 0x180005578
add dword [0x180087be8], eax
test r14d, r14d
je 0x180005697
mov ecx, 0x62c
mov eax, dword [rcx + rsi]
test al, 1
jne 0x1800055b1
or eax, 1
mov dword [rcx + rsi], eax
mov eax, 0x5f0
mov r14d, eax
mov dword [rax + rsi], 0x19dd0a8
lea rcx, [0x180068a90]
call fcn.18003f1a4
nop
jmp 0x1800055b7
mov r14d, 0x5f0
lea rdx, [rsi + r14]
cmp byte [rdx + 3], 0
je 0x1800055d0
xor byte [rdx], 0xe7
xor byte [rdx + 1], 0x9b
xor byte [rdx + 2], 0x9d
mov byte [rdx + 3], 0
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1800055e4
mov r8, rbx
lea rcx, [rbp - 0x60]
call fcn.180002e80
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x40]
call fcn.180010ef0
mov rdx, rax
mov rcx, r15
call fcn.180011de0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x18000564e
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005649
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000571e
call fcn.18003f0cc
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1800056e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1800056de
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180005724
jmp 0x1800056db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, r15
call fcn.180011b20
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1800056e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1800056de
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000572a
mov rcx, r8
call fcn.18003f0cc
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
mov rax, r15
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18003f070
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.180045aec
nop
call fcn.180045aec
int3
call fcn.180045aec
int3