Function at 0x140003bf0
Capabilities:
Acquire debug privileges
Check for time delay via gettickcount
Get common file path
Query environment variable
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov edx, 2
mov rdi, rcx
lea rcx, str.SeDebugPrivilege
lea r8d, [rdx + 2]
call fcn.14001b30c
mov eax, dword [rsp + 0x1d0]
mov r13d, 0x80
mov ecx, eax
mov r14d, eax
mov edx, eax
and ecx, 8
mov ebx, eax
mov ebp, eax
mov dword [rsp + 0x6c], ecx
mov ecx, eax
and edx, 0x20
and ecx, 0x18
and ebp, 0x100
xor esi, esi
mov dword [rsp + 0xb0], ecx
mov ecx, eax
and eax, 0x200
and ecx, 0x40
mov dword [rsp + 0x1d0], eax
mov rax, qword [rsp + 0x1c0]
and r14d, 4
and ebx, r13d
mov dword [rsp + 0xd4], edx
mov dword [rsp + 0x7c], ecx
mov dword [rsp + 0x78], ebp
lea r8d, [r13 - 0x7f]
cmp rax, rsi
je 0x140003ca0
bt dword [rax + 0x3c], 0x1b
cmovb r14d, r8d
cmp edx, esi
cmovne r14d, esi
cmp rax, rsi
je 0x140003cba
test byte [rax + 0x3c], r8b
je 0x140003cba
mov ecx, r8d
cmp word [rax + 0x40], si
je 0x140003cbc
mov ecx, esi
cmp rax, rsi
je 0x140003ccf
test byte [rax + 0x3c], r8b
je 0x140003ccf
cmp word [rax + 0x40], si
cmove r14d, r8d
cmp ecx, esi
lea rdx, [0x14010d830]
lea rax, [0x14010d568]
cmovne rax, rdx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0xa8], rax
call fcn.14005fa18
cmp rdi, rsi
je 0x140003d29
lea rdx, [0x14010d818]
lea rcx, [rsp + 0x70]
call fcn.14006adb0
lea rcx, [rsp + 0x70]
mov rdx, rdi
call fcn.14005fb54
lea rdx, [0x14010d814]
lea rcx, [rsp + 0x70]
call fcn.14005fb54
cmp ebx, esi
je 0x140003d38
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov r15, rax
jmp 0x140003d3b
mov r15, rsi
mov qword [rsp + 0xb8], r15
mov r12, r15
cmp r15, rsi
je 0x140003d6b
cmp word [r15], si
je 0x140003d67
add r12, 2
cmp word [r12], si
jne 0x140003d51
add r12, 2
cmp word [r12], si
jne 0x140003d51
add r12, 2
lea rcx, [rsp + 0x40]
sub r12, r15
call fcn.14005fa18
or rax, 0xffffffffffffffff
lea rdx, str._nfb__incmd_PECMD_EXEC__InstallService
lea rcx, [rsp + 0x40]
mov r9, rax
mov r8, rax
call fcn.14005fbd4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x40]
mov edx, 0xa000
mov dword [rsp + 0x84], eax
call fcn.14005fb18
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0xc0], eax
call fcn.14005fa18
mov byte [rsp + 0x48], sil
mov dword [rsp + 0xf0], esi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rsp + 0x111]
mov qword [rsp + 0x90], rsi
mov dword [rsp + 0xd0], eax
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x88], rsi
cmp word [rax], si
mov rdi, rsi
mov ebx, esi
sete byte [rsp + 0x4c]
xor edx, edx
mov byte [rsp + 0x110], sil
lea r8d, [rdx + 0x27]
call fcn.1400f3900
lea rax, [rsp + 0x110]
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x100], rax
mov dword [rsp + 0xf8], 0x18
mov dword [rsp + 0x108], esi
call fcn.14005acd4
movsxd rbp, ebp
mov qword [rsp + 0x50], rbp
jmp 0x140003e61
mov ebx, dword [rsp + 0x58]
mov al, byte [rsp + 0x4c]
inc ebx
mov dword [rsp + 0x58], ebx
test bl, 1
jne 0x140003ed8
cmp al, sil
jne 0x140003ed8
mov rbx, qword [rsp + 0x40]
lea rax, [r12 + 0x210]
mov dword [rsp + 0x68], esi
mov qword [rsp + 0xe8], rax
movsxd rax, dword [rsp + 0x84]
lea rbp, [rax + rax]
mov qword [rsp + 0xe0], rbp
add rbx, rbp
call fcn.14005a4e4
mov r9d, dword [rsp + 0xc0]
lea r8, str.EXEC.SYS
lea rdx, str.__PECMD._s._u._I64u
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rbx, [r12 + 0x210]
jmp 0x140003f1a
mov rcx, qword [rsp + 0x40]
neg al
lea rdx, str.PECMD2012.EXESVC
sbb eax, eax
neg eax
inc eax
mov dword [rsp + 0x68], eax
movsxd rax, dword [rsp + 0x84]
lea rbp, [rax + rax]
add rcx, rbp
mov qword [rsp + 0xe0], rbp
call qword [sym.imp.USER32.dll_wsprintfW]
mov ebx, 0x100000
mov qword [rsp + 0xe8], rbx
cmp qword [rsp + 0x50], rsi
jne 0x140003f2f
mov byte [rsp + 0x1c0], sil
cmp dword [rsp + 0x68], esi
je 0x140003f37
mov byte [rsp + 0x1c0], 1
or rax, 0xffffffffffffffff
lea rdx, str.Globalpecmd2012.shm.
lea rcx, [rsp + 0x60]
mov r9, rax
mov r8, rax
call fcn.14005fbd4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x60]
add rdx, rbp
mov dword [rsp + 0xd8], eax
call fcn.14005fb54
add ebx, 0x88
mov dword [rsp + 0x80], ebx
mov r8, qword [rsp + 0x60]
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rbp, rax
mov qword [rsp + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbp, rsi
jne 0x140003ff7
cmp qword [rsp + 0x50], rsi
jne 0x140004005
mov ecx, dword [rsp + 0x68]
cmp ecx, 1
jne 0x140004005
mov rbp, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0xd0]
cmp eax, 0x7530
jae 0x1400046c0
xor r9d, r9d
lea rcx, [0x14012d0c0]
xor r8d, r8d
lea edx, [r9 + 5]
call fcn.14001ec3c
cmp rbp, rsi
je 0x140003e5d
jmp 0x140003f83
cmp byte [rsp + 0x1c0], sil
je 0x1400041cc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x1c0], sil
je 0x14000411c
mov rax, qword [rsp + 0x90]
cmp rax, rsi
jne 0x14000409e
lea rdx, str.Globalpecmd2012.lock.
lea rcx, [rsp + 0xa0]
or r8, 0xffffffffffffffff
call fcn.14006acd8
mov r11, qword [rsp + 0x40]
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0xa0]
add rdx, r11
call fcn.14005fb54
mov r8, qword [rsp + 0xa0]
lea rcx, [rsp + 0xf8]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x90], rax
call fcn.140057768
mov rax, qword [rsp + 0x90]
cmp rax, rsi
je 0x140003fb9
cmp qword [rsp + 0x88], rsi
jne 0x14000411c
lea rdx, str.Globalpecmd2012.event.
lea rcx, [rsp + 0x98]
or r8, 0xffffffffffffffff
call fcn.14006acd8
mov r11, qword [rsp + 0x40]
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x98]
add rdx, r11
call fcn.14005fb54
mov r9, qword [rsp + 0x98]
lea rcx, [rsp + 0xf8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x88], rax
cmp rax, rsi
jne 0x140004117
call fcn.140057768
jmp 0x140003fb9
call fcn.140057768
cmp rbp, rsi
jne 0x14000419f
mov rax, qword [rsp + 0x60]
xor r9d, r9d
lea rdx, [rsp + 0xf8]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 4]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, rax
mov qword [rsp + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbp, rsi
jne 0x140004191
mov rbp, qword [rsp + 0x50]
cmp rbp, rsi
je 0x140004176
cmp eax, 5
je 0x1400046d3
jmp 0x140003fbe
xor r9d, r9d
lea rcx, [0x14012d0c0]
xor r8d, r8d
lea edx, [r9 + 5]
call fcn.14001ec3c
jmp 0x140003e5d
cmp qword [rsp + 0x50], rsi
jne 0x14000419f
cmp eax, 0xb7
je 0x1400041cc
xor r9d, r9d
movsxd rax, ebx
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
cmp rax, rsi
jne 0x1400041da
mov rcx, qword [rsp + 0xc8]
jmp 0x1400041cf
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003e5d
mov r8, r13
xor edx, edx
mov rcx, rax
call fcn.1400f3900
cmp byte [rsp + 0x1c0], sil
je 0x140004291
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x188]
mov ebx, eax
add ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r15d, [rax + rax + 2]
lea eax, [r15 + rbx]
movsxd r13, eax
mov rax, qword [rsp + 0xe8]
cmp r13, rax
cmovg r13, rax
cmp dword [rsp + 0x6c], esi
je 0x140004241
cmp dword [rsp + 0x78], esi
jne 0x140004241
or qword [rbp + 0x28], 1
mov rdx, qword [rsp + 0xa8]
movsxd rbx, ebx
lea rcx, [rbp + 0x80]
lea r8, [rbx + 2]
call fcn.14001c8fc
mov rdx, qword [rsp + 0x188]
lea rcx, [rbx + rbp + 0x80]
movsxd r8, r15d
call fcn.14001c8fc
mov r15, qword [rsp + 0xb8]
mov ebx, dword [rsp + 0x80]
mov dword [rbp + 0x18], r13d
mov word [r13 + rbp + 0x7e], si
sub r13, 0xffffffffffffff80
cmp dword [rsp + 0x1d0], esi
je 0x140004310
lea rcx, [rsp + 0x50]
mov edx, 0x20a
call fcn.14005fa8c
mov rax, qword [rsp + 0x50]
mov ecx, 0x208
mov word [rax], si
mov rdx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, qword [rsp + 0x50]
sub ebx, r13d
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
movsxd rax, ebx
lea rdi, [rcx + rcx + 2]
cmp rdi, rax
cmovg rdi, rax
cmp rdi, rsi
jle 0x140004306
mov rdx, qword [rsp + 0x50]
lea rbx, [r13 + rbp]
mov r8, rdi
mov rcx, rbx
call fcn.14001c8fc
mov dword [rbp + 0x1c], edi
mov word [rbx + rdi - 2], si
add r13, rdi
lea rcx, [rsp + 0x50]
call fcn.140057768
mov ebx, dword [rsp + 0x80]
mov eax, ebx
sub eax, r13d
movsxd rcx, eax
cmp r12, rcx
cmovg r12, rcx
cmp r15, rsi
je 0x14000434d
cmp r12, 4
jbe 0x14000434d
lea rcx, [r13 + rbp]
mov r8, r12
mov rdx, r15
call fcn.14001c8fc
add r13, r12
mov dword [r13 + rbp - 4], esi
mov dword [rbp + 0x20], r12d
mov r12, qword [rsp + 0x180]
cmp r12, rsi
je 0x140004392
mov rcx, r12
sub ebx, r13d
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [rax + rax + 2]
cmp edi, ebx
cmovg edi, ebx
cmp edi, esi
jle 0x140004392
movsxd rbx, edi
lea rcx, [r13 + rbp]
mov rdx, r12
mov r8, rbx
call fcn.14001c8fc
add r13, rbx
mov dword [rbp + 0x24], edi
mov word [r13 + rbp - 2], si
mov eax, 0x10
mov qword [r13 + rbp + 8], rsi
mov dword [r13 + rbp], eax
mov dword [r13 + rbp + 4], eax
mov dword [rbp + 0x30], eax
mov qword [rbp], 0xffffffffffffffff
cmp byte [rsp + 0x1c0], sil
je 0x1400043d1
mov rax, qword [rsp + 0x88]
cmp rax, rsi
je 0x1400043d1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r15, dword [rsp + 0xd8]
mov edi, dword [rsp + 0x78]
mov ebx, dword [rsp + 0x68]
movsxd r11, eax
mov rax, qword [rsp + 0x60]
lea rdx, [rax + r15*2]
lea r8, [0x14010d568]
lea rax, [0x14010d728]
mov r9, r8
cmp edi, esi
cmovne r9, rax
lea rax, [0x14010d718]
cmp ebx, esi
cmovne r8, rax
mov rax, qword [rsp + 0x40]
lea rcx, [rax + r11*2]
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rdx, str.___desk__s__s___ack:_s__s_s__s
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rsi
lea r12, [0x14012d0c0]
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x4c]
mov r8, r12
mov rcx, r12
mov qword [rsp + 0x28], rsi
mov word [rsp + 0x4c], si
mov dword [rsp + 0x20], esi
call fcn.14000d858
mov byte [rsp + 0x48], 1
mov qword [rsp + 0xf0], rax
cmp ebx, esi
jne 0x1400044a9
cmp edi, esi
jne 0x1400044a9
mov r13d, esi
jmp 0x1400044d7
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
lea rdx, str._wait__s
lea r8, [rax + r15*2]
mov r13d, 1
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x40]
mov rcx, r12
call fcn.14001f0bc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
jmp 0x140004506
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
jae 0x140004510
xor r9d, r9d
lea rcx, [0x14012d0c0]
xor r8d, r8d
lea edx, [r9 + 1]
call fcn.14001ec3c
mov r12, qword [rbp]
cmp r12, 0xffffffffffffffff
je 0x1400044e1
mov rcx, qword [rsp + 0xb8]
cmp rcx, rsi
je 0x140004523
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rdi, qword [rbp + 0x10]
mov rbp, qword [rbp + 8]
cmp rdi, rsi
jle 0x1400045d6
mov r8d, edi
xor edx, edx
mov ecx, 0x100400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, rsi
jne 0x140004565
mov r8d, edi
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x6c], esi
je 0x140004584
mov rax, qword [rsp + 0x1c8]
cmp rax, rsi
je 0x140004584
mov dword [rax + 0x10], edi
mov qword [rax], rbx
mov eax, dword [rsp + 0x7c]
cmp eax, esi
jne 0x14000459a
cmp r14d, esi
je 0x14000459a
cmp dword [rsp + 0xd4], esi
je 0x1400045b0
mov edx, 0x1388
mov rcx, rbx
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [rsp + 0x7c]
cmp eax, esi
jne 0x1400045b5
cmp r14d, esi
jne 0x1400045d6
or eax, dword [rsp + 0xb0]
mov rcx, rdi
neg eax
sbb rdx, rdx
and edx, 0x1220
add rdx, 0x168
call fcn.140003b0c
mov ebx, dword [rsp + 0x6c]
lea r14, [0x14010d6b0]
cmp ebx, esi
jne 0x14000460c
cmp rdi, rsi
jle 0x14000460c
mov rcx, qword [rsp + 0x40]
mov r8d, edi
mov rdx, r14
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x14012d0c0]
call fcn.14003cd5c
cmp r13d, esi
jne 0x140004638
cmp r12d, esi
jle 0x140004638
mov rcx, qword [rsp + 0x40]
mov r8d, ebp
mov rdx, r14
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x14012d0c0]
call fcn.14003adc8
cmp ebx, esi
jne 0x140004663
cmp rdi, rsi
jle 0x140004663
mov rcx, qword [rsp + 0x40]
mov r8d, edi
mov rdx, r14
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x14012d0c0]
call fcn.14003adc8
cmp r13d, esi
jne 0x1400046c0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
lea rdx, str._wait___s
lea r8, [rax + r15*2]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x14012d0c0]
call fcn.14001f0bc
mov r11, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
lea r8, [r11 + r15*2]
lea rdx, str._delete__s
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x14012d0c0]
call fcn.14001f0bc
mov rcx, qword [rsp + 0xc8]
cmp rcx, rsi
je 0x1400046d3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x88]
cmp rax, rsi
je 0x1400046e9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x90]
cmp rbx, rsi
je 0x140004708
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, rsi
jg 0x140004721
cmp byte [rsp + 0x48], sil
je 0x140004721
mov ecx, dword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x60]
call fcn.140057768
lea rcx, [rsp + 0x40]
call fcn.140057768
lea rcx, [rsp + 0x70]
call fcn.140057768
mov rbx, qword [rsp + 0x190]
cmp rdi, rsi
setg sil
mov eax, esi
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret