Function at 0x18004aa10
Capabilities:
Create thread
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1f8]
sub rsp, 0x2f8
mov rsi, rcx
call fcn.18000c5c0
mov r9d, eax
lea rcx, [rsi + 0x88]
mov eax, 0xaaaaaaab
mul r9d
mov eax, 0x5397829d
shr edx, 5
lea r8d, [rdx + rdx*2]
shl r8d, 4
sub r9d, r8d
mul r9d
shr edx, 4
imul eax, edx, 0x31
sub r9d, eax
lea eax, [r9 + 1]
movzx edx, al
add edx, 0x20
shl edx, 4
call fcn.18000ed60
xor r15d, r15d
cmp byte [rsi + 0x3b50], r15b
jne 0x18004ab21
mov ecx, 0x148
call fcn.1803610bc
mov rdi, rax
call fcn.18004b220
movzx ebx, ax
mov qword [rdi + 8], r15
lea rax, [0x18038ec10]
mov byte [rdi + 0x10], 1
lea rcx, [rdi + 0x18]
mov qword [rdi], rax
call fcn.18000a190
lea rax, [rbp + 0x230]
mov word [rdi + 0x138], bx
mov qword [rsp + 0x28], rax
lea r8, [0x180001e10]
mov r9, rdi
mov dword [rsp + 0x20], r15d
xor edx, edx
mov byte [rdi + 0x13a], 1
xor ecx, ecx
call fcn.1803666c0
mov qword [rdi + 8], rax
test rax, rax
jne 0x18004ab09
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
cmp byte [rdi + 0x10], r15b
je 0x18004ab09
mov rax, qword [rdi]
lea edx, [r15 + 1]
mov rcx, rdi
call qword [rax]
lea rax, [0x18038ed40]
mov qword [rdi + 0x140], rsi
mov qword [rdi], rax
mov qword [rsi + 0x3b38], rdi
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x98
call fcn.180362700
mov qword [rbp + 0x248], 0x32
mov qword [rbp + 0x240], 0x6a
mov rcx, qword [rbp + 0x240]
mov rax, qword [rbp + 0x248]
add rcx, rax
mov qword [rbp + 0x240], rcx
mov rax, qword [rbp + 0x240]
mov dword [rsp + 0x70], eax
xor eax, eax
mov byte [rsp + 0x3e], al
mov dword [rsp + 0x30], 0xf5e538a9
mov dword [rsp + 0x34], 0xf6f6e6d4
mov dword [rsp + 0x38], 0xcce6e8ef
mov word [rsp + 0x3c], 0xcaf2
mov qword [rbp + 0x240], r15
mov rax, qword [rbp + 0x240]
nop
mov rcx, qword [rbp + 0x240]
mov rax, qword [rbp + 0x240]
add cl, 0x7f
xor cl, byte [rsp + rax + 0x31]
mov rax, qword [rbp + 0x240]
mov byte [rsp + rax + 0x31], cl
mov rax, qword [rbp + 0x240]
inc rax
mov qword [rbp + 0x240], rax
mov rax, qword [rbp + 0x240]
cmp rax, 0xd
jb 0x18004aba0
mov byte [rsp + 0x3e], r15b
call fcn.1800015d0
mov rcx, qword gs:[0x58]
mov rdi, rax
mov edx, dword [0x18039b468]
mov eax, 4
mov rbx, qword [rcx + rdx*8]
add rbx, rax
mov ecx, dword [rbx]
cmp dword [0x18039d510], ecx
jle 0x18004ac3f
lea rcx, [0x18039d510]
call fcn.180360f8c
cmp dword [0x18039d510], 0xffffffff
jne 0x18004ac3f
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18039d510]
mov qword [0x1803a15b8], rax
call fcn.180360f2c
mov eax, dword [rbx]
cmp dword [0x1803a1558], eax
jle 0x18004ac78
lea rcx, [0x1803a1558]
call fcn.180360f8c
cmp dword [0x1803a1558], 0xffffffff
jne 0x18004ac78
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1803a1558]
mov qword [0x1803a1560], rax
call fcn.180360f2c
mov rcx, rdi
call qword [0x1803a15b8]
mov rcx, rax
lea rdx, [rsp + 0x31]
call qword [0x1803a1560]
test rax, rax
je 0x18004acb8
lea rcx, [rsp + 0x70]
call rax
test eax, eax
je 0x18004acb8
cmp dword [rsp + 0x74], 5
jne 0x18004acb8
cmp dword [rsp + 0x78], 1
jne 0x18004acb8
cmp word [rbp + 4], 2
je 0x18004b152
xor edx, edx
lea rcx, [rbp + 0x14]
mov r8d, 0x98
call fcn.180362700
mov qword [rbp + 0x248], 0x32
mov qword [rbp + 0x240], 0x6a
mov rcx, qword [rbp + 0x240]
mov rax, qword [rbp + 0x248]
add rcx, rax
mov qword [rbp + 0x240], rcx
mov rax, qword [rbp + 0x240]
mov dword [rbp + 0x10], eax
xor eax, eax
mov byte [rsp + 0x4d], al
mov dword [rsp + 0x3f], 0xf5e538a9
mov dword [rsp + 0x43], 0xf6f6e6d4
mov dword [rsp + 0x47], 0xcce6e8ef
mov word [rsp + 0x4b], 0xcaf2
mov qword [rbp + 0x240], r15
mov rax, qword [rbp + 0x240]
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x240]
mov rax, qword [rbp + 0x240]
add cl, 0x7f
xor cl, byte [rsp + rax + 0x40]
mov rax, qword [rbp + 0x240]
mov byte [rsp + rax + 0x40], cl
mov rax, qword [rbp + 0x240]
inc rax
mov qword [rbp + 0x240], rax
mov rax, qword [rbp + 0x240]
cmp rax, 0xd
jb 0x18004ad40
mov byte [rsp + 0x4d], r15b
call fcn.1800015d0
mov ecx, dword [rbx]
mov rdi, rax
cmp dword [0x18039d510], ecx
jle 0x18004adc4
lea rcx, [0x18039d510]
call fcn.180360f8c
cmp dword [0x18039d510], 0xffffffff
jne 0x18004adc4
mov rcx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1803a15b8], rcx
lea rcx, [0x18039d510]
call fcn.180360f2c
mov eax, dword [rbx]
cmp dword [0x1803a1558], eax
jle 0x18004adfd
lea rcx, [0x1803a1558]
call fcn.180360f8c
cmp dword [0x1803a1558], 0xffffffff
jne 0x18004adfd
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1803a1558]
mov qword [0x1803a1560], rax
call fcn.180360f2c
mov rcx, rdi
call qword [0x1803a15b8]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [0x1803a1560]
test rax, rax
je 0x18004ae3d
lea rcx, [rbp + 0x10]
call rax
test eax, eax
je 0x18004ae3d
cmp dword [rbp + 0x14], 5
jne 0x18004ae3d
cmp dword [rbp + 0x18], 1
jne 0x18004ae3d
cmp word [rbp + 0xa4], 3
je 0x18004b152
xor edx, edx
lea rcx, [rbp + 0xb4]
mov r8d, 0x98
call fcn.180362700
mov qword [rbp + 0x248], 0x32
mov qword [rbp + 0x240], 0x6a
mov rcx, qword [rbp + 0x240]
mov rax, qword [rbp + 0x248]
add rcx, rax
mov qword [rbp + 0x240], rcx
mov rax, qword [rbp + 0x240]
mov dword [rbp + 0xb0], eax
xor eax, eax
mov byte [rsp + 0x5c], al
mov dword [rsp + 0x4e], 0xf5e538a9
mov dword [rsp + 0x52], 0xf6f6e6d4
mov dword [rsp + 0x56], 0xcce6e8ef
mov word [rsp + 0x5a], 0xcaf2
mov qword [rbp + 0x240], r15
mov rax, qword [rbp + 0x240]
nop
mov rcx, qword [rbp + 0x240]
mov rax, qword [rbp + 0x240]
add cl, 0x7f
xor cl, byte [rsp + rax + 0x4f]
mov rax, qword [rbp + 0x240]
mov byte [rsp + rax + 0x4f], cl
mov rax, qword [rbp + 0x240]
inc rax
mov qword [rbp + 0x240], rax
mov rax, qword [rbp + 0x240]
cmp rax, 0xd
jb 0x18004aec0
mov byte [rsp + 0x5c], r15b
call fcn.1800015d0
mov ecx, dword [rbx]
mov rdi, rax
cmp dword [0x18039d510], ecx
jle 0x18004af44
lea rcx, [0x18039d510]
call fcn.180360f8c
cmp dword [0x18039d510], 0xffffffff
jne 0x18004af44
mov rcx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1803a15b8], rcx
lea rcx, [0x18039d510]
call fcn.180360f2c
mov eax, dword [rbx]
cmp dword [0x1803a1558], eax
jle 0x18004af7d
lea rcx, [0x1803a1558]
call fcn.180360f8c
cmp dword [0x1803a1558], 0xffffffff
jne 0x18004af7d
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1803a1558]
mov qword [0x1803a1560], rax
call fcn.180360f2c
mov rcx, rdi
call qword [0x1803a15b8]
mov rcx, rax
lea rdx, [rsp + 0x4f]
call qword [0x1803a1560]
test rax, rax
je 0x18004afc6
lea rcx, [rbp + 0xb0]
call rax
test eax, eax
je 0x18004afc6
cmp dword [rbp + 0xb4], 6
jne 0x18004afc6
cmp dword [rbp + 0xb8], r15d
jne 0x18004afc6
cmp word [rbp + 0x144], r15w
je 0x18004b152
xor edx, edx
lea rcx, [rbp + 0x154]
mov r8d, 0x98
call fcn.180362700
mov qword [rbp + 0x248], 0x32
mov qword [rbp + 0x240], 0x6a
mov rcx, qword [rbp + 0x240]
mov rax, qword [rbp + 0x248]
add rcx, rax
mov qword [rbp + 0x240], rcx
mov rax, qword [rbp + 0x240]
mov dword [rbp + 0x150], eax
xor eax, eax
mov byte [rsp + 0x6b], al
mov dword [rsp + 0x5d], 0xf5e538a9
mov dword [rsp + 0x61], 0xf6f6e6d4
mov dword [rsp + 0x65], 0xcce6e8ef
mov word [rsp + 0x69], 0xcaf2
mov qword [rbp + 0x240], r15
mov rax, qword [rbp + 0x240]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x240]
mov rax, qword [rbp + 0x240]
add cl, 0x7f
xor cl, byte [rsp + rax + 0x5e]
mov rax, qword [rbp + 0x240]
mov byte [rsp + rax + 0x5e], cl
mov rax, qword [rbp + 0x240]
inc rax
mov qword [rbp + 0x240], rax
mov rax, qword [rbp + 0x240]
cmp rax, 0xd
jb 0x18004b050
mov byte [rsp + 0x6b], r15b
call fcn.1800015d0
mov edx, dword [rbx]
mov rdi, rax
cmp dword [0x18039d510], edx
jle 0x18004b0d4
lea rcx, [0x18039d510]
call fcn.180360f8c
cmp dword [0x18039d510], 0xffffffff
jne 0x18004b0d4
mov rdx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18039d510]
mov qword [0x1803a15b8], rdx
call fcn.180360f2c
mov eax, dword [rbx]
cmp dword [0x1803a1558], eax
jle 0x18004b10d
lea rcx, [0x1803a1558]
call fcn.180360f8c
cmp dword [0x1803a1558], 0xffffffff
jne 0x18004b10d
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1803a1558]
mov qword [0x1803a1560], rax
call fcn.180360f2c
mov rcx, rdi
call qword [0x1803a15b8]
mov rcx, rax
lea rdx, [rsp + 0x5e]
call qword [0x1803a1560]
test rax, rax
je 0x18004b159
lea rcx, [rbp + 0x150]
call rax
test eax, eax
je 0x18004b159
cmp dword [rbp + 0x154], 6
jne 0x18004b159
cmp dword [rbp + 0x158], r15d
jne 0x18004b159
cmp word [rbp + 0x1e4], 1
jne 0x18004b159
mov byte [rsi + 0x3fb0], 1
cmp byte [rsi + 0x3fb0], r15b
lea r14, [0x18038eb90]
mov edi, 5
mov eax, 2
cmove edi, eax
mov ecx, 0x28
call fcn.1803610bc
mov rbx, rax
lea r8, [0x180001e10]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rax + 8], r15
mov byte [rax + 0x10], 1
mov qword [rax], r14
mov qword [rax + 0x20], rsi
lea rax, [rbp + 0x238]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
call fcn.1803666c0
mov qword [rbx + 8], rax
test rax, rax
jne 0x18004b1d9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
cmp byte [rbx + 0x10], r15b
je 0x18004b1d9
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov qword [rsi + 0x3b40], rbx
sub rdi, 1
jne 0x18004b174
add rsp, 0x2f8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret