Function at 0x180009630
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push r13
mov rbp, rsp
sub rsp, 0x58
rol dx, 8
mov rsi, rcx
mov word [rbp - 0x16], dx
lea rcx, [rbp - 0x10]
mov dword [rbp - 0x14], 0
mov qword [rsp + 0x50], r12
mov r12d, 2
mov word [rbp - 0x18], r12w
mov qword [rbp - 0x28], 6
mov qword [rbp + 0x28], r12
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp - 0x28]
add rdx, rax
mov qword [rbp + 0x28], rdx
xor edx, edx
mov r8, qword [rbp + 0x28]
call fcn.18024b360
mov dword [rbp + 0x28], 1
lea r9, [rbp + 0x28]
mov qword [rbp - 0x20], 1
lea r8d, [r12 + 2]
mov qword [rbp - 0x28], 3
mov edx, 0xffff
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
add rcx, rax
mov qword [rsp + 0x88], rdi
mov qword [rbp - 0x20], rcx
mov rcx, rsi
mov rax, qword [rbp - 0x20]
mov dword [rsp + 0x20], eax
call fcn.180009cf0
mov rax, qword [0x180285cb8]
movabs r13, 0xaaaaaaaaaaaaaaab
mov ebx, 4
test rax, rax
jne 0x18000981a
mov dword [rbp + 0x38], 0xd51f8e17
mov word [rbp + 0x3c], 0x39
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
nop dword [rax]
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x28]
movzx r8d, byte [rbp + rax + 0x39]
mov rax, r13
mul rcx
shr rdx, 4
movzx eax, dl
add al, al
add dl, al
mov rax, qword [rbp - 0x28]
shl dl, 3
sub cl, dl
mov edx, 0x3e3ca2ec
sar edx, cl
xor dl, r8b
mov byte [rbp + rax + 0x39], dl
mov rax, qword [rbp - 0x28]
inc rax
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
cmp rax, 4
jb 0x180009710
mov byte [rbp + 0x3d], 0
call fcn.1800017a0
mov edx, dword [0x1802848b4]
mov rdi, rax
mov rax, qword gs:[0x58]
mov ecx, ebx
mov rbx, qword [rax + rdx*8]
add rbx, rcx
mov eax, dword [rbx]
cmp dword [0x180286968], eax
jle 0x1800097b8
lea rcx, [0x180286968]
call fcn.180249e18
cmp dword [0x180286968], 0xffffffff
jne 0x1800097b8
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x180286968]
mov qword [0x18028a9f8], rax
call fcn.180249db8
mov eax, dword [rbx]
cmp dword [0x18028a99c], eax
jle 0x1800097f1
lea rcx, [0x18028a99c]
call fcn.180249e18
cmp dword [0x18028a99c], 0xffffffff
jne 0x1800097f1
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x18028a99c]
mov qword [0x18028a9a0], rax
call fcn.180249db8
mov rax, qword [0x18028a9f8]
mov rcx, rdi
call rax
mov r8, qword [0x18028a9a0]
lea rdx, [rbp + 0x39]
mov rcx, rax
call r8
mov qword [0x180285cb8], rax
mov ebx, 4
mov qword [rbp - 0x28], 0xe
mov qword [rbp - 0x20], r12
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
add rdx, rcx
mov qword [rbp - 0x20], rdx
lea rdx, [rbp - 0x18]
mov r8, qword [rbp - 0x20]
mov rcx, qword [rsi]
call rax
mov r12, qword [rsp + 0x50]
cmp eax, 0xffffffff
je 0x180009993
mov rax, qword [0x180285c30]
test rax, rax
jne 0x180009987
mov dword [rbp + 0x40], 0x4602bbbd
mov dword [rbp + 0x44], 0xe8686e
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
nop word [rax + rax]
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x28]
movzx r8d, byte [rbp + rax + 0x41]
mov rax, r13
mul rcx
shr rdx, 4
movzx eax, dl
add al, al
add dl, al
mov rax, qword [rbp - 0x28]
shl dl, 3
sub cl, dl
mov edx, 0x7faf50d7
sar edx, cl
xor dl, r8b
mov byte [rbp + rax + 0x41], dl
mov rax, qword [rbp - 0x28]
inc rax
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
cmp rax, 6
jb 0x180009880
mov byte [rbp + 0x47], 0
call fcn.1800017a0
mov rdx, qword gs:[0x58]
mov rdi, rax
mov r9d, dword [0x1802848b4]
mov r8d, ebx
mov rbx, qword [rdx + r9*8]
add rbx, r8
mov edx, dword [rbx]
cmp dword [0x180286968], edx
jle 0x18000992a
lea rcx, [0x180286968]
call fcn.180249e18
cmp dword [0x180286968], 0xffffffff
jne 0x18000992a
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x180286968]
mov qword [0x18028a9f8], rax
call fcn.180249db8
mov eax, dword [rbx]
cmp dword [0x18028a99c], eax
jle 0x180009963
lea rcx, [0x18028a99c]
call fcn.180249e18
cmp dword [0x18028a99c], 0xffffffff
jne 0x180009963
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x18028a99c]
mov qword [0x18028a9a0], rax
call fcn.180249db8
mov rax, qword [0x18028a9f8]
mov rcx, rdi
call rax
mov r8, qword [0x18028a9a0]
lea rdx, [rbp + 0x41]
mov rcx, rax
call r8
mov qword [0x180285c30], rax
mov rcx, qword [rsi]
mov edx, 5
call rax
jmp 0x180009998
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x88]
add rsp, 0x58
pop r13
pop rsi
pop rbx
pop rbp
ret