Function at 0x140022000
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rsi, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
cmp qword [rdx + 0x10], r12
jne 0x140022090
call fcn.14001d6f0
mov r10, qword [rax]
lea rcx, str.Invalid_path
mov qword [rsp + 0x30], rcx
lea rcx, str.Sledgehammer
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
lea r9d, [r12 + 0x23]
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesSledgehammer.5.1.0.88_build_nativeincludeChildInstance.h
lea rdx, [0x140412418]
mov rcx, rax
call qword [r10 + 0x18]
mov eax, 0xe0001002
jmp 0x140022b09
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], r12w
mov ebx, dword [rcx + 8]
lea rcx, [0x1404ac8d0]
mov qword [rbp + 0x38], rcx
call fcn.14002d900
nop
mov r8d, ebx
lea rdx, [rbp - 0x20]
call fcn.14001d430
nop
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.14002d920
nop
lea rcx, [rbp - 0x20]
call fcn.1400166f0
nop
lea rcx, [rbp + 0x38]
call fcn.14001d6c0
mov r15, qword [rbp + 0x70]
test r15, r15
jne 0x14002214f
call fcn.14001d6f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x20]
mov ecx, dword [rdi + 8]
mov dword [rsp + 0x38], ecx
lea rcx, str.Invalid_ID__u
mov qword [rsp + 0x30], rcx
lea rcx, str.Sledgehammer
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
lea r9d, [r15 + 0x2b]
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesSledgehammer.5.1.0.88_build_nativeincludeChildInstance.h
lea rdx, [0x140412418]
mov rcx, rax
call r10
mov ebx, 0xe0001005
jmp 0x140022afe
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov rcx, rdi
call fcn.1400172f0
mov r14, rax
lea r13, vtable.mb::common::system::ScopedAny_void____ptr64__int____cdecl___void____ptr64___int___cdecl_CloseHandle_void____ptr64___2__0__0_.0
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], r12
mov qword [rbp + 0x58], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x1400221db
call fcn.14001d6f0
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, str.Failed__u
mov qword [rsp + 0x30], rax
lea rcx, str.Sledgehammer
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0x33
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesSledgehammer.5.1.0.88_build_nativeincludeChildInstance.h
lea rdx, [0x140412418]
mov rcx, rdi
call rbx
mov ebx, 0xe0004007
jmp 0x140022ae3
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov rcx, qword [rsi + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 1
jb 0x140022b39
cmp qword [rsi + 0x18], 7
jbe 0x140022207
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 1
lea r9, [0x14041179c]
lea rcx, [rbp - 0x20]
call fcn.14002ac90
mov ebx, 2
mov dword [rsp + 0x50], ebx
mov r8d, ebx
lea rdx, [0x140411794]
lea rcx, [rbp - 0x20]
call fcn.14002ac00
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
or ebx, 4
mov dword [rsp + 0x50], ebx
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 7
cmova rdx, qword [rbp + 0x60]
mov r8, r15
lea rcx, [rbp - 0x40]
call fcn.14002ac00
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
or ebx, 8
mov dword [rsp + 0x50], ebx
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rcx, qword [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_StrDupW]
mov rsi, rax
lea r15, vtable.mb::common::system::ScopedAny_wchar_t____ptr64__void____ptr64____cdecl___void____ptr64___void____ptr64___cdecl_LocalFree_void____ptr64___0__0__4_.0
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x48], rax
and ebx, 0xfffffff7
mov dword [rsp + 0x50], ebx
lea rcx, [rbp - 0x60]
call fcn.1400166f0
and ebx, 0xfffffffb
mov dword [rsp + 0x50], ebx
lea rcx, [rbp - 0x40]
call fcn.1400166f0
and ebx, 0xfffffffd
mov dword [rsp + 0x50], ebx
lea rcx, [rbp - 0x20]
call fcn.1400166f0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
movups xmmword [rbp + 0x170], xmm0
movups xmmword [rbp + 0x180], xmm0
mov qword [rbp + 0x190], rax
movdqa xmmword [rbp + 0x180], xmm0
mov qword [rbp + 0x190], r12
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
movups xmmword [rbp + 0x170], xmm0
mov dword [rbp + 0x110], reloc.WS2_32.dll_WSASetLastError
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rax
lea ecx, [rax + 0xc]
cmp dword [rdi + 0x10], eax
je 0x14002248b
lea rcx, [rbp + 0x1a0]
call fcn.1400aa270
nop
lea rcx, [rbp + 0x1a0]
call fcn.1400aad70
cmp eax, 0xc
jb 0x140022528
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.1400ac5e0
test al, al
jne 0x140022528
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor edx, edx
call fcn.1400ae790
test al, al
je 0x140022528
mov dword [rbp + 0x38], 3
mov qword [rsp + 0x58], 4
lea rax, [rbp + 0x38]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x2000b
lea rax, [rsp + 0x58]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x78], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xf0]
call fcn.140021bf0
nop
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x110]
call fcn.1400168e0
nop
lea rcx, [rbp + 0xf0]
call fcn.140021f80
mov ecx, 0xc000c
lea rax, vtable.mb::common::misc::Singleton_class_mb::common::system::SysInfoUtils_.0
mov qword [rbp + 0x1a0], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x110]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140022587
call fcn.14001d6f0
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, str.CreateProcess_failed:__u
mov qword [rsp + 0x30], rax
lea rcx, str.Sledgehammer
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0x51
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesSledgehammer.5.1.0.88_build_nativeincludeChildInstance.h
lea rdx, [0x140412418]
mov rcx, rdi
call rbx
mov ebx, 0xe0003001
jmp 0x140022a30
call fcn.14001d6f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x18]
lea rcx, [0x1404117a0]
mov qword [rsp + 0x30], rcx
lea rcx, str.Sledgehammer
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0x43
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesSledgehammer.5.1.0.88_build_nativeincludeChildInstance.h
lea rdx, [0x140412418]
mov rcx, rax
call r10
nop
lea rax, vtable.mb::common::misc::Singleton_class_mb::common::system::SysInfoUtils_.0
mov qword [rbp + 0x1a0], rax
mov ebx, 0xe0001001
jmp 0x140022a30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], rax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
lea r8d, [rax + 6]
lea rdx, str.Local_
lea rcx, [rsp + 0x58]
call fcn.140030be0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
xor r8d, r8d
lea rdx, [0x140412418]
lea rcx, [rbp - 0x80]
call fcn.140030be0
nop
mov ebx, dword [rbp + 0x30]
mov qword [rbp + 0x80], r13
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x88], r12
lea r15, vtable.mb::common::system::ScopedAny_struct_IPC_TERMINATEPROCESS____ptr64__int____cdecl___void_const____ptr64___int___cdecl_UnmapViewOfFile_void_const____ptr64___0__0__4_.0
mov qword [rbp + 0x90], r15
mov qword [rbp + 0x98], r12
mov qword [rbp + 0x98], r12
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xb0], xmm1
movdqa xmm0, xmmword [0x14043ca90]
movdqa xmmword [rbp + 0xb0], xmm0
mov word [rbp + 0xa0], r12w
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xc0]
call fcn.140030a90
nop
mov qword [rbp + 0xe0], r12
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x100], xmm1
movdqa xmm0, xmmword [0x14043ca90]
movdqu xmmword [rbp + 0x100], xmm0
mov word [rbp + 0xf0], r12w
cmp qword [rsp + 0x68], 0
je 0x1400226fc
lea r8, [rbp + 0xf0]
mov edx, ebx
lea rcx, [rbp + 0x80]
call fcn.14001f6d0
test al, al
je 0x1400226fc
lea r8, [rbp + 0xf0]
lea rdx, [rsp + 0x58]
lea rcx, [rbp]
call fcn.14009b580
nop
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.14002d920
nop
lea rcx, [rbp]
call fcn.1400166f0
nop
lea rcx, [rbp + 0xf0]
call fcn.1400166f0
nop
lea rcx, [rbp - 0x80]
call fcn.1400166f0
nop
lea rcx, [rsp + 0x58]
call fcn.1400166f0
mov dl, 1
lea rcx, [rbp + 0x80]
call fcn.14001fb30
test al, al
je 0x140022964
mov rax, qword [rbp + 0x98]
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rax + 0x20], xmm0
movsd xmm1, qword [rdi + 0x30]
movsd qword [rax + 0x30], xmm1
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1400227d4
call fcn.14001d6f0
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, str.Resume_failed:__u
mov qword [rsp + 0x30], rax
lea rcx, str.Sledgehammer
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0x61
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesSledgehammer.5.1.0.88_build_nativeincludeChildInstance.h
lea rdx, [0x140412418]
mov rcx, rdi
call rbx
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0xe0003002
jmp 0x1400229ca
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
je 0x14002284c
call fcn.14001d6f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x20]
mov dword [rsp + 0x38], ebx
lea rcx, str.Wait_failed:__u
mov qword [rsp + 0x30], rcx
lea rcx, str.Sledgehammer
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
mov r9d, WSAGetLastError
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesSledgehammer.5.1.0.88_build_nativeincludeChildInstance.h
lea rdx, [0x140412418]
mov rcx, rax
call r10
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0xe0003003
jmp 0x1400229ca
mov rcx, r14
call fcn.140016b10
mov rax, qword [rbp + 0x98]
test rax, rax
jne 0x14002291a
mov rcx, qword [rbp + 0xe0]
test rcx, rcx
je 0x1400228be
mov rax, qword [rcx]
mov r10, qword [rax + 0x18]
lea rax, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 7
cmova rax, qword [rbp + 0xc0]
lea rdx, str.Not_initialized
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 0x59
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesmbcommon_vs2022.4.2.0.36_build_nativeincludeIPCMapping.h
lea rdx, str.mb::common::ipc::IPCMapping_struct_IPC_TERMINATEPROCESS_::GetStruct
call r10
call fcn.14001d6f0
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, str.Read_failed:__u
mov qword [rsp + 0x30], rax
lea rcx, str.Sledgehammer
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0x75
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesSledgehammer.5.1.0.88_build_nativeincludeChildInstance.h
lea rdx, [0x140412418]
mov rcx, rdi
call rbx
mov ebx, 0xe0004001
jmp 0x1400229ca
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdi + 0x20], xmm0
movsd xmm1, qword [rax + 0x30]
movsd qword [rdi + 0x30], xmm1
cmp dword [rdi + 0xc], 0xffffffff
jne 0x14002295f
mov dword [rbp + 0x38], 0xffffffff
lea rdx, [rbp + 0x38]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14002295f
mov eax, dword [rbp + 0x38]
mov dword [rdi + 0xc], eax
mov ebx, dword [rdi + 0xc]
jmp 0x1400229ca
call fcn.14001d6f0
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, str.Create_failed:__u
mov qword [rsp + 0x30], rax
lea rcx, str.Sledgehammer
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0x59
lea r8, str.D:JenkinsworkspaceA_MBAM3_UPDATEREXE_srcPackagesSledgehammer.5.1.0.88_build_nativeincludeChildInstance.h
lea rdx, [0x140412418]
mov rcx, rdi
call rbx
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0xe0004000
lea rcx, [rbp + 0xc0]
call fcn.1400166f0
nop
lea rcx, [rbp + 0xa0]
call fcn.1400166f0
nop
mov qword [rbp + 0x90], r15
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x1400229fd
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbp + 0x98], r12
mov qword [rbp + 0x80], r13
mov rcx, qword [rbp + 0x88]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140022a22
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x88], r12
lea r15, vtable.mb::common::system::ScopedAny_wchar_t____ptr64__void____ptr64____cdecl___void____ptr64___void____ptr64___cdecl_LocalFree_void____ptr64___0__0__4_.0
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140022a3f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140022a4f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x178]
test rcx, rcx
je 0x140022a68
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov qword [rbp + 0x178], r12
mov rax, qword [rbp + 0x180]
cmp rax, qword [rbp + 0x188]
je 0x140022a7f
mov qword [rbp + 0x188], rax
mov rcx, qword [rbp + 0x180]
test rcx, rcx
je 0x140022acd
mov rdx, qword [rbp + 0x190]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022ab6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022b33
call fcn.1402b5c4c
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x180], xmm0
mov qword [rbp + 0x190], r12
mov qword [rbp + 0x40], r15
test rsi, rsi
je 0x140022adf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x50], r13
lea rdx, [r14 - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140022afa
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x58], r12
lea rcx, [rbp + 0x60]
call fcn.1400166f0
mov eax, ebx
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.1402b5c00
mov rbx, qword [rsp + 0x460]
add rsp, 0x410
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1402c5d0c
nop
call fcn.140016040
int3