Function at 0x140058f20
Capabilities:
Delete file
Encode data using xor
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x1b0
mov rax, qword [0x1400b9040]
xor rax, rsp
mov qword [rsp + 0x190], rax
movzx eax, word [0x1400ac1c0]
xor ecx, ecx
cmp dword [0x1400b9008], 2
movups xmm0, xmmword [0x1400ac1a0]
mov word [rsp + 0x40], ax
movups xmm1, xmmword [0x1400ac1b0]
movzx eax, byte [0x1400ac1c2]
mov byte [rsp + 0x42], al
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm1
jl 0x1400590d4
movdqa xmm0, xmmword [str.8888888888888888]
lea rdx, [rsp + 0x24]
movdqa xmm5, xmmword [0x1400ac860]
movdqa xmm4, xmmword [0x1400aca60]
movdqa xmmword [rsp + 0x50], xmm0
mov r8d, dword [rsp + 0x50]
movaps xmmword [rsp + 0x1a0], xmm6
movdqa xmm6, xmmword [str.8888]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400ac8d0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400ac8d0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x20
jl 0x140058fc0
movaps xmm6, xmmword [rsp + 0x1a0]
cmp ecx, 0x23
jge 0x140059111
movsxd rax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop
mov eax, 0x92492493
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x38
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x23
jl 0x1400590e0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140059144
lea r9d, [rax + 0x11]
xor ecx, ecx
lea r8, str.Error
lea rdx, str.Failed_to_create_process_snapshot_
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400591d6
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x140059190
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, str.Error
lea rdx, str.Failed_to_retrieve_first_process_
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400591d6
lea rdx, str.loader.exe
lea rcx, [rsp + 0x8c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov rcx, rbx
test eax, eax
je 0x1400591c5
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140059190
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400591d6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14007a320
add rsp, 0x1b0
pop rbx
ret