Function at 0x1800a9570
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x180148040]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edi, edi
lea r14, [0x18014aff8]
movsd xmm0, qword [0x180149dd8]
comisd xmm0, xmmword [0x18012dea0]
jb 0x1800a96f3
lea rdx, [0x18014b7f0]
lea rcx, [rsp + 0x70]
call fcn.18002d350
mov r9b, 1
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1800aaa60
mov rbx, rax
mov dword [rsp + 0x34], 0x14cb880
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov edx, 4
lea rcx, [rsp + 0x50]
call fcn.18000f4e0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x34]
mov dword [rcx], eax
lea rax, [rcx + 4]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x28], 0x800
mov dword [rsp + 0x20], edi
mov r9b, 1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1800ab590
mov rbx, qword [rax]
test rbx, rbx
je 0x1800a9689
lea r9, [rbp + 0x40]
mov edx, 1
mov r8d, 0x40
lea rcx, [rbx + 6]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [rbx + 6], dil
lea r9, [rbp + 0x48]
mov r8d, dword [rbp + 0x40]
mov edx, 1
lea rcx, [rbx + 6]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
xor r8d, r8d
lea rdx, [0x18011e4f0]
lea rcx, [rsp + 0x50]
call fcn.180016750
nop
cmp byte [0x180149df8], 0
je 0x1800a96e9
mov byte [rsp + 0x30], 0
mov dword [rbp + 0x40], 2
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x18014afe8]
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x40]
call fcn.1800288e0
nop
lea rcx, [rsp + 0x50]
call fcn.18002d710
mov esi, dword [0x180148090]
movdqa xmm7, xmmword [0x18012e1e0]
movsd xmm0, qword [0x180149dd8]
ucomisd xmm0, qword [0x18012de98]
jp 0x1800a992f
jne 0x1800a992f
movups xmm0, xmmword [0x1801251b0]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x1801251c0]
movups xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [0x1801251d0]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [str.XPBE]
movups xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [0x1801251f0]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [0x180125200]
movups xmmword [rbp], xmm1
movups xmm0, xmmword [0x180125210]
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [0x180125220]
movups xmmword [rbp + 0x20], xmm1
mov eax, dword [0x180125230]
mov dword [rbp + 0x30], eax
movzx eax, byte [0x180125234]
mov byte [rbp + 0x34], al
mov r8d, edi
cmp esi, 2
jl 0x1800a98af
movdqa xmm4, xmmword [0x18012e100]
movdqa xmm3, xmmword [0x18012e5e0]
movdqa xmm5, xmmword [0x18012e170]
movdqa xmm0, xmmword [0x18012e230]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rbp - 0x4c]
mov edx, dword [rsp + 0x40]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
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 xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
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, 0x80
jl 0x1800a97c2
cmp r8d, 0x85
jge 0x1800a98f3
movsxd rax, r8d
lea r9, [rbp - 0x50]
add r9, rax
nop dword [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, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x85
jl 0x1800a98c0
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.180038a30
mov rbx, qword [rax]
test rbx, rbx
je 0x1800a992f
lea r8, [0x18014a7c8]
lea rdx, [0x1800afd70]
mov rcx, rbx
call fcn.1800e6ed8
mov edx, 1
mov rcx, rbx
call fcn.1800e717c
cmp dword [0x180149de0], 0xc
jl 0x1800a9b3c
movsd xmm0, qword [0x18012dda8]
comisd xmm0, xmmword [0x180149dd8]
jbe 0x1800a9b3c
movups xmm0, xmmword [0x180125160]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x180125170]
movups xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [0x180125180]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [str.__CP_]
movups xmmword [rbp - 0x20], xmm1
movsd xmm0, qword [0x1801251a0]
movsd qword [rbp - 0x10], xmm0
mov eax, dword [0x1801251a8]
mov dword [rbp - 8], eax
mov r8d, edi
cmp esi, 2
jl 0x1800a9ab7
movdqa xmm4, xmmword [0x18012e100]
movdqa xmm3, xmmword [0x18012e5e0]
movdqa xmm5, xmmword [0x18012e170]
movdqa xmm0, xmmword [0x18012e230]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rbp - 0x4c]
mov edx, dword [rsp + 0x40]
nop
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
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 xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
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, 0x48
jl 0x1800a99d0
cmp r8d, 0x4c
jge 0x1800a9b00
movsxd rax, r8d
lea r9, [rbp - 0x50]
add r9, rax
nop dword [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, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x4c
jl 0x1800a9ad0
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.180038a30
mov rbx, qword [rax]
test rbx, rbx
je 0x1800a9b3c
lea r8, [0x18014a7d0]
lea rdx, [0x1800afea0]
mov rcx, rbx
call fcn.1800e6ed8
mov edx, 1
mov rcx, rbx
call fcn.1800e717c
mov eax, dword [0x180149de0]
add eax, 0xfffffffc
cmp eax, 1
ja 0x1800a9f07
movsd xmm0, qword [0x180149dd8]
mov r8d, edi
comisd xmm0, xmmword [0x18012dce0]
jb 0x1800a9d0f
movups xmm0, xmmword [0x180125138]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x180125148]
movups xmmword [rbp - 0x80], xmm1
movzx eax, word [0x180125158]
mov word [rbp - 0x70], ax
movzx eax, byte [0x18012515a]
mov byte [rbp - 0x6e], al
cmp esi, 2
jl 0x1800a9cb7
movdqa xmm4, xmmword [0x18012e100]
movdqa xmm3, xmmword [0x18012e5e0]
movdqa xmm5, xmmword [0x18012e170]
movdqa xmm0, xmmword [0x18012e230]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x74]
mov edx, dword [rsp + 0x40]
nop dword [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
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 xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
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, 0x20
jl 0x1800a9bd0
cmp r8d, 0x23
jge 0x1800a9d00
movsxd rax, r8d
lea r9, [rsp + 0x70]
add r9, rax
nop dword [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, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x23
jl 0x1800a9cd0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
jmp 0x1800a9ed8
movups xmm0, xmmword [0x1801250f0]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x180125100]
movups xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [0x180125110]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [str._XBE]
movups xmmword [rbp - 0x20], xmm1
mov eax, dword [0x180125130]
mov dword [rbp - 0x10], eax
movzx eax, word [0x180125134]
mov word [rbp - 0xc], ax
movzx eax, byte [0x180125136]
mov byte [rbp - 0xa], al
cmp esi, 2
jl 0x1800a9e87
movdqa xmm4, xmmword [0x18012e100]
mov r8d, edi
movdqa xmm3, xmmword [0x18012e5e0]
movdqa xmm5, xmmword [0x18012e170]
movdqa xmm0, xmmword [0x18012e230]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rbp - 0x4c]
mov edx, dword [rsp + 0x40]
nop dword [rax]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
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 xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
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 0x1800a9da0
cmp r8d, 0x47
jge 0x1800a9ed0
movsxd rax, r8d
lea r9, [rbp - 0x50]
add r9, rax
nop dword [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, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x47
jl 0x1800a9ea0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x60]
xor r8d, r8d
call fcn.180038a30
mov rbx, qword [rax]
test rbx, rbx
je 0x1800a9f07
xor r8d, r8d
lea rdx, [fcn.180063f50]
mov rcx, rbx
call fcn.1800e6ed8
mov edx, 1
mov rcx, rbx
call fcn.1800e717c
movsd xmm6, qword [0x18012dcd0]
movsd xmm0, qword [0x180149dd8]
ucomisd xmm0, xmm6
jp 0x1800a9faa
jne 0x1800a9faa
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
xor r8d, r8d
lea rdx, [0x18011e4f0]
lea rcx, [rsp + 0x50]
call fcn.180016750
nop
cmp byte [0x180149df8], 0
je 0x1800a9f87
mov byte [rsp + 0x30], 0
mov dword [rbp + 0x40], 2
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x18014afe8]
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x40]
call fcn.1800288e0
nop
lea rcx, [rsp + 0x50]
call fcn.18002d710
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [rax + 0xaec475], 0x239e9
mov byte [rax + 0xaec479], 0
movsd xmm0, qword [0x180149dd8]
comisd xmm0, xmmword [0x18012dcc0]
jb 0x1800aa1a6
comisd xmm6, xmm0
jbe 0x1800aa1a6
movups xmm0, xmmword [0x1801250c0]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x1801250d0]
movups xmmword [rbp - 0x80], xmm1
movsd xmm0, qword [0x1801250e0]
movsd qword [rbp - 0x70], xmm0
mov eax, dword [0x1801250e8]
mov dword [rbp - 0x68], eax
movzx eax, word [0x1801250ec]
mov word [rbp - 0x64], ax
cmp esi, 2
jl 0x1800aa122
movdqa xmm4, xmmword [0x18012e100]
movdqa xmm3, xmmword [0x18012e5e0]
movdqa xmm5, xmmword [0x18012e170]
movdqa xmm0, xmmword [0x18012e230]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x74]
mov edx, dword [rsp + 0x40]
nop word [rax + rax]
movd xmm2, edi
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdi + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edi, 8
lea rcx, [rcx + 8]
cmp edi, 0x28
jl 0x1800aa040
cmp edi, 0x2e
jge 0x1800aa15d
movsxd rax, edi
lea r8, [rsp + 0x70]
add r8, rax
nop dword [rax]
mov eax, 0x4bda12f7
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, dil
sub al, cl
add al, 0x30
xor byte [r8], al
inc edi
lea r8, [r8 + 1]
cmp edi, 0x2e
jl 0x1800aa130
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.180038a30
mov r8, qword [rax]
test r8, r8
je 0x1800aa1a6
movsxd rbx, dword [r8 + 1]
add rbx, 5
add rbx, r8
mov qword [rax], rbx
je 0x1800aa1a6
xor r8d, r8d
lea rdx, [fcn.1800ab580]
mov rcx, rbx
call fcn.1800e6ed8
mov edx, 1
mov rcx, rbx
call fcn.1800e717c
mov al, 1
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1800ec360
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rbp
ret