Function at 0x140005240
Capabilities:
Acquire debug privileges
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x14009c900]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
call fcn.1400060f0
mov dword [0x14009d2d0], eax
test eax, eax
jne 0x14000548c
lea rcx, [rbp - 1]
call fcn.140005120
mov r9, rax
movups xmm0, xmmword [0x14007b5b8]
movups xmm1, xmmword [0x14007b5c8]
cmp qword [rax + 0x18], 0xf
jbe 0x1400052a7
mov r9, qword [rax]
movzx eax, byte [0x14007b5d8]
mov byte [rbp - 9], al
movups xmmword [rbp - 0x19], xmm1
movups xmmword [rbp - 0x29], xmm0
xor ebx, ebx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140005402
movdqa xmm5, xmmword [0x14007ad70]
movdqa xmm4, xmmword [0x14007b6e0]
movdqa xmm6, xmmword [str.7777]
movdqa xmm0, xmmword [0x14007b6f0]
movdqa xmmword [rbp + 0x27], xmm0
lea rcx, [rbp - 0x25]
mov edx, dword [rbp + 0x27]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, ebx
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 [0x14007ad90]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 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 [0x14007ad90]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x20
jl 0x140005300
cmp eax, 0x21
jge 0x14000543b
movsxd rax, ebx
lea r8, [rbp - 0x29]
add r8, rax
nop dword [rax]
mov eax, 0x94f2095
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, bl
sub al, cl
add al, 0x31
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x21
jl 0x140005410
mov rdx, r9
lea rcx, [rbp - 0x29]
call fcn.1400018b0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x140005995
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005990
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005990
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor ebx, ebx
mov qword [rbp + 3], rbx
mov dword [rbp - 1], 1
mov dword [rbp + 0xb], 2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea r8, [rbp + 3]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400059da
mov qword [rbp + 0x27], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x27]
lea edx, [rbx + 0x28]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400059ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0x10]
lea r8, [rbp - 1]
xor edx, edx
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400059c5
mov rcx, qword [rbp + 0x27]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000552f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x14009d2d0]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x14009d2e0], rax
test rax, rax
jne 0x14000576c
lea rcx, [rbp - 0x29]
call fcn.140005120
mov r9, rax
movups xmm0, xmmword [0x14007b5e0]
cmp qword [rax + 0x18], 0xf
jbe 0x140005570
mov r9, qword [rax]
mov eax, dword [0x14007b5f8]
mov dword [rbp + 0x17], eax
movzx eax, word [0x14007b5fc]
mov word [rbp + 0x1b], ax
movups xmmword [rbp - 1], xmm0
movzx eax, byte [reloc.WLDAP32.dll_Ordinal_79]
movsd xmm0, qword [0x14007b5f0]
mov byte [rbp + 0x1d], al
movsd qword [rbp + 0xf], xmm0
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400056e2
movdqa xmm5, xmmword [0x14007ad70]
movdqa xmm4, xmmword [0x14007b6e0]
movdqa xmm6, xmmword [str.7777]
movdqa xmm0, xmmword [0x14007b6f0]
movdqa xmmword [rbp + 0x27], xmm0
lea rcx, [rbp + 3]
mov edx, dword [rbp + 0x27]
nop dword [rax + rax]
movd xmm2, ebx
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 [0x14007ad90]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 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 [0x14007ad90]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x18
jl 0x1400055e0
cmp eax, 0x1f
jge 0x14000571b
movsxd rax, ebx
lea r8, [rbp - 1]
add r8, rax
nop dword [rax]
mov eax, 0x94f2095
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, bl
sub al, cl
add al, 0x31
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x1f
jl 0x1400056f0
mov rdx, r9
lea rcx, [rbp - 1]
call fcn.1400018b0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x140005995
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005990
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005990
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov edx, dword [0x14009d2d0]
mov rcx, rdi
call fcn.140005e00
mov qword [0x14009d2d8], rax
test rax, rax
jne 0x140005999
lea rcx, [rbp - 0x29]
call fcn.140005120
mov r9, rax
movups xmm0, xmmword [0x14007b600]
cmp qword [rax + 0x18], 0xf
jbe 0x1400057a7
mov r9, qword [rax]
mov eax, dword [0x14007b618]
mov dword [rbp + 0x17], eax
movups xmmword [rbp - 1], xmm0
movzx eax, byte [0x14007b61c]
movsd xmm0, qword [0x14007b610]
mov byte [rbp + 0x1b], al
movsd qword [rbp + 0xf], xmm0
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140005912
movdqa xmm5, xmmword [0x14007ad70]
movdqa xmm4, xmmword [0x14007b6e0]
movdqa xmm6, xmmword [str.7777]
movdqa xmm0, xmmword [0x14007b6f0]
movdqa xmmword [rbp + 0x27], xmm0
lea rcx, [rbp + 3]
mov edx, dword [rbp + 0x27]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, ebx
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 [0x14007ad90]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 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 [0x14007ad90]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x18
jl 0x140005810
cmp eax, 0x1d
jge 0x14000594b
movsxd rax, ebx
lea r8, [rbp - 1]
add r8, rax
nop dword [rax]
mov eax, 0x94f2095
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, bl
sub al, cl
add al, 0x31
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x1d
jl 0x140005920
mov rdx, r9
lea rcx, [rbp - 1]
call fcn.1400018b0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x140005995
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005990
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005990
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140077578
xor al, al
jmp 0x14000599b
mov al, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140077370
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
mov r8d, esi
mov edx, Ordinal_79
lea rcx, str.F:CodingHowieHookAthena_ClientPYTExampleutildefs.h
call fcn.1400067f0
nop
mov r8d, esi
mov edx, 0x48
lea rcx, str.F:CodingHowieHookAthena_ClientPYTExampleutildefs.h
call fcn.1400067f0
nop
mov r8d, esi
mov edx, Ordinal_79
lea rcx, str.F:CodingHowieHookAthena_ClientPYTExampleutildefs.h
call fcn.1400067f0
int3