Function at 0x1400054a8
Capabilities:
Accept command line arguments
Check os version
Compare security identifiers
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2898]
mov eax, 0x2970
call fcn.140009c40
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x2860], rax
mov rdi, rcx
mov dword [rbp + 0xa30], 0x11c
lea rax, [rbp + 0x90]
mov r12d, 1
lea rcx, [rbp + 0xa30]
mov dword [rbp + 0x88], r12d
mov qword [rbp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx edx, byte [0x14000ff08]
xor r13d, r13d
test eax, eax
mov rax, qword [0x14000e910]
cmovne edx, r12d
mov byte [0x14000ff08], dl
mov word [rax], r13w
mov rax, qword [0x14000e0f0]
mov word [rax], r13w
lea rax, [rbp + 0xb0]
mov qword [rbp + 0xa0], rax
mov dword [rbp + 0xa8], 0x104
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea esi, [r12 + 0x1f]
mov rbx, rax
lea ecx, [rsi + 2]
cmp word [rax], cx
jne 0x14000557a
add rbx, 2
jmp 0x14000557d
movzx ecx, si
movzx eax, word [rbx]
test ax, ax
je 0x1400055a0
cmp ax, cx
je 0x140005596
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x140005585
cmp word [rbx], r13w
je 0x1400055a0
add rbx, 2
mov ecx, 0xfffffff5
mov qword [0x14000ff10], rdi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x14000f6e8], rax
cmp rax, 0xffffffffffffffff
je 0x1400055cd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x1400055d4
mov qword [0x14000f6e8], r13
mov edi, 0x7fe
mov dword [rbp - 0x24], r13d
mov r8d, edi
mov word [rbp + 0x1060], r13w
xor edx, edx
lea rcx, [rbp + 0x1062]
call sub.msvcrt.dll_memset
mov r8d, edi
mov word [rbp + 0x1860], r13w
xor edx, edx
lea rcx, [rbp + 0x1862]
call sub.msvcrt.dll_memset
lea rdx, [rbp + 0x1060]
mov dword [rbp - 0x68], r13d
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x68], rdx
mov qword [rbp - 0x80], rax
mov edi, 9
mov dword [0x14000ff28], r13d
cmp word [rbx], si
je 0x140005640
cmp word [rbx], di
jne 0x140005646
add rbx, 2
jmp 0x140005636
movzx eax, word [rbx]
mov r15d, 0xfffd
sub ax, 0x2d
test r15w, ax
jne 0x14000581f
lea rax, [rbx + 2]
test rax, rax
je 0x14000581f
movzx eax, word [rax]
or ax, si
cmp ax, 0x60
jne 0x14000581f
add rbx, 4
mov qword [rsp + 0x78], rbx
cmp word [rbx], si
je 0x14000568d
cmp word [rbx], di
jne 0x140005693
add rbx, 2
jmp 0x14000567e
lea rax, [rbp + 0x1060]
mov r8d, 0x400
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], rax
lea rcx, [rsp + 0x78]
call fcn.140005098
test al, al
jne 0x1400056c9
xor edx, edx
xor ecx, ecx
call fcn.140002d90
mov edi, 0x667
jmp 0x14000735c
mov eax, dword [rbp + 0xa8]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
add eax, eax
mov dword [rbp - 0x58], r13d
mov dword [rbp - 0x48], eax
mov r9d, 0x20019
lea rax, [rbp - 0x38]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005817
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x58]
mov rax, qword [rbp + 0xa0]
lea rdx, [rbp + 0x1060]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 0xea
jne 0x1400057c5
mov ebx, dword [rbp - 0x48]
shr ebx, 1
cmp ebx, 0x104
jle 0x140005762
mov edx, ebx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
jmp 0x140005769
lea rdi, [rbp + 0xb0]
test rdi, rdi
je 0x140005803
mov rcx, qword [rbp + 0xa0]
lea rax, [rbp + 0xb0]
cmp rcx, rax
je 0x14000578b
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, [rbp + 0x1060]
mov qword [rbp + 0xa0], rdi
mov dword [rbp + 0xa8], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov edi, 9
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140005817
cmp dword [rbp - 0x58], r12d
jne 0x140005817
mov rsi, qword [rbp + 0xa0]
lea r8d, [rbx + 0x20]
movzx r15d, word [rsi]
mov qword [rsp + 0x78], rsi
cmp r15w, r8w
je 0x1400057fd
cmp r15w, di
jne 0x140005df7
add rsi, 2
jmp 0x1400057e4
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0xe
jmp 0x14000735c
mov edi, r13d
jmp 0x14000735c
mov r14d, 0x7fffffff
mov rax, rbx
mov ecx, r14d
cmp word [rax], r13w
je 0x14000583a
add rax, 2
sub rcx, r12
jne 0x14000582b
test rcx, rcx
je 0x140007357
mov rsi, r14
sub rsi, rcx
inc esi
cmp esi, 0x104
jle 0x140005869
movsxd rdx, esi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
jmp 0x140005870
lea rdi, [rbp + 0xb0]
test rdi, rdi
je 0x14000580d
mov rcx, qword [rbp + 0xa0]
lea rax, [rbp + 0xb0]
cmp rcx, rax
je 0x14000588e
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea rax, str.update
mov qword [rbp + 0xa0], rdi
mov qword [rbp + 0xb70], rax
lea rcx, str.package
lea rax, str.uninstall
mov dword [rbp + 0xa8], esi
mov qword [rbp + 0xb88], rax
lea rax, [0x14000ab00]
mov qword [rbp + 0xba8], rax
lea rax, str.help
mov qword [rbp + 0xbb8], rax
lea rax, [0x14000ab14]
mov qword [rbp + 0xbc0], rax
lea rax, str.quiet
mov qword [rbp + 0xbd0], rax
lea rax, [0x14000ab30]
mov word [rdi], r13w
movsd xmm0, qword [str.PATCH]
movups xmm1, xmmword [0x14000ac80]
mov qword [rbp + 0xbd8], rax
lea rax, str.passive
mov qword [rbp + 0xbe8], rax
lea rax, str._qb___REBOOTPROMPTS
mov qword [rbp + 0xbf0], rax
lea rax, str.norestart
mov qword [rbp + 0xc00], rax
lea rax, str.REBOOTReallySuppress
mov qword [rbp + 0xc08], rax
lea rax, str.forcerestart
mov qword [rbp + 0xc18], rax
lea rax, str.REBOOTForce
mov qword [rbp + 0xc20], rax
lea rax, str.promptrestart
mov qword [rbp + 0xc30], rax
lea rax, str.REBOOTPROMPT__
mov qword [rbp + 0xc38], rax
lea rax, [0x14000ac40]
mov qword [rbp + 0xc48], rax
lea rax, [0x14000ac48]
mov qword [rbp + 0xc50], rax
mov eax, dword [0x14000ac50]
mov dword [rbp + 0xc68], eax
movzx eax, word [0x14000ac54]
mov word [rbp + 0xc6c], ax
mov eax, dword [0x14000ac58]
mov dword [rbp + 0xc60], eax
movzx eax, word [0x14000ac5c]
mov word [rbp + 0xc64], ax
mov eax, dword [0x14000ac68]
mov dword [rbp + 0xc88], eax
movzx eax, word [0x14000ac6c]
movsd qword [rbp + 0xc80], xmm0
movups xmm0, xmmword [str.MSIPATCHREMOVE]
mov word [rbp + 0xc8c], ax
mov rax, r14
mov qword [rbp + 0xb78], r13
mov byte [rbp + 0xb80], r13b
mov qword [rbp + 0xb90], r13
mov byte [rbp + 0xb98], r13b
mov qword [rbp + 0xba0], rcx
mov byte [rbp + 0xbb0], r12b
mov byte [rbp + 0xbc8], r12b
mov byte [rbp + 0xbe0], r12b
mov byte [rbp + 0xbf8], r12b
mov byte [rbp + 0xc10], r12b
mov byte [rbp + 0xc28], r12b
mov byte [rbp + 0xc40], r12b
mov byte [rbp + 0xc58], r12b
movups xmmword [rbp + 0xc90], xmm0
movups xmmword [rbp + 0xca0], xmm1
cmp word [rcx], r13w
je 0x140005a7b
add rcx, 2
sub rax, r12
jne 0x140005a6c
test rax, rax
je 0x140007357
lea rdx, [rbp - 0x78]
mov qword [rbp - 0x60], rbx
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x78], r13
sub r14, rax
call fcn.140002b04
mov rdi, rax
test rax, rax
je 0x140005b65
mov rsi, qword [rbp - 0x78]
movzx eax, word [rdi]
test ax, ax
je 0x140005b65
sub ax, 0x2d
test r15w, ax
jne 0x140005b36
lea r15, [rsi - 1]
cmp r15, r12
jne 0x140005afb
or dword [rsp + 0x28], 0xffffffff
lea rax, [0x14000ac90]
lea r9d, [rsi - 1]
mov qword [rsp + 0x20], rax
lea r8, [rdi + 2]
mov edx, r12d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140005c7b
cmp r14, r15
jne 0x140005b30
lea rax, str.package
mov dword [rsp + 0x28], r14d
lea r9d, [rsi - 1]
mov qword [rsp + 0x20], rax
lea r8, [rdi + 2]
mov edx, r12d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140005c7b
mov r15d, 0xfffd
mov rsi, r13
mov qword [rbp - 0x78], r13
cmp qword [rbp - 0x60], r13
je 0x140005b59
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x60]
call fcn.140002b04
mov rsi, qword [rbp - 0x78]
mov rdi, rax
jmp 0x140005b5c
mov rdi, r13
test rdi, rdi
jne 0x140005aac
lea rax, [rbp + 0xc60]
mov byte [rbp + 0xb80], r12b
mov qword [rbp + 0xb78], rax
lea rax, [rbp + 0xc68]
mov byte [rbp + 0xb98], r12b
lea rdx, [rbp - 0x78]
mov qword [rbp + 0xb90], rax
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x78], r13
call fcn.140002b04
mov rbx, rax
test rax, rax
je 0x140005d31
mov rdi, qword [rbp - 0x78]
movzx eax, word [rbx]
test ax, ax
je 0x140005d31
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x140005c28
mov r14d, r13d
lea r15, [rbp + 0xb70]
mov rsi, r13
mov rax, qword [r15]
lea r9d, [rdi - 1]
or dword [rsp + 0x28], 0xffffffff
lea r8, [rbx + 2]
mov edx, 1
mov qword [rsp + 0x20], rax
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140005ca3
mov eax, 1
add r15, 0x18
add r14d, eax
add rsi, rax
movsxd rax, r14d
cmp rax, 0xa
jb 0x140005bdb
xor r13d, r13d
lea r12d, [r13 + 1]
mov r9b, r12b
mov dword [rbp + 0xac], 0x104
mov r8, rdi
lea rcx, [rbp + 0xa0]
mov rdx, rbx
call fcn.140002bf8
mov edi, eax
test eax, eax
jne 0x14000735c
mov rdi, r13
mov qword [rbp - 0x78], r13
cmp qword [rbp - 0x60], r13
je 0x140005d25
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x60]
call fcn.140002b04
mov rdi, qword [rbp - 0x78]
mov rbx, rax
jmp 0x140005d28
lea rax, [rbp + 0xc80]
mov byte [rbp + 0xb80], r13b
mov qword [rbp + 0xb78], rax
lea rax, [rbp + 0xc90]
mov byte [rbp + 0xb98], r13b
jmp 0x140005b88
lea rax, [rsi + rsi*2]
mov dword [rbp + 0xac], 0x104
mov r10, qword [rbp + rax*8 + 0xb78]
xor r13d, r13d
mov r9b, byte [rbp + rax*8 + 0xb80]
mov r8d, r13d
test r10, r10
je 0x140005cf6
mov r11d, 0x7fffffff
lea r8d, [r13 + 1]
mov eax, r11d
mov rcx, r10
mov edx, r13d
cmp word [rcx], r13w
je 0x140005cee
add rcx, 2
sub rax, r8
jne 0x140005cdf
test rax, rax
jne 0x140005d1d
mov r8, r13
mov edx, 0x80070057
test edx, edx
js 0x140007357
mov rdx, r10
lea rcx, [rbp + 0xa0]
call fcn.140002bf8
mov r12d, 1
jmp 0x140005c47
mov r8, r11
sub r8, rax
jmp 0x140005cfb
mov rbx, r13
test rbx, rbx
jne 0x140005bb4
mov rsi, qword [rbp + 0xa0]
mov rcx, r13
test rsi, rsi
je 0x140005d61
mov ecx, 0x7fffffff
mov edx, r13d
mov eax, ecx
cmp word [rsi], r13w
je 0x140005d59
add rsi, 2
sub rax, r12
jne 0x140005d4a
test rax, rax
jne 0x140005dab
mov rcx, r13
mov edx, 0x80070057
test edx, edx
js 0x140007357
mov r8d, 0x20
test rcx, rcx
je 0x140005db6
mov rax, qword [rbp + 0xa0]
lea r12d, [r8 - 0x17]
lea rdx, [rax - 2]
lea rdx, [rdx + rcx*2]
cmp word [rdx], r8w
je 0x140005d98
cmp word [rdx], r12w
jne 0x140005db0
cmp rdx, qword [rbp + 0xa0]
jb 0x140005db0
mov word [rdx], r13w
sub rdx, 2
jmp 0x140005d8c
sub rcx, rax
jmp 0x140005d66
mov r12d, 1
mov rsi, qword [rbp + 0xa0]
mov qword [rsp + 0x78], rsi
movzx r15d, word [rsi]
test r15w, r15w
je 0x140005df7
mov r12d, 9
cmp r15w, r8w
je 0x140005dde
cmp r15w, r12w
jne 0x140005df1
add rsi, 2
mov qword [rsp + 0x78], rsi
movzx r15d, word [rsi]
test r15w, r15w
jne 0x140005dd2
mov r12d, 1
mov rbx, qword [0x14000ff20]
mov r14d, r13d
lea rdx, str.RUVEH_IJDqXFAtPYZlgmnc
mov edi, 0x667
test r15w, r15w
je 0x140006478
cmp r15w, 0x2f
je 0x140005f64
cmp r15w, 0x2d
je 0x140005f64
xor edx, edx
lea rcx, [rbp + 0x820]
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x820]
mov ebx, 0x104
lea rdx, [rbp + 0x810]
mov qword [rbp + 0x810], rax
lea rcx, [rsp + 0x78]
mov dword [rbp + 0x818], ebx
mov dword [rbp + 0x81c], ebx
call fcn.14000516c
test eax, eax
je 0x14000641b
mov rbx, qword [rbp + 0x810]
test rbx, rbx
je 0x140005f02
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [0x14000f6e0]
lea rcx, [0x14000e910]
add edx, 2
mov r15d, eax
add edx, eax
call fcn.140007f50
test al, al
je 0x140005efb
mov rax, qword [0x14000e910]
mov r10d, 0x20
movsxd rsi, dword [0x14000f6e0]
mov r8, rbx
mov rcx, rsi
add esi, r12d
mov dword [0x14000f6e0], esi
mov word [rax + rcx*2], r10w
lea eax, [r15 + 1]
movsxd rdx, eax
mov rax, qword [0x14000e910]
movsxd rcx, esi
lea rcx, [rax + rcx*2]
call fcn.140001098
test eax, eax
js 0x140005efb
add esi, r15d
mov dword [0x14000f6e0], esi
mov rbx, qword [rbp + 0x810]
mov rsi, qword [rsp + 0x78]
mov r8d, 0x20
lea r13d, [r8 - 0x17]
movzx r15d, word [rsi]
cmp r15w, r8w
je 0x140005f21
cmp r15w, r13w
jne 0x140005f2c
add rsi, 2
mov qword [rsp + 0x78], rsi
jmp 0x140005f11
cmp dword [rbp + 0x818], 0x104
mov r13d, 0
jle 0x140005f58
test rbx, rbx
je 0x140005f58
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [0x14000ff20]
jmp 0x1400063fd
mov rbx, qword [0x14000ff20]
jmp 0x140006403
add rsi, 2
mov qword [rsp + 0x78], rsi
movzx eax, word [rsi]
mov ecx, eax
or ecx, r8d
cmp r13w, ax
je 0x140005f84
add rsi, 2
mov qword [rsp + 0x78], rsi
mov r12, rdx
mov eax, 0x52
movzx eax, ax
or eax, r8d
cmp eax, ecx
je 0x140005fa4
add r12, 2
movzx eax, word [r12]
test ax, ax
jne 0x140005f8c
cmp word [r12], r13w
je 0x1400062a6
cmp word [rsi], r8w
ja 0x140005fc8
movzx eax, word [rsi]
movabs rcx, 0x100000201
bt rcx, rax
jb 0x140005fce
mov r13d, 1
mov r15d, 9
cmp word [rsi], r8w
je 0x140005fe0
cmp word [rsi], r15w
jne 0x140005feb
add rsi, 2
mov qword [rsp + 0x78], rsi
jmp 0x140005fd4
cmp word [r12], 0x63
lea rax, [rbp + 0x1060]
mov qword [rbp - 0x30], rax
mov r15d, 1
jne 0x14000600d
test r13d, r13d
jne 0x140006464
cmp word [r12], 0x50
jne 0x14000609c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [rax + 0xa]
cmp ebx, r15d
jle 0x140006040
movsxd rdx, ebx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
jmp 0x140006047
lea rsi, [rbp + 0x90]
test rsi, rsi
je 0x14000645c
mov rcx, qword [rbp + 0x80]
lea rax, [rbp + 0x90]
cmp rcx, rax
je 0x140006069
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r8d, ebx
mov qword [rbp + 0x80], rsi
lea rdx, [rbp + 0x18]
mov dword [rbp + 0x88], ebx
lea rcx, [rsp + 0x78]
mov qword [rbp + 0x18], rsi
call fcn.140005098
test al, al
je 0x14000644e
mov rbx, qword [0x14000ff20]
jmp 0x1400060cd
cmp word [r12], 0x71
je 0x1400060ac
cmp word [r12], 0x63
jne 0x1400060b1
test r13d, r13d
je 0x1400060d8
mov r8d, 0x400
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x78]
call fcn.140005098
test al, al
je 0x14000644e
mov rsi, qword [rsp + 0x78]
mov r8d, 0x20
mov r10d, 9
movzx r15d, word [rsi]
cmp r15w, r8w
je 0x1400060ee
cmp r15w, r10w
jne 0x1400060f9
add rsi, 2
mov qword [rsp + 0x78], rsi
jmp 0x1400060de
movzx eax, word [r12]
mov r10d, 0
sub ax, 0x46
cmp ax, 0x2b
ja 0x140006198
movabs rcx, 0x84000000011
bt rcx, rax
jae 0x140006198
test r13d, r13d
je 0x140006198
cmp word [r12], 0x71
lea rax, [rbp + 0x1860]
lea rdx, [rbp + 0x1860]
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x68], rdx
lea r13, [rbp + 0x1060]
je 0x1400061a1
mov r8d, 0x400
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x78]
call fcn.140005098
test al, al
je 0x14000644e
mov rsi, qword [rsp + 0x78]
mov r8d, 0x20
lea r10d, [r8 - 0x17]
movzx r15d, word [rsi]
cmp r15w, r8w
je 0x140006188
cmp r15w, r10w
jne 0x140006193
add rsi, 2
mov qword [rsp + 0x78], rsi
jmp 0x140006178
xor r10d, r10d
jmp 0x14000619c
mov r13, qword [rbp - 0x80]
mov rdx, qword [rsp + 0x68]
movzx eax, word [r12]
sub ax, 0x61
cmp ax, 0x19
ja 0x1400061f6
lea rax, str.RUVEH_IJDqXFAtPYZlgmnc
sub r12, rax
lea rax, [0x140000000]
sar r12, 1
mov rbx, qword [rax + r12*8 + 0xb4c0]
mov rcx, rbx
call qword [0x14000a410]
mov rdx, qword [rsp + 0x68]
mov rcx, r13
call rbx
xor r13d, r13d
test eax, eax
jne 0x1400062a6
mov rbx, qword [0x14000ff20]
jmp 0x1400063d6
test rbx, rbx
je 0x14000631c
cmp word [r12], 0x50
mov eax, 0x41
jne 0x14000627f
cmp word [rbx], ax
jne 0x14000627f
mov ecx, eax
lea rdx, [rbp + 0x2060]
call fcn.1400041fc
test eax, eax
jne 0x140006464
lea ecx, [rax + 0x1e]
mov rbx, r12
lea rdx, [rbp + 0xcb0]
mov qword [0x14000ff20], rbx
sub r13, rdx
lea r8d, [rcx - 0x1d]
lea rax, [rbp + 0xcb0]
test rcx, rcx
je 0x14000626f
movzx edx, word [r13 + rax]
test dx, dx
je 0x140006265
mov word [rax], dx
add rax, 2
sub rcx, r8
jne 0x140006249
xor r13d, r13d
test rcx, rcx
jne 0x140006276
jmp 0x140006272
xor r13d, r13d
sub rax, 2
mov word [rax], r13w
jmp 0x1400063d6
cmp word [rbx], 0x50
jne 0x140006464
cmp word [r12], ax
jne 0x140006464
mov ecx, eax
call fcn.1400041fc
xor r13d, r13d
test eax, eax
je 0x1400063d6
xor edx, edx
xor ecx, ecx
call fcn.140002d90
mov r14d, edi
call fcn.140005444
test r14d, r14d
jne 0x140007365
cmp qword [0x14000ff20], r13
jne 0x1400062de
xor edx, edx
xor ecx, ecx
call fcn.140002d90
mov r14d, edi
test r14d, r14d
jne 0x140007365
mov eax, dword [0x14000ff28]
test eax, eax
je 0x140007365
mov r15d, 1
lea rsi, [0x140000000]
test eax, eax
je 0x1400065af
mov rbx, qword [0x14000e050]
mov rcx, rbx
call qword [0x14000a410]
xor edx, edx
xor ecx, ecx
call rbx
jmp 0x1400065c3
cmp word [r12], 0x50
mov rbx, r12
mov qword [0x14000ff20], rbx
je 0x14000637d
lea r8, [rbp + 0x2060]
mov ecx, 0x400
sub rdx, r8
lea rax, [rbp + 0x2060]
mov qword [rsp + 0x68], rdx
mov r8d, 1
test rcx, rcx
je 0x140006373
movzx edx, word [rdx + rax]
test dx, dx
je 0x14000636e
mov word [rax], dx
add rax, 2
mov rdx, qword [rsp + 0x68]
sub rcx, r8
jne 0x14000634f
test rcx, rcx
jne 0x140006377
sub rax, 2
mov word [rax], r10w
jmp 0x140006383
mov r8d, 1
lea rdx, [rbp + 0xcb0]
mov ecx, 0x1e
sub r13, rdx
lea rax, [rbp + 0xcb0]
test rcx, rcx
je 0x1400063bf
movzx edx, word [r13 + rax]
test dx, dx
je 0x1400063b5
mov word [rax], dx
add rax, 2
sub rcx, r8
jne 0x140006399
xor r13d, r13d
test rcx, rcx
jne 0x1400063c6
jmp 0x1400063c2
xor r13d, r13d
sub rax, 2
cmp word [r12], 0x45
mov word [rax], r13w
je 0x140006478
lea rdx, [rbp + 0x1060]
mov word [rbp + 0x1060], r13w
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x68], rdx
mov qword [rbp - 0x80], rax
mov word [rbp + 0x1860], r13w
mov r8d, 0x20
test r15w, r15w
je 0x140006478
mov r12d, 1
lea rdx, str.RUVEH_IJDqXFAtPYZlgmnc
jmp 0x140005e17
xor edx, edx
xor ecx, ecx
call fcn.140002d90
mov r14d, edi
cmp dword [rbp + 0x818], ebx
jle 0x1400062b2
mov rcx, qword [rbp + 0x810]
test rcx, rcx
je 0x1400062b2
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400062b2
xor edx, edx
xor ecx, ecx
call fcn.140002d90
jmp 0x14000735c
mov r14d, 0xe
jmp 0x140006470
xor edx, edx
xor ecx, ecx
call fcn.140002d90
mov r14d, edi
xor r13d, r13d
jmp 0x1400062b2
test rbx, rbx
je 0x1400062b2
movzx eax, word [rbx]
mov r15d, 1
cmp ax, 0x45
je 0x1400064a6
sub ax, 0x59
cmp ax, r15w
jbe 0x1400064a6
call fcn.140005444
mov rbx, qword [0x14000ff20]
cmp word [rbx], 0x50
lea rax, str.RUVEH_IJDqXFAtPYZlgmnc
lea rdi, [rbp + 0x2060]
cmove rdi, qword [rbp + 0x80]
lea rsi, [0x140000000]
sub rbx, rax
sar rbx, 1
mov rbx, qword [rsi + rbx*8 + 0xb4c0]
mov rcx, rbx
call qword [0x14000a410]
mov rdx, rdi
lea rcx, [rbp + 0xcb0]
call rbx
mov r14d, eax
mov rax, qword [0x14000ff20]
movzx ecx, word [rax]
lea eax, [rcx - 0x59]
cmp ax, r15w
jbe 0x14000735f
test r14d, r14d
jne 0x14000652a
cmp cx, 0x45
jne 0x14000651b
mov dword [0x14000ff28], r15d
jmp 0x140006301
mov eax, dword [0x14000ff28]
mov dword [rbp - 0x68], r15d
jmp 0x1400062f9
cmp r14d, 0x8000
jne 0x140006542
mov dword [0x14000ff28], r13d
mov r14d, r13d
jmp 0x140007365
mov eax, 0x4eb
cmp r14d, eax
jg 0x140006578
je 0x1400062d5
cmp r14d, 0xfffffffe
jl 0x1400065a2
test r14d, r14d
js 0x1400062d8
lea eax, [r14 - 2]
cmp eax, r15d
jbe 0x140006570
cmp r14d, 0x7b
jne 0x1400065a2
mov r14d, 0x653
jmp 0x1400065a2
lea eax, [r14 - 0x642]
cmp eax, 2
jbe 0x1400062d5
cmp r14d, 0x669
je 0x1400062d5
cmp r14d, 0xbc2
je 0x1400062d5
mov ecx, r14d
call fcn.140004b9c
jmp 0x1400062d5
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rcx, str.OLEAUT32.dll
call fcn.140008a00
cmp dword [rbp - 0x68], r13d
je 0x140006622
cmp dword [0x14000ff28], r13d
jne 0x14000662f
mov ebx, r13d
movsxd rcx, ebx
lea r8, [0x14000b570]
mov r9d, r15d
lea rax, [rcx*4 + 0xfa98]
lea rdx, [rcx*8 + 0xe900]
add rax, rsi
shl rcx, 4
add rdx, rsi
add rcx, r8
mov qword [rsp + 0x20], rax
mov r8d, 4
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
test eax, eax
jne 0x14000661e
add ebx, r15d
cmp ebx, r15d
jl 0x1400065d5
jmp 0x140006622
mov dword [rbp - 0x24], r15d
cmp dword [0x14000ff28], r13d
je 0x140007312
mov rax, qword gs:[0x60]
mov edx, r13d
mov r8, qword [rsp + 0x78]
mov rbx, 0xffffffff80000001
mov rcx, qword [rax + 0x20]
bts dword [rcx + 8], 0x13
xor eax, eax
mov qword [rbp + 0xc70], rax
mov qword [rbp + 0xc78], rax
lea r9d, [rax + 0x30]
lea edi, [rax + 9]
lea r10d, [rax + 0x20]
lea r11d, [rax + 0x41]
movzx eax, word [r8]
mov ecx, 5
sub ax, r9w
cmp ax, di
ja 0x14000669d
mov eax, edx
and eax, ebx
jge 0x140006690
sub eax, r15d
or eax, 0xfffffffe
add eax, r15d
neg eax
movzx eax, word [r8]
sbb ecx, ecx
sub eax, r9d
jmp 0x1400066c4
movzx eax, word [r8]
sub ax, r11w
cmp ax, cx
ja 0x1400066f7
mov eax, edx
and eax, ebx
jge 0x1400066b9
sub eax, r15d
or eax, 0xfffffffe
add eax, r15d
neg eax
movzx eax, word [r8]
sbb ecx, ecx
sub eax, 0x37
and ecx, 0xfffffff1
add ecx, 0x10
imul ecx, eax
cmp edx, r10d
jge 0x1400067b7
mov eax, edx
test edx, edx
jns 0x1400066e0
lea eax, [r15 + rdx]
sar eax, 1
add edx, r15d
cdqe
or byte [rbp + rax + 0xc70], cl
add r8, 2
jmp 0x14000666f
cmp edx, r10d
jne 0x1400067b7
mov dil, r13b
mov byte [rsp + 0x60], r13b
mov sil, r13b
mov byte [rsp + 0x61], r13b
mov r12b, r13b
mov byte [rsp + 0x70], r13b
cmp word [r8], r13w
je 0x140006722
add r8, 2
cmp word [r8], 0x43
jne 0x140006733
mov byte [rsp + 0x60], r15b
jmp 0x1400067ce
cmp word [r8], 0x55
jne 0x140006747
mov byte [rsp + 0x60], r15b
mov sil, r15b
jmp 0x1400067ce
cmp word [r8], r11w
jne 0x140006757
mov r12b, r15b
mov byte [rsp + 0x70], r15b
jmp 0x1400067ce
cmp word [r8], 0x4d
je 0x140006767
cmp word [r8], 0x45
jne 0x1400067ce
jmp 0x14000676c
mov byte [rsp + 0x61], r15b
add r8, 4
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400072fe
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400067c2
mov edx, edi
lea rcx, str.ServerMain__CA_:_Wait_on_synchronization_event_failed
call fcn.140004940
mov r14d, 0x641
jmp 0x14000735f
mov dil, byte [rsp + 0x61]
mov rbx, 0xffffffff80000001
or qword [rsp + 0x68], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x68]
mov r8d, r15d
mov rcx, rax
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140006807
or qword [rsp + 0x68], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x1400067b7
test dil, dil
jne 0x140006812
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test dil, dil
je 0x140006837
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 8]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400068da
cmp byte [0x1400100c4], r13b
jne 0x14000686f
lea rcx, [rbp - 8]
call fcn.140001534
mov rbx, qword [rbp - 8]
jmp 0x140006879
lea rbx, [0x140010110]
mov eax, r13d
test eax, eax
jne 0x1400068ce
mov rcx, qword [rbp + 8]
lea rax, [rbp + 0x10]
mov r9d, 0x58
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0xcf0]
lea edx, [r9 - 0x57]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400068ce
mov rcx, qword [rbp + 0xcf0]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov cl, dil
mov r15d, 1
neg cl
sbb edx, edx
and edx, 0xfffffffe
add edx, 5
test eax, eax
cmovne r15d, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006919
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov word [rbp + 0xe50], r13w
mov r8d, 0x206
lea rcx, [rbp + 0xe52]
mov ebx, eax
call sub.msvcrt.dll_memset
mov r9d, ebx
lea r8, str.OpenProcessToken_failed_with__d
mov edx, 0x104
lea rcx, [rbp + 0xe50]
call fcn.1400012e0
mov edi, 1
test sil, sil
je 0x14000692c
cmp r15d, edi
jne 0x14000693e
lea r15d, [rdi + 8]
test r12b, r12b
je 0x140006968
test r15d, r15d
jne 0x140006959
mov r15d, 6
jmp 0x140006968
test r15d, r15d
jne 0x14000694b
mov r15d, 8
jmp 0x14000692c
xor edx, edx
lea rcx, str.ServerMain__CA_:_Error:_icacContext_in_CA_server_should_be_EEUI_but_is_not_any_impersonated_type
jmp 0x1400067b2
cmp r15d, edi
jne 0x1400067b7
mov r15d, 7
mov esi, 0x100
mov r12d, 3
mov dword [rbp - 0x14], esi
mov r8d, r12d
cmp r15d, edi
jbe 0x140006987
lea eax, [r15 - 6]
cmp eax, r12d
ja 0x14000698d
mov r8d, 2
lea rdx, [rbp - 0x14]
lea rcx, [rbp + 0xd50]
call fcn.140001634
mov ebx, eax
test eax, eax
je 0x1400069bd
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140007362
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007362
movsxd rbx, dword [rbp - 0x14]
mov dword [rbp], ebx
mov dword [rbp - 0x40], ebx
mov dword [rbp - 0x20], ebx
mov dword [rbp - 0x28], ebx
mov dword [rbp - 0x1c], ebx
mov dword [rbp + 0x3d8], ebx
cmp ebx, esi
jle 0x1400069fd
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, dword [rbp - 0x40]
mov qword [rbp + 0x3d0], rax
test rax, rax
jne 0x140006a1c
mov dword [rbp + 0x3d8], r13d
jmp 0x140006a1c
mov r8, rsi
lea rcx, [rbp + 0x3e0]
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x3e0]
mov qword [rbp + 0x3d0], rax
mov dword [rbp + 0x5f8], ebx
cmp ebx, esi
jle 0x140006a46
movsxd rdx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x5f0], rax
test rax, rax
jne 0x140006a65
mov dword [rbp + 0x5f8], r13d
jmp 0x140006a65
mov r8, rsi
lea rcx, [rbp + 0x600]
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x600]
mov qword [rbp + 0x5f0], rax
movsxd rax, dword [rbp - 0x20]
mov dword [rbp + 0x4e8], eax
cmp eax, esi
jle 0x140006a93
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x4e0], rax
test rax, rax
jne 0x140006ab2
mov dword [rbp + 0x4e8], r13d
jmp 0x140006ab2
mov r8, rsi
lea rcx, [rbp + 0x4f0]
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x4f0]
mov qword [rbp + 0x4e0], rax
movsxd rax, dword [rbp - 0x28]
mov dword [rbp + 0x2c8], eax
cmp eax, esi
jle 0x140006ae3
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x2c0], rax
mov rbx, rax
test rax, rax
jne 0x140006b02
mov dword [rbp + 0x2c8], r13d
jmp 0x140006b02
mov r8, rsi
lea rcx, [rbp + 0x2d0]
xor edx, edx
call sub.msvcrt.dll_memset
lea rbx, [rbp + 0x2d0]
mov qword [rbp + 0x2c0], rbx
movsxd rax, dword [rbp - 0x1c]
mov dword [rbp + 0x708], eax
cmp eax, esi
jle 0x140006b37
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, qword [rbp + 0x2c0]
mov qword [rbp + 0x700], rax
test rax, rax
jne 0x140006b56
mov dword [rbp + 0x708], r13d
jmp 0x140006b56
mov r8, rsi
lea rcx, [rbp + 0x710]
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x710]
mov qword [rbp + 0x700], rax
mov r9, qword [rbp + 0x5f0]
lea rcx, [rbp - 0x1c]
mov rdx, qword [rbp + 0x3d0]
lea r8, [rbp]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 0xd50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x4e0]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x140006bd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
mov r14d, eax
cmp rcx, 0xffffffffffffffff
je 0x14000717a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000717a
mov rbx, qword [0x14000e040]
mov rcx, rbx
call qword [0x14000a410]
mov rcx, qword [rbp + 0x3d0]
xor r9d, r9d
mov qword [rsp + 0x40], r13
xor r8d, r8d
mov dword [rsp + 0x38], r13d
or edx, 0xffffffff
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r12d
call rbx
mov ebx, eax
test eax, eax
je 0x140006c39
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140006c2b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
lea rcx, str.ServerMain__CA_:_CoInitializeSecurity_failed
jmp 0x14000716f
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor esi, esi
mov r13, rax
test rax, rax
je 0x140006c6c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 8], rax
test rax, rax
jne 0x140006c86
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140007174
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007174
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x50], rsi
call fcn.140005300
mov rdi, rax
test rax, rax
jne 0x140006cc3
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140006cb0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, str.ServerMain__CA_:_Connection_to_Service_failed.
call fcn.140004940
jmp 0x140006f6a
mov dword [rbp - 0x44], esi
mov dword [rbp - 0x18], esi
call fcn.140002574
mov r12, rax
test rax, rax
je 0x140006e1f
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x140006cfa
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rcx, rsi
call qword [0x14000a410]
mov rcx, rbx
call rsi
xor esi, esi
mov qword [rbp - 0x80], rsi
mov rax, qword [r12]
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x14000a410]
lea r8, [rbp - 0x80]
mov rcx, r12
lea rdx, [0x14000b460]
call rbx
mov rax, qword [r12]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x14000a410]
mov rcx, r12
call rbx
mov rbx, qword [rbp - 0x50]
mov dword [rbp - 0x64], r15d
test rbx, rbx
je 0x140006d58
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rcx, rsi
call qword [0x14000a410]
mov rcx, rbx
call rsi
xor esi, esi
mov qword [rbp - 0x50], rsi
mov rax, qword [rdi]
mov rbx, qword [rax + 0x70]
mov rcx, rbx
call qword [0x14000a410]
lea rax, [rbp - 0x18]
mov r9d, 0x10
mov qword [rsp + 0x38], rax
lea r8, [rbp + 0xc70]
lea rax, [rbp - 0x50]
mov rcx, rdi
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x64]
lea rax, [rbp - 0x44]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
call rbx
test eax, eax
je 0x140006dc7
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140006dbb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ServerMain__CA_:_Process_not_registered_with_service.
jmp 0x140006f4e
mov r8d, dword [rbp - 0x44]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
jne 0x140006e05
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140006df1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ServerMain__CA_:_Could_not_open_synchronization_handle.
jmp 0x140006f50
mov rbx, qword [0x14000e038]
mov rcx, rbx
call qword [0x14000a410]
mov rcx, qword [rbp - 0x50]
call rbx
test eax, eax
jne 0x140006e39
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140006f55
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006f55
mov rbx, qword [rbp - 0x80]
mov rax, qword [rbx]
mov rsi, qword [rax]
mov rcx, rsi
call qword [0x14000a410]
lea r8, [rbp - 0x70]
mov rcx, rbx
lea rdx, [0x14000b3c8]
call rsi
xor eax, eax
mov qword [rbp - 0x38], rax
cmp r15d, dword [rbp - 0x64]
jne 0x140006e77
lea eax, [r15 - 8]
mov r8d, 1
cmp eax, r8d
ja 0x140006e7f
lea rax, [rbp - 0x64]
mov qword [rbp - 0x38], rax
mov rsi, qword [rbp - 0x70]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x140]
mov rcx, rbx
call qword [0x14000a410]
mov rdx, qword [rbp - 0x38]
lea r8, [rbp + 0xc70]
mov rcx, rsi
call rbx
mov rsi, qword [rbp - 0x70]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x150]
mov rcx, rbx
call qword [0x14000a410]
mov rdx, r13
mov rcx, rsi
call rbx
mov rsi, qword [rbp - 0x70]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x158]
mov rcx, rbx
call qword [0x14000a410]
mov r15, qword [rbp - 8]
mov rcx, rsi
mov rdx, r15
call rbx
mov rsi, qword [rbp - 0x70]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x148]
mov rcx, rbx
call qword [0x14000a410]
mov rax, qword [rsp + 0x68]
mov rcx, rsi
mov r9b, byte [rsp + 0x70]
mov r8b, byte [rsp + 0x60]
mov edx, dword [rbp - 0x44]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x18]
mov dword [rsp + 0x28], eax
mov al, byte [rsp + 0x61]
mov byte [rsp + 0x20], al
call rbx
mov rcx, qword [rsp + 0x68]
mov ebx, eax
cmp rcx, 0xffffffffffffffff
je 0x140006f43
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x68], 0xffffffffffffffff
test ebx, ebx
je 0x140006faf
lea rcx, str.ServerMain__CA_:_Impersonation_token_not_saved.
xor edx, edx
call fcn.140004940
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x14000a410]
mov rcx, rdi
call rbx
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140006f88
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x14000a410]
mov rcx, rbx
call rdi
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x140007174
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x14000a410]
mov rcx, rbx
call rdi
jmp 0x140007174
mov rsi, qword [rbp - 0x70]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x138]
mov rcx, rbx
call qword [0x14000a410]
mov rdx, qword [rbp - 0x50]
mov rcx, rsi
call rbx
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x14000a410]
mov rcx, rdi
call rbx
mov rbx, qword [rbp - 0x50]
xor esi, esi
test rbx, rbx
je 0x140007004
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x14000a410]
mov rcx, rbx
call rdi
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x140007022
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x14000a410]
mov rcx, rbx
call rdi
xor r8d, r8d
mov dword [0x14000f6dc], 3
or r9d, 0xffffffff
mov qword [rbp + 0xb50], r12
lea rdx, [rbp + 0xb50]
mov qword [rbp + 0xb58], r13
mov qword [rbp + 0xb60], r15
lea ecx, [r8 + 3]
mov dword [rsp + 0x20], 0x1cff
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
xor r15d, r15d
test eax, eax
je 0x140007217
lea ebx, [r15 + 1]
cmp eax, ebx
je 0x14000720e
cmp eax, 2
jne 0x1400070d5
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rbp - 0x70]
mov dword [rbp - 0x10], r15d
mov rax, qword [rdi]
mov rbx, qword [rax + 0x160]
mov rcx, rbx
call qword [0x14000a410]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call rbx
mov r8d, dword [rbp - 0x10]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x14000714f
mov qword [rbp + 0xb50], rax
mov ebx, 1
jmp 0x140007122
cmp eax, 3
jne 0x140007217
jmp 0x1400070fa
cmp dword [rbp + 0x28], 0x12
je 0x140007116
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, [rbp + 0x20]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1400070e0
jmp 0x140007119
mov sil, bl
test sil, sil
jne 0x140007217
xor r8d, r8d
mov dword [rsp + 0x20], 0x1cff
or r9d, 0xffffffff
lea rdx, [rbp + 0xb50]
lea ecx, [r8 + 3]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x140007217
jmp 0x140007070
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140007160
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ServerMain__CA_:_Could_not_open_synchronization_handle.
call fcn.140004940
mov r14d, 0x641
mov ebx, 0x100
cmp dword [rbp + 0x708], ebx
jle 0x140007199
mov rcx, qword [rbp + 0x700]
test rcx, rcx
je 0x140007199
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x2c8], ebx
jle 0x1400071b3
mov rcx, qword [rbp + 0x2c0]
test rcx, rcx
je 0x1400071b3
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x4e8], ebx
jle 0x1400071cd
mov rcx, qword [rbp + 0x4e0]
test rcx, rcx
je 0x1400071cd
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x5f8], ebx
jle 0x1400071e7
mov rcx, qword [rbp + 0x5f0]
test rcx, rcx
je 0x1400071e7
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x3d8], ebx
jle 0x140007365
mov rcx, qword [rbp + 0x3d0]
test rcx, rcx
je 0x140007365
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140007365
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rbp - 0x70]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x14000a410]
mov rcx, rdi
call rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x100
xor r13d, r13d
cmp dword [rbp + 0x708], ebx
jle 0x14000725b
mov rcx, qword [rbp + 0x700]
test rcx, rcx
je 0x14000725b
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x2c8], ebx
jle 0x140007275
mov rcx, qword [rbp + 0x2c0]
test rcx, rcx
je 0x140007275
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x4e8], ebx
jle 0x14000728f
mov rcx, qword [rbp + 0x4e0]
test rcx, rcx
je 0x14000728f
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x5f8], ebx
jle 0x1400072a9
mov rcx, qword [rbp + 0x5f0]
test rcx, rcx
je 0x1400072a9
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x3d8], ebx
jle 0x1400072c3
mov rcx, qword [rbp + 0x3d0]
test rcx, rcx
je 0x1400072c3
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp - 0x68], r13d
je 0x1400072e2
cmp dword [0x14000ff28], r13d
jne 0x1400072e2
mov ecx, dword [0x14000fa98]
test ecx, ecx
je 0x1400072e2
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [rbp - 0x24], r13d
je 0x140007365
mov r14d, 0x641
mov ecx, r14d
call fcn.140004b9c
jmp 0x140007365
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ServerMain__CA_:_Open_synchronization_event_failed
jmp 0x1400067b2
mov dword [0x14000f6dc], r15d
xor r9d, r9d
lea rcx, [rbp + 0x50]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140007341
cmp dword [0x14000ff2c], r13d
je 0x1400072c3
cmp dword [0x14000fea0], r13d
je 0x1400072c3
lea rcx, [rbp + 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140007319
mov edi, 0x65b
mov r14d, edi
mov ebx, r14d
mov r14d, ebx
cmp dword [rbp + 0xa8], 0x104
jle 0x14000737e
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea rax, [rbp + 0xb0]
mov dword [rbp + 0xa8], 0x104
mov qword [rbp + 0xa0], rax
mov eax, 1
cmp dword [rbp + 0x88], eax
jle 0x1400073b0
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, r14d
mov rcx, qword [rbp + 0x2860]
xor rcx, rsp
call fcn.140009100
lea r11, [rsp + 0x2970]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret