Function at 0x1400054c0
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.140009d60
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]
xor r13d, r13d
test eax, eax
je 0x140005547
mov byte [0x1400100c0], r12b
mov byte [0x14000ff08], r12b
mov rax, qword [0x14000e910]
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]
mov esi, 0x20
mov rbx, rax
lea ecx, [rsi + 2]
cmp word [rax], cx
jne 0x140005591
add rbx, 2
jmp 0x140005594
movzx ecx, si
movzx eax, word [rbx]
test ax, ax
je 0x1400055b7
cmp ax, cx
je 0x1400055ad
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x14000559c
cmp word [rbx], r13w
je 0x1400055b7
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 0x1400055e4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x1400055eb
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 0x140005657
cmp word [rbx], di
jne 0x14000565d
add rbx, 2
jmp 0x14000564d
movzx eax, word [rbx]
mov r15d, 0xfffd
sub ax, 0x2d
test r15w, ax
jne 0x14000584f
lea rax, [rbx + 2]
test rax, rax
je 0x14000584f
movzx eax, word [rax]
or ax, si
cmp ax, 0x60
jne 0x14000584f
add rbx, 4
mov qword [rsp + 0x78], rbx
cmp word [rbx], si
je 0x1400056a4
cmp word [rbx], di
jne 0x1400056aa
add rbx, 2
jmp 0x140005695
lea rax, [rbp + 0x1060]
mov r8d, 0x400
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], rax
lea rcx, [rsp + 0x78]
call fcn.1400050b0
test al, al
jne 0x1400056e0
xor edx, edx
xor ecx, ecx
call fcn.140002d90
mov edi, 0x667
jmp 0x1400073b9
mov eax, dword [rbp + 0xa8]
mov r9d, 0x20019
add eax, eax
mov dword [rbp - 0x58], r13d
cmp byte [0x1400100c0], r13b
mov dword [rbp - 0x48], eax
jne 0x14000570e
cmp byte [0x14000ff08], r13b
mov eax, 0x20119
cmovne r9d, eax
lea rax, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005847
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 0x1400057f5
mov ebx, dword [rbp - 0x48]
shr ebx, 1
cmp ebx, 0x104
jle 0x140005792
mov edx, ebx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
jmp 0x140005799
lea rdi, [rbp + 0xb0]
test rdi, rdi
je 0x140005833
mov rcx, qword [rbp + 0xa0]
lea rax, [rbp + 0xb0]
cmp rcx, rax
je 0x1400057bb
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 0x140005847
cmp dword [rbp - 0x58], r12d
jne 0x140005847
mov rsi, qword [rbp + 0xa0]
lea r8d, [rbx + 0x20]
movzx r15d, word [rsi]
mov qword [rsp + 0x78], rsi
cmp r15w, r8w
je 0x14000582d
cmp r15w, di
jne 0x140005e27
add rsi, 2
jmp 0x140005814
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0xe
jmp 0x1400073b9
mov edi, r13d
jmp 0x1400073b9
mov r14d, 0x7fffffff
mov rax, rbx
mov ecx, r14d
cmp word [rax], r13w
je 0x14000586a
add rax, 2
sub rcx, r12
jne 0x14000585b
test rcx, rcx
je 0x1400073b4
mov rsi, r14
sub rsi, rcx
inc esi
cmp esi, 0x104
jle 0x140005899
movsxd rdx, esi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
jmp 0x1400058a0
lea rdi, [rbp + 0xb0]
test rdi, rdi
je 0x14000583d
mov rcx, qword [rbp + 0xa0]
lea rax, [rbp + 0xb0]
cmp rcx, rax
je 0x1400058be
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 0x140005aab
add rcx, 2
sub rax, r12
jne 0x140005a9c
test rax, rax
je 0x1400073b4
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 0x140005b95
mov rsi, qword [rbp - 0x78]
movzx eax, word [rdi]
test ax, ax
je 0x140005b95
sub ax, 0x2d
test r15w, ax
jne 0x140005b66
lea r15, [rsi - 1]
cmp r15, r12
jne 0x140005b2b
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 0x140005cab
cmp r14, r15
jne 0x140005b60
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 0x140005cab
mov r15d, 0xfffd
mov rsi, r13
mov qword [rbp - 0x78], r13
cmp qword [rbp - 0x60], r13
je 0x140005b89
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x60]
call fcn.140002b04
mov rsi, qword [rbp - 0x78]
mov rdi, rax
jmp 0x140005b8c
mov rdi, r13
test rdi, rdi
jne 0x140005adc
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 0x140005d61
mov rdi, qword [rbp - 0x78]
movzx eax, word [rbx]
test ax, ax
je 0x140005d61
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x140005c58
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 0x140005cd3
mov eax, 1
add r15, 0x18
add r14d, eax
add rsi, rax
movsxd rax, r14d
cmp rax, 0xa
jb 0x140005c0b
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 0x1400073b9
mov rdi, r13
mov qword [rbp - 0x78], r13
cmp qword [rbp - 0x60], r13
je 0x140005d55
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x60]
call fcn.140002b04
mov rdi, qword [rbp - 0x78]
mov rbx, rax
jmp 0x140005d58
lea rax, [rbp + 0xc80]
mov byte [rbp + 0xb80], r13b
mov qword [rbp + 0xb78], rax
lea rax, [rbp + 0xc90]
mov byte [rbp + 0xb98], r13b
jmp 0x140005bb8
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 0x140005d26
mov r11d, 0x7fffffff
lea r8d, [r13 + 1]
mov eax, r11d
mov rcx, r10
mov edx, r13d
cmp word [rcx], r13w
je 0x140005d1e
add rcx, 2
sub rax, r8
jne 0x140005d0f
test rax, rax
jne 0x140005d4d
mov r8, r13
mov edx, 0x80070057
test edx, edx
js 0x1400073b4
mov rdx, r10
lea rcx, [rbp + 0xa0]
call fcn.140002bf8
mov r12d, 1
jmp 0x140005c77
mov r8, r11
sub r8, rax
jmp 0x140005d2b
mov rbx, r13
test rbx, rbx
jne 0x140005be4
mov rsi, qword [rbp + 0xa0]
mov rcx, r13
test rsi, rsi
je 0x140005d91
mov ecx, 0x7fffffff
mov edx, r13d
mov eax, ecx
cmp word [rsi], r13w
je 0x140005d89
add rsi, 2
sub rax, r12
jne 0x140005d7a
test rax, rax
jne 0x140005ddb
mov rcx, r13
mov edx, 0x80070057
test edx, edx
js 0x1400073b4
mov r8d, 0x20
test rcx, rcx
je 0x140005de6
mov rax, qword [rbp + 0xa0]
lea r12d, [r8 - 0x17]
lea rdx, [rax - 2]
lea rdx, [rdx + rcx*2]
cmp word [rdx], r8w
je 0x140005dc8
cmp word [rdx], r12w
jne 0x140005de0
cmp rdx, qword [rbp + 0xa0]
jb 0x140005de0
mov word [rdx], r13w
sub rdx, 2
jmp 0x140005dbc
sub rcx, rax
jmp 0x140005d96
mov r12d, 1
mov rsi, qword [rbp + 0xa0]
mov qword [rsp + 0x78], rsi
movzx r15d, word [rsi]
test r15w, r15w
je 0x140005e27
mov r12d, 9
cmp r15w, r8w
je 0x140005e0e
cmp r15w, r12w
jne 0x140005e21
add rsi, 2
mov qword [rsp + 0x78], rsi
movzx r15d, word [rsi]
test r15w, r15w
jne 0x140005e02
mov r12d, 1
mov rbx, qword [0x14000ff20]
mov r14d, r13d
lea rdx, str.RUVEH_IJDqXFAtPYZlgmnc
mov edi, 0x667
test r15w, r15w
je 0x1400064a8
cmp r15w, 0x2f
je 0x140005f94
cmp r15w, 0x2d
je 0x140005f94
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.140005184
test eax, eax
je 0x14000644b
mov rbx, qword [rbp + 0x810]
test rbx, rbx
je 0x140005f32
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.140007fb0
test al, al
je 0x140005f2b
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 0x140005f2b
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 0x140005f51
cmp r15w, r13w
jne 0x140005f5c
add rsi, 2
mov qword [rsp + 0x78], rsi
jmp 0x140005f41
cmp dword [rbp + 0x818], 0x104
mov r13d, 0
jle 0x140005f88
test rbx, rbx
je 0x140005f88
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [0x14000ff20]
jmp 0x14000642d
mov rbx, qword [0x14000ff20]
jmp 0x140006433
add rsi, 2
mov qword [rsp + 0x78], rsi
movzx eax, word [rsi]
mov ecx, eax
or ecx, r8d
cmp r13w, ax
je 0x140005fb4
add rsi, 2
mov qword [rsp + 0x78], rsi
mov r12, rdx
mov eax, 0x52
movzx eax, ax
or eax, r8d
cmp eax, ecx
je 0x140005fd4
add r12, 2
movzx eax, word [r12]
test ax, ax
jne 0x140005fbc
cmp word [r12], r13w
je 0x1400062d6
cmp word [rsi], r8w
ja 0x140005ff8
movzx eax, word [rsi]
movabs rcx, 0x100000201
bt rcx, rax
jb 0x140005ffe
mov r13d, 1
mov r15d, 9
cmp word [rsi], r8w
je 0x140006010
cmp word [rsi], r15w
jne 0x14000601b
add rsi, 2
mov qword [rsp + 0x78], rsi
jmp 0x140006004
cmp word [r12], 0x63
lea rax, [rbp + 0x1060]
mov qword [rbp - 0x30], rax
mov r15d, 1
jne 0x14000603d
test r13d, r13d
jne 0x140006494
cmp word [r12], 0x50
jne 0x1400060cc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [rax + 0xa]
cmp ebx, r15d
jle 0x140006070
movsxd rdx, ebx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
jmp 0x140006077
lea rsi, [rbp + 0x90]
test rsi, rsi
je 0x14000648c
mov rcx, qword [rbp + 0x80]
lea rax, [rbp + 0x90]
cmp rcx, rax
je 0x140006099
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.1400050b0
test al, al
je 0x14000647e
mov rbx, qword [0x14000ff20]
jmp 0x1400060fd
cmp word [r12], 0x71
je 0x1400060dc
cmp word [r12], 0x63
jne 0x1400060e1
test r13d, r13d
je 0x140006108
mov r8d, 0x400
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x78]
call fcn.1400050b0
test al, al
je 0x14000647e
mov rsi, qword [rsp + 0x78]
mov r8d, 0x20
mov r10d, 9
movzx r15d, word [rsi]
cmp r15w, r8w
je 0x14000611e
cmp r15w, r10w
jne 0x140006129
add rsi, 2
mov qword [rsp + 0x78], rsi
jmp 0x14000610e
movzx eax, word [r12]
mov r10d, 0
sub ax, 0x46
cmp ax, 0x2b
ja 0x1400061c8
movabs rcx, 0x84000000011
bt rcx, rax
jae 0x1400061c8
test r13d, r13d
je 0x1400061c8
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 0x1400061d1
mov r8d, 0x400
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x78]
call fcn.1400050b0
test al, al
je 0x14000647e
mov rsi, qword [rsp + 0x78]
mov r8d, 0x20
lea r10d, [r8 - 0x17]
movzx r15d, word [rsi]
cmp r15w, r8w
je 0x1400061b8
cmp r15w, r10w
jne 0x1400061c3
add rsi, 2
mov qword [rsp + 0x78], rsi
jmp 0x1400061a8
xor r10d, r10d
jmp 0x1400061cc
mov r13, qword [rbp - 0x80]
mov rdx, qword [rsp + 0x68]
movzx eax, word [r12]
sub ax, 0x61
cmp ax, 0x19
ja 0x140006226
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 0x1400062d6
mov rbx, qword [0x14000ff20]
jmp 0x140006406
test rbx, rbx
je 0x14000634c
cmp word [r12], 0x50
mov eax, 0x41
jne 0x1400062af
cmp word [rbx], ax
jne 0x1400062af
mov ecx, eax
lea rdx, [rbp + 0x2060]
call fcn.1400041fc
test eax, eax
jne 0x140006494
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 0x14000629f
movzx edx, word [r13 + rax]
test dx, dx
je 0x140006295
mov word [rax], dx
add rax, 2
sub rcx, r8
jne 0x140006279
xor r13d, r13d
test rcx, rcx
jne 0x1400062a6
jmp 0x1400062a2
xor r13d, r13d
sub rax, 2
mov word [rax], r13w
jmp 0x140006406
cmp word [rbx], 0x50
jne 0x140006494
cmp word [r12], ax
jne 0x140006494
mov ecx, eax
call fcn.1400041fc
xor r13d, r13d
test eax, eax
je 0x140006406
xor edx, edx
xor ecx, ecx
call fcn.140002d90
mov r14d, edi
call fcn.14000545c
test r14d, r14d
jne 0x1400073c2
cmp qword [0x14000ff20], r13
jne 0x14000630e
xor edx, edx
xor ecx, ecx
call fcn.140002d90
mov r14d, edi
test r14d, r14d
jne 0x1400073c2
mov eax, dword [0x14000ff28]
test eax, eax
je 0x1400073c2
mov r15d, 1
lea rsi, [0x140000000]
test eax, eax
je 0x1400065df
mov rbx, qword [0x14000e050]
mov rcx, rbx
call qword [0x14000a410]
xor edx, edx
xor ecx, ecx
call rbx
jmp 0x1400065f3
cmp word [r12], 0x50
mov rbx, r12
mov qword [0x14000ff20], rbx
je 0x1400063ad
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 0x1400063a3
movzx edx, word [rdx + rax]
test dx, dx
je 0x14000639e
mov word [rax], dx
add rax, 2
mov rdx, qword [rsp + 0x68]
sub rcx, r8
jne 0x14000637f
test rcx, rcx
jne 0x1400063a7
sub rax, 2
mov word [rax], r10w
jmp 0x1400063b3
mov r8d, 1
lea rdx, [rbp + 0xcb0]
mov ecx, 0x1e
sub r13, rdx
lea rax, [rbp + 0xcb0]
test rcx, rcx
je 0x1400063ef
movzx edx, word [r13 + rax]
test dx, dx
je 0x1400063e5
mov word [rax], dx
add rax, 2
sub rcx, r8
jne 0x1400063c9
xor r13d, r13d
test rcx, rcx
jne 0x1400063f6
jmp 0x1400063f2
xor r13d, r13d
sub rax, 2
cmp word [r12], 0x45
mov word [rax], r13w
je 0x1400064a8
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 0x1400064a8
mov r12d, 1
lea rdx, str.RUVEH_IJDqXFAtPYZlgmnc
jmp 0x140005e47
xor edx, edx
xor ecx, ecx
call fcn.140002d90
mov r14d, edi
cmp dword [rbp + 0x818], ebx
jle 0x1400062e2
mov rcx, qword [rbp + 0x810]
test rcx, rcx
je 0x1400062e2
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400062e2
xor edx, edx
xor ecx, ecx
call fcn.140002d90
jmp 0x1400073b9
mov r14d, 0xe
jmp 0x1400064a0
xor edx, edx
xor ecx, ecx
call fcn.140002d90
mov r14d, edi
xor r13d, r13d
jmp 0x1400062e2
test rbx, rbx
je 0x1400062e2
movzx eax, word [rbx]
mov r15d, 1
cmp ax, 0x45
je 0x1400064d6
sub ax, 0x59
cmp ax, r15w
jbe 0x1400064d6
call fcn.14000545c
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 0x1400073bc
test r14d, r14d
jne 0x14000655a
cmp cx, 0x45
jne 0x14000654b
mov dword [0x14000ff28], r15d
jmp 0x140006331
mov eax, dword [0x14000ff28]
mov dword [rbp - 0x68], r15d
jmp 0x140006329
cmp r14d, 0x8000
jne 0x140006572
mov dword [0x14000ff28], r13d
mov r14d, r13d
jmp 0x1400073c2
mov eax, 0x4eb
cmp r14d, eax
jg 0x1400065a8
je 0x140006305
cmp r14d, 0xfffffffe
jl 0x1400065d2
test r14d, r14d
js 0x140006308
lea eax, [r14 - 2]
cmp eax, r15d
jbe 0x1400065a0
cmp r14d, 0x7b
jne 0x1400065d2
mov r14d, 0x653
jmp 0x1400065d2
lea eax, [r14 - 0x642]
cmp eax, 2
jbe 0x140006305
cmp r14d, 0x669
je 0x140006305
cmp r14d, 0xbc2
je 0x140006305
mov ecx, r14d
call fcn.140004bb4
jmp 0x140006305
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rcx, str.OLEAUT32.dll
call fcn.140008b20
cmp dword [rbp - 0x68], r13d
je 0x140006652
cmp dword [0x14000ff28], r13d
jne 0x14000665f
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 0x14000664e
add ebx, r15d
cmp ebx, r15d
jl 0x140006605
jmp 0x140006652
mov dword [rbp - 0x24], r15d
cmp dword [0x14000ff28], r13d
je 0x14000736f
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 0x1400066cd
mov eax, edx
and eax, ebx
jge 0x1400066c0
sub eax, r15d
or eax, 0xfffffffe
add eax, r15d
neg eax
movzx eax, word [r8]
sbb ecx, ecx
sub eax, r9d
jmp 0x1400066f4
movzx eax, word [r8]
sub ax, r11w
cmp ax, cx
ja 0x140006727
mov eax, edx
and eax, ebx
jge 0x1400066e9
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 0x1400067e7
mov eax, edx
test edx, edx
jns 0x140006710
lea eax, [r15 + rdx]
sar eax, 1
add edx, r15d
cdqe
or byte [rbp + rax + 0xc70], cl
add r8, 2
jmp 0x14000669f
cmp edx, r10d
jne 0x1400067e7
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 0x140006752
add r8, 2
cmp word [r8], 0x43
jne 0x140006763
mov byte [rsp + 0x60], r15b
jmp 0x1400067fe
cmp word [r8], 0x55
jne 0x140006777
mov byte [rsp + 0x60], r15b
mov sil, r15b
jmp 0x1400067fe
cmp word [r8], r11w
jne 0x140006787
mov r12b, r15b
mov byte [rsp + 0x70], r15b
jmp 0x1400067fe
cmp word [r8], 0x4d
je 0x140006797
cmp word [r8], 0x45
jne 0x1400067fe
jmp 0x14000679c
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 0x14000735b
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 0x1400067f2
mov edx, edi
lea rcx, str.ServerMain__CA_:_Wait_on_synchronization_event_failed
call fcn.140004940
mov r14d, 0x641
jmp 0x1400073bc
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 0x140006837
or qword [rsp + 0x68], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x1400067e7
test dil, dil
jne 0x140006842
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 0x140006867
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp byte [0x1400100c0], r13b
mov r15d, r13d
setne r15b
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 0x140006937
cmp byte [0x1400100c8], r13b
jne 0x1400068ad
lea rcx, [rbp - 8]
call fcn.140001534
mov rbx, qword [rbp - 8]
jmp 0x1400068b7
lea rbx, [0x140010110]
mov eax, r13d
test eax, eax
jne 0x14000692b
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 0x14000692b
mov rcx, qword [rbp + 0xcf0]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov r9b, byte [0x1400100c0]
mov r15d, r13d
mov cl, dil
neg cl
mov cl, dil
sbb edx, edx
and edx, 0xfffffffe
add edx, 5
neg cl
sbb r8d, r8d
and r8d, 0xfffffffe
add r8d, 4
test r9b, r9b
cmovne r8d, edx
setne r15b
test eax, eax
cmovne r15d, r8d
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006976
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 0x140006989
cmp r15d, edi
jne 0x14000699b
lea r15d, [rdi + 8]
test r12b, r12b
je 0x1400069c5
test r15d, r15d
jne 0x1400069b6
mov r15d, 6
jmp 0x1400069c5
test r15d, r15d
jne 0x1400069a8
mov r15d, 8
jmp 0x140006989
xor edx, edx
lea rcx, str.ServerMain__CA_:_Error:_icacContext_in_CA_server_should_be_EEUI_but_is_not_any_impersonated_type
jmp 0x1400067e2
cmp r15d, edi
jne 0x1400067e7
mov r15d, 7
mov esi, 0x100
mov r12d, 3
mov dword [rbp - 0x14], esi
mov r8d, r12d
cmp r15d, edi
jbe 0x1400069e4
lea eax, [r15 - 6]
cmp eax, r12d
ja 0x1400069ea
mov r8d, 2
lea rdx, [rbp - 0x14]
lea rcx, [rbp + 0xd50]
call fcn.140001634
mov ebx, eax
test eax, eax
je 0x140006a1a
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x1400073bf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400073bf
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 0x140006a5a
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 0x140006a79
mov dword [rbp + 0x3d8], r13d
jmp 0x140006a79
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 0x140006aa3
movsxd rdx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x5f0], rax
test rax, rax
jne 0x140006ac2
mov dword [rbp + 0x5f8], r13d
jmp 0x140006ac2
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 0x140006af0
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x4e0], rax
test rax, rax
jne 0x140006b0f
mov dword [rbp + 0x4e8], r13d
jmp 0x140006b0f
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 0x140006b40
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 0x140006b5f
mov dword [rbp + 0x2c8], r13d
jmp 0x140006b5f
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 0x140006b94
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 0x140006bb3
mov dword [rbp + 0x708], r13d
jmp 0x140006bb3
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 0x140006c33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
mov r14d, eax
cmp rcx, 0xffffffffffffffff
je 0x1400071d7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400071d7
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 0x140006c96
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140006c88
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
lea rcx, str.ServerMain__CA_:_CoInitializeSecurity_failed
jmp 0x1400071cc
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 0x140006cc9
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 0x140006ce3
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x1400071d1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400071d1
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x50], rsi
call fcn.140005318
mov rdi, rax
test rax, rax
jne 0x140006d20
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140006d0d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, str.ServerMain__CA_:_Connection_to_Service_failed.
call fcn.140004940
jmp 0x140006fc7
mov dword [rbp - 0x44], esi
mov dword [rbp - 0x18], esi
call fcn.140002574
mov r12, rax
test rax, rax
je 0x140006e7c
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x140006d57
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 0x140006db5
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 0x140006e24
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140006e18
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ServerMain__CA_:_Process_not_registered_with_service.
jmp 0x140006fab
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 0x140006e62
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140006e4e
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 0x140006fad
mov rbx, qword [0x14000e038]
mov rcx, rbx
call qword [0x14000a410]
mov rcx, qword [rbp - 0x50]
call rbx
test eax, eax
jne 0x140006e96
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x140006fb2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006fb2
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 0x140006ed4
lea eax, [r15 - 8]
mov r8d, 1
cmp eax, r8d
ja 0x140006edc
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 0x140006fa0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x68], 0xffffffffffffffff
test ebx, ebx
je 0x14000700c
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 0x140006fe5
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 0x1400071d1
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x14000a410]
mov rcx, rbx
call rdi
jmp 0x1400071d1
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 0x140007061
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 0x14000707f
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 0x140007274
lea ebx, [r15 + 1]
cmp eax, ebx
je 0x14000726b
cmp eax, 2
jne 0x140007132
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 0x1400071ac
mov qword [rbp + 0xb50], rax
mov ebx, 1
jmp 0x14000717f
cmp eax, 3
jne 0x140007274
jmp 0x140007157
cmp dword [rbp + 0x28], 0x12
je 0x140007173
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 0x14000713d
jmp 0x140007176
mov sil, bl
test sil, sil
jne 0x140007274
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 0x140007274
jmp 0x1400070cd
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x1400071bd
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 0x1400071f6
mov rcx, qword [rbp + 0x700]
test rcx, rcx
je 0x1400071f6
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x2c8], ebx
jle 0x140007210
mov rcx, qword [rbp + 0x2c0]
test rcx, rcx
je 0x140007210
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x4e8], ebx
jle 0x14000722a
mov rcx, qword [rbp + 0x4e0]
test rcx, rcx
je 0x14000722a
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x5f8], ebx
jle 0x140007244
mov rcx, qword [rbp + 0x5f0]
test rcx, rcx
je 0x140007244
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x3d8], ebx
jle 0x1400073c2
mov rcx, qword [rbp + 0x3d0]
test rcx, rcx
je 0x1400073c2
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400073c2
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 0x1400072b8
mov rcx, qword [rbp + 0x700]
test rcx, rcx
je 0x1400072b8
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x2c8], ebx
jle 0x1400072d2
mov rcx, qword [rbp + 0x2c0]
test rcx, rcx
je 0x1400072d2
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x4e8], ebx
jle 0x1400072ec
mov rcx, qword [rbp + 0x4e0]
test rcx, rcx
je 0x1400072ec
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x5f8], ebx
jle 0x140007306
mov rcx, qword [rbp + 0x5f0]
test rcx, rcx
je 0x140007306
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x3d8], ebx
jle 0x140007320
mov rcx, qword [rbp + 0x3d0]
test rcx, rcx
je 0x140007320
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp - 0x68], r13d
je 0x14000733f
cmp dword [0x14000ff28], r13d
jne 0x14000733f
mov ecx, dword [0x14000fa98]
test ecx, ecx
je 0x14000733f
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [rbp - 0x24], r13d
je 0x1400073c2
mov r14d, 0x641
mov ecx, r14d
call fcn.140004bb4
jmp 0x1400073c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ServerMain__CA_:_Open_synchronization_event_failed
jmp 0x1400067e2
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 0x14000739e
cmp dword [0x14000ff2c], r13d
je 0x140007320
cmp dword [0x14000fea0], r13d
je 0x140007320
lea rcx, [rbp + 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140007376
mov edi, 0x65b
mov r14d, edi
mov ebx, r14d
mov r14d, ebx
cmp dword [rbp + 0xa8], 0x104
jle 0x1400073db
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 0x14000740d
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.140009220
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