Function at 0x180004430
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rbp
push r13
lea rbp, [rax - 0xd8]
sub rsp, 0x1c8
mov qword [rax + 8], rbx
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r12
mov qword [rax - 0x38], r15
xor eax, eax
xor r13d, r13d
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x71], rax
mov qword [rsp + 0x79], rax
mov qword [rbp - 0x7f], rax
mov qword [rbp - 0x77], rax
mov qword [rbp - 0x6f], rax
mov qword [rbp - 0x67], rax
mov qword [rbp - 0x5f], rax
mov dword [rbp - 0x57], eax
mov word [rbp - 0x53], ax
mov byte [rbp - 0x51], al
mov dword [rbp + 0xe8], 0
mov byte [rsp + 0x70], r13b
mov dword [rbp + 0x100], 0x40
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x18000a2d0]
test eax, eax
cmovne ecx, eax
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov dword [0x18000a2d0], ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rsp + 0x40]
lea edx, [r13 + 0x28]
nop dword [rax]
imul eax, eax, 0x19660d
lea rcx, [rcx + 1]
add eax, 0x3c6ef35f
mov byte [rcx - 1], al
dec rdx
jne 0x1800044e0
lea r8, [rsp + 0x40]
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x1a8], r14
mov dword [0x18000a2d0], eax
call fcn.180004be0
xor r12d, r12d
lea r15d, [rbx + 0xf]
mov dword [rsp + 0x60], ebx
and r15d, 0xfffffff0
mov qword [rbp + 0xf8], r12
lea esi, [r12 + 8]
mov dword [rbp + 0x108], r15d
cmp ebx, r15d
je 0x18000457d
mov rcx, qword [0x18000a270]
mov r8d, r15d
xor edx, edx
mov r14d, r15d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
mov qword [rbp + 0xf8], rax
test rax, rax
je 0x18000457a
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call sub.ntdll.dll_memcpy
mov rdi, r12
test rdi, rdi
je 0x18000469a
mov rcx, qword [0x18000a270]
mov r8d, r15d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18000469a
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x10]
call fcn.1800068d0
mov ecx, r15d
mov r13, rbx
shr ecx, 4
mov qword [rsp + 0x38], rbx
test ecx, ecx
je 0x180004696
mov r15d, dword [rbp + 0x9c]
mov r12d, dword [rbp + 0x98]
lea r9, [rdi + 4]
sub rdi, rbx
lea r8, [rbx + 8]
mov r13d, ecx
lea rax, [rdi - 8]
mov qword [rsp + 0x30], rax
nop dword [rax]
mov r10d, dword [rbp - 0x10]
mov ebx, dword [rbp - 0xc]
mov esi, dword [r8 + rax]
add r10d, dword [r9]
mov ecx, dword [r9 + 4]
add ebx, dword [r9 + 8]
lea r11, [rbp - 8]
mov r14d, 0x14
lea eax, [rbx*2 + 1]
lea edi, [r10*2 + 1]
lea r11, [r11 + 8]
imul edi, r10d
ror edi, 5
imul eax, ebx
ror eax, 5
mov edx, eax
xor edx, ecx
mov ecx, edi
xor edi, esi
mov esi, r10d
ror edx, cl
mov ecx, eax
add edx, dword [r11 - 4]
ror edi, cl
mov ecx, ebx
add edi, dword [r11 - 8]
mov r10d, edx
mov ebx, edi
dec r14
jne 0x180004610
lea eax, [r12 + rsi]
mov dword [r8 - 4], edx
mov dword [r8 + 4], edi
mov dword [r8 - 8], eax
lea eax, [r15 + rcx]
add r8, 0x10
mov dword [r8 - 0x10], eax
mov rax, qword [rsp + 0x30]
add r9, 0x10
dec r13
jne 0x1800045f0
mov r15d, dword [rbp + 0x108]
mov r12, qword [rbp + 0xf8]
mov r13, qword [rsp + 0x38]
xor esi, esi
jmp 0x1800046a1
mov r15d, dword [rbp + 0xe8]
test r12, r12
je 0x1800046b8
mov rcx, qword [0x18000a270]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x1b0]
test esi, esi
jne 0x1800047c0
mov r9d, dword [0x18000a020]
add r9d, 7
shr r9d, 3
cmp r9d, 0x33
jb 0x1800047c0
lea eax, [r9 - 0x29]
mov ecx, 2
mov word [rbp - 0x50], 0x100
cmp eax, ecx
jbe 0x180004709
add eax, 0xfffffffe
lea rdi, [rbp - 0x4e]
mov edx, eax
mov eax, 0xff
mov ecx, edx
rep stosb byte [rdi], al
lea ecx, [rdx + 2]
mov eax, ecx
inc ecx
lea r8, [rbp - 0x50]
mov byte [rbp + rax - 0x50], 0
mov rax, qword [rsp + 0x40]
lea rdx, [rbp + 0x100]
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + rcx - 0x48], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rsp + 0x58]
mov qword [rbp + rcx - 0x38], rax
mov rax, qword [rsp + 0x60]
mov qword [rbp + rcx - 0x30], rax
lea rcx, [rsp + 0x70]
call fcn.180005c80
test eax, eax
jne 0x1800047c0
mov esi, dword [rbp + 0x100]
mov rcx, qword [0x18000a270]
xor edx, edx
lea r14d, [r15 + rsi]
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x180004786
xor r14d, r14d
jmp 0x1800047c7
mov r8d, r15d
mov rdx, r13
mov rcx, rax
mov edi, r15d
call sub.ntdll.dll_memcpy
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rdi + rbx]
lea rdx, [rsp + 0x70]
mov r8, rsi
mov dword [0x18000a2d0], eax
call sub.ntdll.dll_memcpy
mov rax, qword [rbp + 0xf0]
mov qword [rax], rbx
jmp 0x1800047c7
mov r14d, dword [rbp + 0xe8]
mov r15, qword [rsp + 0x1a0]
mov rdi, qword [rsp + 0x1b8]
mov rsi, qword [rsp + 0x1c0]
mov rbx, qword [rsp + 0x1e0]
test r13, r13
je 0x1800047fe
mov rcx, qword [0x18000a270]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, r14d
mov r14, qword [rsp + 0x1a8]
add rsp, 0x1c8
pop r13
pop rbp
ret