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 [0x180044ff0]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [0x180045000]
movups xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [0x180045010]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [0x180045020]
movups xmmword [rbp + 0x10], xmm1
mov eax, dword [0x180045030]
mov dword [rbp + 0x20], eax
movzx eax, byte [0x180045034]
mov byte [rbp + 0x24], al
lea rdx, [rbp + 0xd0]
lea rcx, [0x180044d70]
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 [0x180044cb0]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [str.azrdzfxhvjtlyvohdr]
movups xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [0x180044cd0]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x180044ce0]
movups xmmword [rbp - 0x40], xmm1
mov eax, dword [0x180044cf0]
mov dword [rbp - 0x30], eax
movzx eax, byte [0x180044cf4]
mov byte [rbp - 0x2c], al
movups xmm0, xmmword [0x180044f88]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x180044f98]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x180044fa8]
movups xmmword [rsp + 0x70], xmm0
mov eax, dword [0x180044fb8]
mov dword [rbp - 0x80], eax
movzx eax, word [0x180044fbc]
mov word [rbp - 0x7c], ax
movzx eax, byte [0x180044fbe]
mov byte [rbp - 0x7a], al
movups xmm0, xmmword [0x180044e90]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [0x180044ea0]
movups xmmword [rbp + 0x40], xmm1
movups xmm0, xmmword [0x180044eb0]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [0x180044ec0]
movups xmmword [rbp + 0x60], xmm1
movups xmm0, xmmword [0x180044ed0]
movups xmmword [rbp + 0x70], xmm0
movups xmm1, xmmword [0x180044ee0]
movups xmmword [rbp + 0x80], xmm1
movups xmm0, xmmword [0x180044ef0]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [0x180044f00]
movups xmmword [rbp + 0xa0], xmm1
movups xmm0, xmmword [0x180044f10]
movups xmmword [rbp + 0xb0], xmm0
movzx eax, word [0x180044f20]
mov word [rbp + 0xc0], ax
mov r8d, edi
mov ebx, dword [0x18004c208]
cmp ebx, 2
jl 0x180005845
movdqa xmm5, xmmword [0x180045380]
movdqa xmm4, xmmword [0x1800454e0]
movdqa xmm6, xmmword [str.6666]
movdqa xmm0, xmmword [str.1111111111111111]
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, 4
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 [0x1800453a0]
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, 4
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 [0x1800453a0]
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 0x180005880
movsxd rax, r8d
lea r9, [rbp - 0x20]
add r9, rax
nop
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x45
jl 0x180005850
lea rdx, [rbp - 0x20]
mov rcx, qword [0x180054df0]
call fcn.180003660
mov r13, rax
mov qword [rsp + 0x30], rax
cmp byte [rbp + 0x172], 0
je 0x180005a33
mov r8d, edi
cmp ebx, 2
jl 0x1800059ed
movdqa xmm5, xmmword [0x180045380]
movdqa xmm4, xmmword [0x1800454e0]
movdqa xmm6, xmmword [str.6666]
movdqa xmm0, xmmword [str.1111111111111111]
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, 4
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 [0x1800453a0]
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, 4
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 [0x1800453a0]
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 0x1800058e2
cmp r8d, 0xa3
jge 0x180005a33
movsxd rax, r8d
lea r9, [rbp + 0xd0]
add r9, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xa3
jl 0x180005a00
lea rdx, [rbp + 0xd0]
mov rcx, qword [0x180054df0]
call fcn.180003660
mov r12, rax
cmp byte [rbp - 0x2c], 0
je 0x180005bd0
mov r8d, edi
cmp ebx, 2
jl 0x180005b95
movdqa xmm5, xmmword [0x180045380]
movdqa xmm4, xmmword [0x1800454e0]
movdqa xmm6, xmmword [str.6666]
movdqa xmm0, xmmword [str.1111111111111111]
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, 4
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 [0x1800453a0]
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, 4
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 [0x1800453a0]
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 0x180005bd0
movsxd rax, r8d
lea r9, [rbp - 0x70]
add r9, rax
nop
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x45
jl 0x180005ba0
lea rdx, [rbp - 0x70]
mov rcx, qword [0x180054df0]
call fcn.180003660
mov r15, rax
cmp byte [rbp - 0x7a], 0
je 0x180005d70
mov r8d, edi
cmp ebx, 2
jl 0x180005d35
movdqa xmm5, xmmword [0x180045380]
movdqa xmm4, xmmword [0x1800454e0]
movdqa xmm6, xmmword [str.6666]
movdqa xmm0, xmmword [str.1111111111111111]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x54]
mov edx, dword [rsp + 0x20]
nop dword [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, 4
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 [0x1800453a0]
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, 4
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 [0x1800453a0]
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 0x180005d70
movsxd rax, r8d
lea r9, [rsp + 0x50]
add r9, rax
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x37
jl 0x180005d40
lea rdx, [rsp + 0x50]
mov rcx, qword [0x180054df0]
call fcn.180003660
mov r14, rax
cmp byte [rbp + 0xc1], 0
je 0x180005f23
mov r8d, edi
cmp ebx, 2
jl 0x180005edb
movdqa xmm5, xmmword [0x180045380]
movdqa xmm4, xmmword [0x1800454e0]
movdqa xmm6, xmmword [str.6666]
movdqa xmm0, xmmword [str.1111111111111111]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rbp + 0x34]
mov edx, dword [rsp + 0x20]
nop dword [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, 4
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 [0x1800453a0]
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, 4
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 [0x1800453a0]
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 0x180005f23
movsxd rax, r8d
lea r9, [rbp + 0x30]
add r9, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x92
jl 0x180005ef0
lea rdx, [rbp + 0x30]
mov rcx, qword [0x180054df0]
call fcn.180003660
mov rsi, rax
cmp qword [0x18004f980], 0
jne 0x180006092
lea rcx, str.DiscordHook64.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x18004f980], rax
test rax, rax
jne 0x180006092
mov rbx, rdi
mov ecx, 1
lock cmpxchg dword [0x18004fa3c], ecx
je 0x180005f9e
mov r13d, ecx
cmp rbx, 0x20
jae 0x180005f80
xor ecx, ecx
jmp 0x180005f83
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18004fa3c], r13d
jne 0x180005f76
mov r13, qword [rsp + 0x30]
cmp qword [0x18004fa40], 0
jne 0x180005fbc
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x18004fa40], rax
xchg dword [0x18004fa3c], edi
test r13, r13
je 0x180005fe9
lea r8, [0x18004fa28]
lea rdx, [0x180004bc0]
mov rcx, r13
call fcn.1800197e0
test eax, eax
jne 0x180005fe9
mov rcx, r13
call fcn.180019ae0
test r12, r12
je 0x180006010
lea r8, [0x18004f9f8]
lea rdx, [0x180004b40]
mov rcx, r12
call fcn.1800197e0
test eax, eax
jne 0x180006010
mov rcx, r12
call fcn.180019ae0
test r15, r15
je 0x180006037
lea r8, [0x18004fa30]
lea rdx, [0x180005220]
mov rcx, r15
call fcn.1800197e0
test eax, eax
jne 0x180006037
mov rcx, r15
call fcn.180019ae0
test r14, r14
je 0x18000605e
lea r8, [0x18004f9b8]
lea rdx, [0x1800053f0]
mov rcx, r14
call fcn.1800197e0
test eax, eax
jne 0x18000605e
mov rcx, r14
call fcn.180019ae0
test rsi, rsi
je 0x18000611a
lea r8, [0x18004fa08]
lea rdx, [0x180004b60]
mov rcx, rsi
call fcn.1800197e0
test eax, eax
jne 0x18000611a
mov rcx, rsi
call fcn.180019ae0
jmp 0x18000611a
test r13, r13
je 0x1800060ad
lea r9, [0x18004fa28]
lea r8, [0x180004bc0]
mov rdx, r13
call fcn.1800015a0
test r12, r12
je 0x1800060c8
lea r9, [0x18004f9f8]
lea r8, [0x180004b40]
mov rdx, r12
call fcn.1800015a0
test r15, r15
je 0x1800060e3
lea r9, [0x18004fa30]
lea r8, [0x180005220]
mov rdx, r15
call fcn.1800015a0
test r14, r14
je 0x1800060fe
lea r9, [0x18004f9b8]
lea r8, [0x1800053f0]
mov rdx, r14
call fcn.1800015a0
test rsi, rsi
je 0x18000611a
lea r9, [0x18004fa08]
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.18001bd20
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