Function at 0x14005b63c
Capabilities:
Create process on windows
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp + 0x48], rax
xor edi, edi
xorps xmm0, xmm0
mov r13, rcx
mov dword [rsp + 0x70], edi
xor edx, edx
mov dword [rsp + 0x6c], edi
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x80], rdi
lea r8d, [rdi + 0x68]
mov qword [rsp + 0x50], rdi
mov esi, edi
mov qword [rsp + 0x60], rdi
mov r14d, edi
mov qword [rbp - 0x78], rdi
mov r12d, edi
mov dword [rsp + 0x74], edi
movups xmmword [rbp + 0x38], xmm0
mov r15d, edi
movups xmmword [rbp - 0x58], xmm0
call sub.msvcrt.dll_memset
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x70], xmm0
test r13, r13
je 0x14005bd56
cmp word [r13], di
je 0x14005bd56
mov r8, r13
lea rdx, str.wimserv.exe__s
lea rcx, [rbp - 0x80]
call fcn.14000ca00
mov ebx, eax
test eax, eax
jns 0x14005b713
mov r9d, eax
lea r8d, [rdi + 0x72]
lea rdx, str.onecore_base_ntsetupopktoolsosimagewimgapilib_rpccomm.c
mov qword [rsp + 0x20], rdi
lea rcx, str.LaunchWimserv
call fcn.140046874
jmp 0x14005bb2d
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.1400464e0
mov ebx, eax
test eax, eax
jns 0x14005b74c
mov r9d, eax
mov qword [rsp + 0x20], rdi
mov r8d, 0x79
lea rdx, str.onecore_base_ntsetupopktoolsosimagewimgapilib_rpccomm.c
lea rcx, str.LaunchWimserv
call fcn.140046874
jmp 0x14005bb28
mov r15, qword [rsp + 0x60]
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
cmp eax, 0x102
je 0x14005b80d
or r12d, 0xffffffff
cmp eax, r12d
jne 0x14005b7e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
mov r14d, 0x80070000
movzx eax, ax
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x14005b7b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x14005b7b7
mov ebx, 0x80004005
mov r9d, ebx
mov qword [rsp + 0x20], rdi
mov r8d, 0x85
lea rdx, str.onecore_base_ntsetupopktoolsosimagewimgapilib_rpccomm.c
lea rcx, str.LaunchWimserv
call fcn.140046874
mov r14, qword [rsp + 0x50]
mov r12, rsi
jmp 0x14005bb2d
mov ebx, 0xc1420118
mov qword [rsp + 0x20], rdi
mov r9d, ebx
lea rdx, str.onecore_base_ntsetupopktoolsosimagewimgapilib_rpccomm.c
mov r8d, 0x89
lea rcx, str.LaunchWimserv
call fcn.140046874
jmp 0x14005b7dd
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
nop dword [rax + rax]
or dword [rbp - 4], 1
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x74], eax
mov dword [rbp - 0x40], 0x68
mov word [rbp], di
call fcn.14005c680
mov ebx, eax
test eax, eax
jns 0x14005b86b
mov qword [rsp + 0x20], rdi
lea rdx, str.onecore_base_ntsetupopktoolsosimagewimgapilib_rpccomm.c
mov r9d, eax
mov r8d, 0x98
lea rcx, str.LaunchWimserv
call fcn.140046874
mov r14, qword [rsp + 0x50]
jmp 0x14005bb2d
lea r9, [rsp + 0x68]
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x78]
mov qword [rsp + 0x78], rdi
lea rdx, [0x14005c7e0]
mov dword [rsp + 0x68], edi
xor ecx, ecx
call fcn.14005c458
lea rdi, str.onecore_base_ntsetupopktoolsosimagewimgapilib_rpccomm.c
mov ebx, eax
test eax, eax
jns 0x14005b8c2
and qword [rsp + 0x20], rsi
lea rcx, str.GetSysDir
mov r9d, eax
mov r8d, 0x382
mov rdx, rdi
call fcn.140046874
mov r14, qword [rsp + 0x78]
jmp 0x14005b8cc
mov r12, qword [rsp + 0x78]
mov qword [rsp + 0x58], r12
test r14, r14
je 0x14005b8f1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x14005b90b
and qword [rsp + 0x20], rsi
mov r9d, ebx
mov r8d, 0x9d
mov rdx, rdi
jmp 0x14005b855
mov rax, qword [rsp + 0x50]
mov r14d, 0x80070000
mov qword [rbp + 0x30], rax
xor eax, eax
mov qword [rbp + 0x38], r12
or r12d, 0xffffffff
mov dword [rsp + 0x68], eax
cmp eax, 2
jae 0x14005bd1b
test rsi, rsi
je 0x14005b95a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, dword [rsp + 0x68]
mov ecx, eax
lea rdx, str.wimserv.exe
mov rcx, qword [rbp + rcx*8 + 0x30]
call fcn.14002f614
mov rsi, rax
mov r15, rax
test rax, rax
je 0x14005b97c
xor ebx, ebx
jmp 0x14005b9bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x14005bd0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14005bd10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, r12d
je 0x14005ba4b
test al, 0x10
jne 0x14005ba4b
mov rdx, qword [rbp - 0x80]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x40]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rcx, rsi
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop dword [rax + rax]
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x14005ba4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8, rsi
lea rdx, str.Failed_to_create_process_on___s___GLE0x_x
mov r9d, eax
mov dword [rsp + 0x6c], eax
mov ecx, 0x40000
call fcn.140046708
mov eax, dword [rsp + 0x68]
inc eax
cmp dword [rsp + 0x70], 0
mov dword [rsp + 0x68], eax
je 0x14005b928
mov r9d, dword [rbp - 0x60]
lea rdx, str.Wimserv_process_started_for_mount_guid__s__PID_is__u
mov r8, r13
mov ecx, 0x20000
call fcn.140046708
mov rax, qword [rsp + 0x60]
lea rdx, [rbp - 0x58]
xor esi, esi
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x70]
mov r9d, 0x493e0
xor r8d, r8d
mov qword [rbp - 0x50], rax
mov dword [rsp + 0x20], esi
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
nop dword [rax + rax]
cmp eax, 1
je 0x14005bc74
cmp eax, 0x102
je 0x14005bc4a
mov rsi, r15
cmp eax, r12d
jne 0x14005bb1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14005bafb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x14005bb00
mov ebx, 0x80004005
mov r8d, 0x11c
mov rdx, rdi
lea rcx, str.LaunchWimserv
and qword [rsp + 0x20], 0
mov r9d, ebx
call fcn.140046874
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14005bb42
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14005bb57
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rsi, rsi
je 0x14005bb7c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test r14, r14
je 0x14005bba1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test r12, r12
je 0x14005bbc6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
cmp dword [rsp + 0x74], 0
je 0x14005bbdd
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
nop dword [rax + rax]
test r15, r15
je 0x14005bbf1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rdi, qword [rbp - 0x80]
test rdi, rdi
je 0x14005bc1a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140096bd0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ebx, 0xc142011a
mov r8d, 0xfb
mov qword [rsp + 0x20], rsi
lea rcx, str.LaunchWimserv
mov rdx, rdi
mov r9d, ebx
call fcn.140046874
mov rsi, r15
jmp 0x14005bb1e
mov rcx, qword [rbp - 0x70]
lea rdx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop dword [rax + rax]
test eax, eax
jne 0x14005bcce
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14005bcc1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x14005bcc6
mov ebx, 0x80004005
mov r8d, 0x106
jmp 0x14005bc55
mov eax, dword [rsp + 0x6c]
lea rcx, str.LaunchWimserv
mov qword [rsp + 0x20], rsi
mov rdx, rdi
test eax, eax
jne 0x14005bcf5
mov ebx, 0xc142011b
mov r8d, 0x10a
jmp 0x14005bc64
movzx ebx, ax
mov r8d, 0x10e
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x14005bc64
mov ebx, 0x80004005
mov r8d, 0xbc
jmp 0x14005bb06
mov eax, dword [rsp + 0x6c]
lea rcx, str.LaunchWimserv
mov rdx, rdi
test eax, 0xfffffffd
je 0x14005bd46
movzx ebx, ax
mov r8d, 0xe9
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x14005bb10
mov ebx, 0xc1420119
mov r8d, 0xe4
jmp 0x14005bb10
mov ebx, 0x80004005
mov r8d, 0x6c
mov r9d, ebx
jmp 0x14005b6f6