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

Disassembly:
sub rsp, 0x288
mov rax, qword [0x14008a040]
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 0x140057821
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x140057821
mov qword [rsp + 0x280], rbx
lea rdx, [rsp + 0x30]
movaps xmmword [rsp + 0x270], xmm7
call fcn.140057830
movdqa xmm7, xmmword [0x14007fa10]
mov r10, rax
mov ebx, dword [0x14008a090]
cmp byte [rax + 7], 0
je 0x140057514
cmp ebx, 2
jl 0x1400574da
movdqa xmm2, xmmword [0x14007f9d0]
movdqa xmm3, xmmword [0x14007f9e0]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1400800e0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmmword [0x14007fa00]
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rax]
andps xmm2, xmm7
packuswb xmm2, xmm2
pmuldq xmm1, xmm4
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14007fa20]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rax], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14007fa00]
psubd xmm3, xmm0
movd xmm0, dword [rax + 4]
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x14007fa20]
xorps xmm3, xmm0
movd dword [rax + 4], xmm3
jmp 0x140057514
mov r9, r10
xor r8d, r8d
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x1400574e0
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.140057840
mov r10, rax
cmp byte [rax + 7], 0
je 0x140057684
cmp ebx, 2
jl 0x14005763c
movdqa xmm3, xmmword [0x14007f9d0]
movdqa xmm2, xmmword [0x14007f9e0]
movdqa xmm1, xmm3
movdqa xmm4, xmmword [0x1400800e0]
movdqa xmm0, xmm3
mov eax, dword [0x14007fa20]
punpckhdq xmm0, xmm3
punpckldq xmm1, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmmword [0x14007fa00]
psubd xmm3, xmm0
punpckldq xmm1, xmm2
andps xmm3, xmm7
pmuldq xmm1, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [r10]
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
movd dword [r10], xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14007fa00]
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 0x140057684
mov r9, r10
xor r8d, r8d
nop dword [rax]
nop word [rax + rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x140057650
mov rdx, r10
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
call fcn.140057850
mov rcx, rax
cmp byte [rax + 7], 0
je 0x1400577d4
cmp ebx, 2
jl 0x140057795
movdqa xmm3, xmmword [0x14007f9d0]
movdqa xmm2, xmmword [0x14007f9e0]
movdqa xmm1, xmm3
movdqa xmm4, xmmword [0x1400800e0]
movdqa xmm0, xmm3
mov eax, dword [0x14007fa20]
punpckhdq xmm0, xmm3
punpckldq xmm1, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmmword [0x14007fa00]
psubd xmm3, xmm0
punpckldq xmm1, xmm2
andps xmm3, xmm7
pmuldq xmm1, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [rcx]
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
movd dword [rcx], xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14007fa00]
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 0x1400577d4
mov r10, rcx
xor r9d, r9d
nop dword [rax + rax]
mov eax, 0x8fb823ef
lea r10, [r10 + 1]
imul r9d
add edx, r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, r9b
inc r9d
sub al, dl
add al, 0x34
xor byte [r10 - 1], al
cmp r9d, 8
jl 0x1400577a0
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 0x140057821
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