Function at 0x180004090
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x18002b018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x1800267e0]
xor edi, edi
movsd xmm0, qword [str.tRAYIS_b]
mov rsi, r9
mov ebx, dword [0x18002b030]
mov rbp, rdx
mov r12, qword [rsp + 0xe0]
mov r13, rcx
mov dword [rsp + 0x38], eax
lea r15d, [rdi + 4]
movzx eax, byte [0x1800267e4]
mov byte [rsp + 0x3c], al
lea eax, [rdi + 0x1f]
mov r14d, r8d
mov r8d, edi
movaps xmmword [rsp + 0x60], xmm6
movsd qword [rsp + 0x30], xmm0
cmp ebx, 2
jl 0x18000420c
movdqa xmm2, xmmword [0x180026850]
mov r8d, 8
movdqa xmm4, xmmword [0x1800268b0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x180026860]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r15d
movd xmm5, eax
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180026880]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.tRAYIS_b]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x180026890]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.5555555555555555]
pxor xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x30], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180026880]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x34]
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x180026890]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.5555555555555555]
pxor xmm2, xmm0
movd dword [rsp + 0x34], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop word [rax + rax]
mov eax, 0x51eb851f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x35
xor byte [r9 - 1], al
cmp r8d, 0xd
jl 0x180004220
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x1800267d0]
mov r9, rax
movsd xmm0, qword [str.vDNHM_OGO4A]
mov dword [rsp + 0x48], ecx
movzx ecx, byte [0x1800267d4]
mov byte [rsp + 0x4c], cl
movsd qword [rsp + 0x40], xmm0
cmp ebx, 2
jl 0x18000439a
movdqa xmm2, xmmword [0x180026850]
mov eax, 0x1f
movdqa xmm4, xmmword [0x1800268b0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x180026860]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov edi, 8
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm5, eax
mov eax, dword [str.5555555555555555]
movd xmm6, r15d
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180026880]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x180026890]
movd xmm1, dword [str.vDNHM_OGO4A]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movdqa xmm0, xmm3
pxor xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
movd dword [rsp + 0x40], xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180026880]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x180026890]
movd xmm1, dword [rsp + 0x44]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
pxor xmm2, xmm1
movd dword [rsp + 0x44], xmm2
movaps xmm6, xmmword [rsp + 0x60]
lea r8, [rsp + 0x40]
movsxd rax, edi
add r8, rax
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, dil
inc edi
sub al, cl
add al, 0x35
xor byte [r8 - 1], al
cmp edi, 0xd
jl 0x1800043b0
lea rdx, [rsp + 0x40]
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r14
mov rbx, r14
mov r15, rax
call fcn.18000b598
mov qword [rsi], rax
test rax, rax
je 0x180004478
mov rdi, rax
mov rcx, rbx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, qword [rsi]
test r14d, r14d
je 0x180004442
test rcx, rcx
je 0x180004432
mov r8, rbx
test rbp, rbp
je 0x18000442b
mov rdx, rbp
call fcn.180006d50
jmp 0x180004442
xor edx, edx
call fcn.180007400
call fcn.18000b658
mov dword [rax], 0x16
call fcn.18000b4ec
xor r9d, r9d
mov dword [rsp + 0x50], r14d
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, r13
mov rax, qword [rsi]
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], rax
call r15
test eax, eax
je 0x180004478
mov eax, dword [rsp + 0x50]
mov dword [r12], eax
mov al, 1
jmp 0x18000447a
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180004d80
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret