Function at 0x180050a80
Capabilities:
Create process on windows
Encode data using xor
Query environment variable
Terminate process

Disassembly:
sub rsp, 0x288
mov rax, qword [0x18008a040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x180050f0e
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x180050f0e
mov qword [rsp + 0x280], rbx
lea rdx, [rsp + 0x30]
movaps xmmword [rsp + 0x270], xmm7
call fcn.180050f20
movdqa xmm7, xmmword [0x180080290]
mov r10, rax
mov ebx, dword [0x18008a090]
cmp byte [rax + 7], 0
je 0x180050c21
cmp ebx, 2
jl 0x180050be2
movdqa xmm2, xmmword [0x180080250]
movdqa xmm3, xmmword [0x180080260]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x180080910]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmmword [0x180080270]
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rax]
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800802a0]
xorps xmm2, xmm0
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
movd dword [rax], xmm2
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180080270]
psubd xmm3, xmm0
movd xmm0, dword [rax + 4]
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x1800802a0]
xorps xmm3, xmm0
movd dword [rax + 4], xmm3
jmp 0x180050c21
mov r9, r10
xor r8d, r8d
nop dword [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x180050bf0
mov rdx, r10
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
call fcn.180050f30
mov r10, rax
cmp byte [rax + 7], 0
je 0x180050d81
cmp ebx, 2
jl 0x180050d41
movdqa xmm3, xmmword [0x180080250]
movdqa xmm2, xmmword [0x180080260]
movdqa xmm1, xmm3
movdqa xmm4, xmmword [0x180080910]
movdqa xmm0, xmm3
mov eax, dword [0x1800802a0]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmmword [0x180080270]
psubd xmm3, xmm0
punpckldq xmm1, xmm2
andps xmm3, xmm7
movd xmm0, eax
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
pmuldq xmm1, xmm4
movd xmm0, dword [r10]
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
movd dword [r10], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180080270]
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [r10 + 4]
xorps xmm2, xmm0
movd dword [r10 + 4], xmm2
jmp 0x180050d81
mov r9, r10
xor r8d, r8d
nop word [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x180050d50
mov rdx, r10
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
call fcn.180050f40
mov rcx, rax
cmp byte [rax + 7], 0
je 0x180050ec1
cmp ebx, 2
jl 0x180050e8a
movdqa xmm3, xmmword [0x180080250]
movdqa xmm2, xmmword [0x180080260]
movdqa xmm1, xmm3
movdqa xmm4, xmmword [0x180080910]
movdqa xmm0, xmm3
mov eax, dword [0x1800802a0]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmmword [0x180080270]
psubd xmm3, xmm0
punpckldq xmm1, xmm2
andps xmm3, xmm7
movd xmm0, eax
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
pmuldq xmm1, xmm4
movd xmm0, dword [rcx]
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
movd dword [rcx], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180080270]
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx + 4]
xorps xmm2, xmm0
movd dword [rcx + 4], xmm2
jmp 0x180050ec1
mov r10, rcx
xor r9d, r9d
mov eax, 0x5397829d
lea r10, [r10 + 1]
imul r9d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, r9b
inc r9d
sub al, dl
add al, 0x34
xor byte [r10 - 1], al
cmp r9d, 8
jl 0x180050e90
mov r8d, 0x104
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
movaps xmm7, xmmword [rsp + 0x270]
mov rbx, qword [rsp + 0x280]
test eax, eax
je 0x180050f0e
mov dword [rsp + 0x28], 0
lea r9, [rsp + 0x150]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3