Function at 0x140004bd0
Capabilities:
Create process on windows
Read file on windows
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x330
mov rdi, r9
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140036138]
xor rax, rsp
mov qword [rsp + 0x328], rax
mov dword [r9], 0
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005254
lea rcx, [0x140036e28]
lea rdx, str.Starting_update_process_as_the_service_in_session_0.
call fcn.1400084d0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], 0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x80], 0x68
lea rax, str.winsta0Default
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x58]
mov edx, ebx
mov r8, rsi
xor r9d, r9d
call fcn.140002180
cmp ebx, 4
jne 0x140004cdc
mov rcx, qword [rsi + 0x18]
lea rdx, [0x14002faae]
call fcn.140014858
test eax, eax
jne 0x140004ce3
mov ebp, 2
jmp 0x140004d2b
mov ebp, 3
jl 0x140004d2b
mov rcx, qword [rsi + 0x18]
lea rdx, str._replace
call fcn.14000c91c
mov ebp, 2
test rax, rax
jne 0x140004d2b
mov r14, qword [rsi + 0x18]
nop word cs:[rax + rax]
movzx ecx, word [r14]
test cx, cx
je 0x140004d2b
add r14, 2
call fcn.140014114
test eax, eax
jne 0x140004d10
mov ebp, 3
cmp ebp, ebx
jg 0x140004d50
lea rax, [0x14002fad0]
mov qword [rsp + 0x90], rax
or byte [rsp + 0xbc], 1
mov word [rsp + 0xc0], 0
lea rcx, str.MOZ_USING_SERVICE1
call fcn.140012064
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005296
mov r8, qword [rsp + 0x58]
lea rcx, [0x140036e28]
lea rdx, str.Starting_service_with_cmdline:__ls
call fcn.1400084d0
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsi]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rdi], eax
test eax, eax
je 0x140004e4c
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400052d8
lea rcx, [0x140036e28]
lea rdx, str.Process_was_started..._waiting_on_result.
call fcn.1400084d0
mov rcx, qword [rsp + 0x60]
mov edx, 0xdbba0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
cmp eax, 0x102
jne 0x140004e9f
mov rcx, qword [rsp + 0x60]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ebp, ebp
xor edi, edi
jmp 0x140004f2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000531a
mov r9, qword [rsp + 0x58]
mov r8, qword [rsi]
mov dword [rsp + 0x20], edi
lea rcx, [0x140036e28]
lea rdx, str.Could_not_create_process_as_current_user__updaterPath:__ls__cmdLine:__ls.____lu_
call fcn.1400086f0
xor edi, edi
jmp 0x1400051d4
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [0x140037038]
mov edx, dword [0x140037098]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
mov edx, dword [rdx + 4]
test eax, eax
je 0x140004f0a
cmp ecx, edx
jg 0x14000539e
mov r8d, dword [rsp + 0x110]
lea rcx, [0x140036e28]
lea rdx, str.Process_finished_with_return_code__lu.
call fcn.1400084d0
xor edi, edi
cmp dword [rsp + 0x110], 0
sete dil
xor ebp, ebp
jmp 0x140004f2c
cmp ecx, edx
jg 0x140005464
lea rcx, [0x140036e28]
lea rdx, str.Process_finished_but_could_not_obtain_return_code.
call fcn.1400086f0
xor edi, edi
mov ebp, 1
mov rcx, qword [rsp + 0x60]
mov r14, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r14
mov rcx, qword [rsp + 0x68]
call r14
mov r14, qword [rsi + 8]
lea r15, [rsp + 0x110]
mov r8d, 0x20a
mov rcx, r15
xor edx, edx
call fcn.14000c660
lea rdx, str..status
mov rcx, r14
mov r8, r15
call fcn.1400090c0
test eax, eax
je 0x140005022
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x110]
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000505f
xorps xmm0, xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0xf0]
lea r9, [rsp + 0xec]
mov rcx, r14
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005094
movabs rax, 0x676e69796c707061
xor r15d, r15d
cmp qword [rsp + 0xf0], rax
sete r15b
mov r12d, 1
jmp 0x1400050d2
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000535c
lea rcx, [0x140036e28]
lea rdx, str.Could_not_get_path_for_the_secure_update_status_file
call fcn.1400086f0
jmp 0x1400051d4
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400053e0
lea rcx, [0x140036e28]
lea rdx, str.Could_not_open_update.status_file
jmp 0x1400050c7
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400054a6
lea rcx, [0x140036e28]
lea rdx, str.Could_not_read_from_update.status_file
call fcn.1400086f0
xor r15d, r15d
xor r12d, r12d
mov rax, r14
inc rax
cmp rax, 2
jae 0x1400050e8
test r12d, r12d
jne 0x1400050fa
jmp 0x1400051d4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12d, r12d
je 0x1400051d4
test r15d, r15d
je 0x1400051d4
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov ecx, dword [rcx + 4]
test edi, edi
je 0x14000518d
cmp eax, ecx
jg 0x140005422
lea rcx, [0x140036e28]
lea rdx, str.update.status_is_still_applying_even_though_update_was_successful.
call fcn.1400084d0
mov rcx, qword [rsi + 8]
mov edx, 0x1d
call fcn.140009960
xor edi, edi
test eax, eax
jne 0x1400051d4
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000552a
lea rcx, [0x140036e28]
lea rdx, str.Could_not_write_update.status_still_applying_on_success_error.
jmp 0x140005055
cmp eax, ecx
jg 0x1400054e8
lea rcx, [0x140036e28]
lea rdx, str.update.status_is_still_applying_and_update_was_not_successful.
call fcn.1400086f0
cmp ebx, 0x102
mov eax, 0x32
mov ecx, 0x1e
cmove ecx, eax
test ebp, ebp
mov edx, 0x33
cmove edx, ecx
mov rcx, qword [rsi + 8]
call fcn.140009960
xor edi, edi
test eax, eax
je 0x14000521c
lea rcx, str.MOZ_USING_SERVICE
call fcn.140012064
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], 0
test rcx, rcx
je 0x1400051f8
call fcn.14000a958
mov rcx, qword [rsp + 0x328]
xor rcx, rsp
call fcn.14000ac40
mov eax, edi
add rsp, 0x330
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000556c
lea rcx, [0x140036e28]
lea rdx, str.Could_not_write_update.status_still_applying_on_failure_error.
jmp 0x140005055
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140004c27
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140004c27
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140004d81
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140004d81
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140004e07
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140004e07
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140004e79
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140004e79
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140005047
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140005047
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140004edd
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140004edd
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140005084
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140005084
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x14000512e
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x14000512e
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140004f12
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140004f12
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x1400050b9
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x1400050b9
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140005195
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140005195
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x14000517a
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x14000517a
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140005241
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140005241