Function at 0x1800054d0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2a0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x18004c1c0]
xor rax, rsp
mov qword [rbp + 0x180], rax
lea rcx, [rbp + 0x1c8]
movabs rdx, 0xff00ff00ff00ff00
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rcx
mov rax, qword [rcx]
xor rax, rdx
mov qword [rsp + 0x38], rax
xor edi, edi
mov qword [rcx], rdi
movups xmm0, xmmword [0x180045190]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [0x1800451a0]
movups xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [0x1800451b0]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [str.UWBWUES_a]
movups xmmword [rbp + 0x10], xmm1
mov eax, dword [0x1800451d0]
mov dword [rbp + 0x20], eax
movzx eax, byte [0x1800451d4]
mov byte [rbp + 0x24], al
lea rdx, [rbp + 0xd0]
lea rcx, [0x180044d20]
movups xmm0, xmmword [rcx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x60], xmm0
movups xmm0, xmmword [rcx + 0x70]
movups xmmword [rdx + 0x70], xmm0
movups xmm1, xmmword [rcx + 0x80]
movups xmmword [rdx + 0x80], xmm1
movups xmm0, xmmword [rcx + 0x90]
movups xmmword [rdx + 0x90], xmm0
movzx eax, word [rcx + 0xa0]
mov word [rdx + 0xa0], ax
movzx eax, byte [rcx + 0xa2]
mov byte [rdx + 0xa2], al
movups xmm0, xmmword [0x1800452a0]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x1800452b0]
movups xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [0x1800452c0]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [str._YRC_EY]
movups xmmword [rbp - 0x40], xmm1
mov eax, dword [0x1800452e0]
mov dword [rbp - 0x30], eax
movzx eax, byte [0x1800452e4]
mov byte [rbp - 0x2c], al
movups xmm0, xmmword [0x180044f48]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x180044f58]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x180044f68]
movups xmmword [rsp + 0x70], xmm0
mov eax, dword [str._USCWUf]
mov dword [rbp - 0x80], eax
movzx eax, word [0x180044f7c]
mov word [rbp - 0x7c], ax
movzx eax, byte [0x180044f7e]
mov byte [rbp - 0x7a], al
movups xmm0, xmmword [0x1800450e0]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [0x1800450f0]
movups xmmword [rbp + 0x40], xmm1
movups xmm0, xmmword [0x180045100]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [str._YBWUEVv]
movups xmmword [rbp + 0x60], xmm1
movups xmm0, xmmword [0x180045120]
movups xmmword [rbp + 0x70], xmm0
movups xmm1, xmmword [0x180045130]
movups xmmword [rbp + 0x80], xmm1
movups xmm0, xmmword [0x180045140]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [0x180045150]
movups xmmword [rbp + 0xa0], xmm1
movups xmm0, xmmword [0x180045160]
movups xmmword [rbp + 0xb0], xmm0
movzx eax, word [0x180045170]
mov word [rbp + 0xc0], ax
mov r8d, edi
mov ebx, dword [0x18004c208]
cmp ebx, 2
jl 0x180005845
movdqa xmm5, xmmword [0x180045570]
movdqa xmm4, xmmword [0x1800455a0]
movdqa xmm6, xmmword [str.7777]
movdqa xmm0, xmmword [0x1800455b0]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rbp - 0x1c]
mov edx, dword [rsp + 0x20]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180045590]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180045590]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x40
jl 0x180005740
cmp r8d, 0x45
jge 0x18000587f
movsxd rax, r8d
lea r9, [rbp - 0x20]
add r9, rax
nop
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x45
jl 0x180005850
lea rdx, [rbp - 0x20]
mov rcx, qword [0x180054e00]
call fcn.180003660
mov r13, rax
mov qword [rsp + 0x30], rax
cmp byte [rbp + 0x172], 0
je 0x180005a32
mov r8d, edi
cmp ebx, 2
jl 0x1800059ec
movdqa xmm5, xmmword [0x180045570]
movdqa xmm4, xmmword [0x1800455a0]
movdqa xmm6, xmmword [str.7777]
movdqa xmm0, xmmword [0x1800455b0]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rbp + 0xd4]
mov edx, dword [rsp + 0x20]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180045590]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180045590]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0xa0
jl 0x1800058e1
cmp r8d, 0xa3
jge 0x180005a32
movsxd rax, r8d
lea r9, [rbp + 0xd0]
add r9, rax
nop dword [rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xa3
jl 0x180005a00
lea rdx, [rbp + 0xd0]
mov rcx, qword [0x180054e00]
call fcn.180003660
mov r12, rax
cmp byte [rbp - 0x2c], 0
je 0x180005bcf
mov r8d, edi
cmp ebx, 2
jl 0x180005b95
movdqa xmm5, xmmword [0x180045570]
movdqa xmm4, xmmword [0x1800455a0]
movdqa xmm6, xmmword [str.7777]
movdqa xmm0, xmmword [0x1800455b0]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rbp - 0x6c]
mov edx, dword [rsp + 0x20]
nop dword [rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180045590]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180045590]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x40
jl 0x180005a90
cmp r8d, 0x45
jge 0x180005bcf
movsxd rax, r8d
lea r9, [rbp - 0x70]
add r9, rax
nop
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x45
jl 0x180005ba0
lea rdx, [rbp - 0x70]
mov rcx, qword [0x180054e00]
call fcn.180003660
mov r15, rax
cmp byte [rbp - 0x7a], 0
je 0x180005d6f
mov r8d, edi
cmp ebx, 2
jl 0x180005d35
movdqa xmm5, xmmword [0x180045570]
movdqa xmm4, xmmword [0x1800455a0]
movdqa xmm6, xmmword [str.7777]
movdqa xmm0, xmmword [0x1800455b0]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x54]
mov edx, dword [rsp + 0x20]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180045590]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180045590]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x30
jl 0x180005c30
cmp r8d, 0x37
jge 0x180005d6f
movsxd rax, r8d
lea r9, [rsp + 0x50]
add r9, rax
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x37
jl 0x180005d40
lea rdx, [rsp + 0x50]
mov rcx, qword [0x180054e00]
call fcn.180003660
mov r14, rax
cmp byte [rbp + 0xc1], 0
je 0x180005f22
mov r8d, edi
cmp ebx, 2
jl 0x180005edb
movdqa xmm5, xmmword [0x180045570]
movdqa xmm4, xmmword [0x1800455a0]
movdqa xmm6, xmmword [str.7777]
movdqa xmm0, xmmword [0x1800455b0]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rbp + 0x34]
mov edx, dword [rsp + 0x20]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180045590]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180045590]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x90
jl 0x180005dd0
cmp r8d, 0x92
jge 0x180005f22
movsxd rax, r8d
lea r9, [rbp + 0x30]
add r9, rax
nop word [rax + rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x92
jl 0x180005ef0
lea rdx, [rbp + 0x30]
mov rcx, qword [0x180054e00]
call fcn.180003660
mov rsi, rax
cmp qword [0x18004f990], 0
jne 0x180006091
lea rcx, str.DiscordHook64.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x18004f990], rax
test rax, rax
jne 0x180006091
mov rbx, rdi
mov ecx, 1
lock cmpxchg dword [0x18004fa4c], ecx
je 0x180005f9d
mov r13d, ecx
cmp rbx, 0x20
jae 0x180005f7f
xor ecx, ecx
jmp 0x180005f82
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18004fa4c], r13d
jne 0x180005f75
mov r13, qword [rsp + 0x30]
cmp qword [0x18004fa50], 0
jne 0x180005fbb
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x18004fa50], rax
xchg dword [0x18004fa4c], edi
test r13, r13
je 0x180005fe8
lea r8, [0x18004fa38]
lea rdx, [0x180004bc0]
mov rcx, r13
call fcn.18001a0b0
test eax, eax
jne 0x180005fe8
mov rcx, r13
call fcn.18001a3b0
test r12, r12
je 0x18000600f
lea r8, [0x18004fa08]
lea rdx, [0x180004b40]
mov rcx, r12
call fcn.18001a0b0
test eax, eax
jne 0x18000600f
mov rcx, r12
call fcn.18001a3b0
test r15, r15
je 0x180006036
lea r8, [0x18004fa40]
lea rdx, [0x180005220]
mov rcx, r15
call fcn.18001a0b0
test eax, eax
jne 0x180006036
mov rcx, r15
call fcn.18001a3b0
test r14, r14
je 0x18000605d
lea r8, [0x18004f9c8]
lea rdx, [0x1800053f0]
mov rcx, r14
call fcn.18001a0b0
test eax, eax
jne 0x18000605d
mov rcx, r14
call fcn.18001a3b0
test rsi, rsi
je 0x180006119
lea r8, [0x18004fa18]
lea rdx, [0x180004b60]
mov rcx, rsi
call fcn.18001a0b0
test eax, eax
jne 0x180006119
mov rcx, rsi
call fcn.18001a3b0
jmp 0x180006119
test r13, r13
je 0x1800060ac
lea r9, [0x18004fa38]
lea r8, [0x180004bc0]
mov rdx, r13
call fcn.1800015a0
test r12, r12
je 0x1800060c7
lea r9, [0x18004fa08]
lea r8, [0x180004b40]
mov rdx, r12
call fcn.1800015a0
test r15, r15
je 0x1800060e2
lea r9, [0x18004fa40]
lea r8, [0x180005220]
mov rdx, r15
call fcn.1800015a0
test r14, r14
je 0x1800060fd
lea r9, [0x18004f9c8]
lea r8, [0x1800053f0]
mov rdx, r14
call fcn.1800015a0
test rsi, rsi
je 0x180006119
lea r9, [0x18004fa18]
lea r8, [0x180004b60]
mov rdx, rsi
call fcn.1800015a0
nop
mov rax, qword [rsp + 0x38]
movabs rcx, 0xff00ff00ff00ff00
xor rax, rcx
lea rcx, [rbp + 0x1c8]
mov qword [rcx], rax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.18001c5f0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret