Function at 0x1400096f4
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 - 0x2888]
mov eax, 0x2960
call fcn.14000f0a0
sub rsp, rax
mov rax, qword [0x140016200]
xor rax, rsp
mov qword [rbp + 0x2850], rax
mov rdi, rcx
mov dword [rbp + 0xa20], 0x11c
lea rax, [rbp + 0x88]
mov r15d, 1
lea rcx, [rbp + 0xa20]
mov dword [rbp + 0x80], r15d
mov qword [rbp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor r13d, r13d
test eax, eax
je 0x140009778
mov byte [0x14001737c], r15b
mov byte [0x140017030], r15b
mov rax, qword [0x1400150c0]
mov r14d, 0x104
mov word [rax], r13w
mov rax, qword [0x1400158d0]
mov word [rax], r13w
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x90], rax
mov dword [rbp + 0x98], r14d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, 0x22
mov rbx, rax
lea r12d, [rcx - 2]
cmp word [rax], cx
jne 0x1400097c6
add rbx, 2
jmp 0x1400097ca
movzx ecx, r12w
movzx eax, word [rbx]
test ax, ax
je 0x1400097ed
cmp ax, cx
je 0x1400097e3
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x1400097d2
cmp word [rbx], r13w
je 0x1400097ed
add rbx, 2
mov ecx, 0xfffffff5
mov qword [0x140017390], rdi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x140017048], rax
cmp rax, 0xffffffffffffffff
je 0x14000981a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x140009821
mov qword [0x140017048], r13
mov edi, 0x800
mov dword [rbp - 0x28], r13d
mov r8d, edi
lea rcx, [rbp + 0xe40]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, edi
lea rcx, [rbp + 0x1850]
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [0x140016e04], r13d
mov esi, 9
cmp word [rbx], r12w
je 0x140009863
cmp word [rbx], si
jne 0x140009869
add rbx, 2
jmp 0x140009858
movzx eax, word [rbx]
mov ecx, 0xfffd
sub ax, 0x2d
test cx, ax
jne 0x140009ad3
lea rax, [rbx + 2]
test rax, rax
je 0x140009ad3
movzx eax, word [rax]
or ax, r12w
cmp ax, 0x60
jne 0x140009ad3
add rbx, 4
mov rax, rbx
mov qword [rsp + 0x68], rbx
cmp word [rbx], r12w
je 0x1400098b3
cmp word [rbx], si
jne 0x1400098b9
lea rbx, [rax + 2]
jmp 0x1400098a0
lea rax, [rbp + 0xe40]
mov r8d, 0x400
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x20], rax
lea rcx, [rsp + 0x68]
call fcn.1400092bc
test al, al
jne 0x1400098ef
xor edx, edx
xor ecx, ecx
call fcn.140006f50
mov ebx, 0x667
jmp 0x140009a4d
mov eax, dword [rbp + 0x98]
mov r9d, 0x20019
add eax, eax
mov dword [rbp - 0x60], r13d
cmp byte [0x14001737c], r13b
mov dword [rsp + 0x70], eax
jne 0x14000991e
cmp byte [0x140017030], r13b
mov eax, 0x20119
cmovne r9d, eax
lea rax, [rbp - 0x18]
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 0x140009acb
mov rcx, qword [rbp - 0x18]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x60]
mov rax, qword [rbp + 0x90]
lea rdx, [rbp + 0xe40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 0xea
jne 0x1400099fc
mov ebx, dword [rsp + 0x70]
shr ebx, 1
cmp ebx, r14d
jbe 0x14000999d
mov edx, ebx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
jmp 0x1400099a4
lea rdi, [rbp + 0xa0]
test rdi, rdi
je 0x140009a3e
mov rcx, qword [rbp + 0x90]
lea rax, [rbp + 0xa0]
cmp rcx, rax
je 0x1400099c6
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x18]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, [rbp + 0xe40]
mov qword [rbp + 0x90], rdi
mov dword [rbp + 0x98], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140009acb
cmp dword [rbp - 0x60], r15d
jne 0x140009acb
mov rdi, qword [rbp + 0x90]
movzx r14d, word [rdi]
mov qword [rsp + 0x68], rdi
cmp r14w, r12w
je 0x140009a38
cmp r14w, si
jne 0x14000a0cb
add rdi, 2
jmp 0x140009a1f
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0xe
mov esi, ebx
mov edi, esi
cmp dword [rbp + 0x98], 0x104
jle 0x140009a6a
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea rax, [rbp + 0xa0]
mov dword [rbp + 0x98], 0x104
mov qword [rbp + 0x90], rax
mov eax, 1
cmp dword [rbp + 0x80], eax
jle 0x140009a99
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
mov rcx, qword [rbp + 0x2850]
xor rcx, rsp
call fcn.14000e4b0
lea r11, [rsp + 0x2960]
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
mov ebx, r13d
jmp 0x140009a4d
mov r12d, 0x7fffffff
mov rcx, rbx
mov eax, r12d
cmp word [rcx], r13w
je 0x140009aee
add rcx, 2
sub rax, r15
jne 0x140009adf
test rax, rax
je 0x140009afa
mov ecx, r12d
sub ecx, eax
jmp 0x140009afd
mov ecx, r13d
test rax, rax
jne 0x140009b0c
mov ebx, 0x65b
jmp 0x140009a4d
lea esi, [rcx + 1]
cmp esi, r14d
jle 0x140009b2a
movsxd rdx, esi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
jmp 0x140009b31
lea rdi, [rbp + 0xa0]
test rdi, rdi
je 0x140009a48
mov rcx, qword [rbp + 0x90]
lea rax, [rbp + 0xa0]
cmp rcx, rax
je 0x140009b53
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea rax, str.update
mov qword [rbp + 0x90], rdi
mov qword [rbp + 0xb60], rax
lea rcx, str.package
lea rax, str.uninstall
mov dword [rbp + 0x98], esi
mov qword [rbp + 0xb78], rax
lea rax, [0x140011270]
mov qword [rbp + 0xb98], rax
lea rax, str.help
mov qword [rbp + 0xba8], rax
lea rax, [0x140011284]
mov qword [rbp + 0xbb0], rax
lea rax, str.quiet
mov qword [rbp + 0xbc0], rax
lea rax, [0x1400112a0]
mov word [rdi], r13w
movsd xmm0, qword [str.PATCH]
movups xmm1, xmmword [0x1400113f0]
mov qword [rbp + 0xbc8], rax
lea rax, str.passive
mov qword [rbp + 0xbd8], rax
lea rax, str._qb___REBOOTPROMPTS
mov qword [rbp + 0xbe0], rax
lea rax, str.norestart
mov qword [rbp + 0xbf0], rax
lea rax, str.REBOOTReallySuppress
mov qword [rbp + 0xbf8], rax
lea rax, str.forcerestart
mov qword [rbp + 0xc08], rax
lea rax, str.REBOOTForce
mov qword [rbp + 0xc10], rax
lea rax, str.promptrestart
mov qword [rbp + 0xc20], rax
lea rax, str.REBOOTPROMPT__
mov qword [rbp + 0xc28], rax
lea rax, [0x1400113b0]
mov qword [rbp + 0xc38], rax
lea rax, [0x1400113b8]
mov qword [rbp + 0xc40], rax
mov eax, dword [0x1400113c0]
mov dword [rbp + 0xc58], eax
movzx eax, word [0x1400113c4]
mov word [rbp + 0xc5c], ax
mov eax, dword [0x1400113c8]
mov dword [rbp + 0xc50], eax
movzx eax, word [0x1400113cc]
mov word [rbp + 0xc54], ax
mov eax, dword [0x1400113d8]
mov dword [rbp + 0xc78], eax
movzx eax, word [0x1400113dc]
movsd qword [rbp + 0xc70], xmm0
movups xmm0, xmmword [str.MSIPATCHREMOVE]
mov word [rbp + 0xc7c], ax
mov rax, r12
mov qword [rbp + 0xb68], r13
mov byte [rbp + 0xb70], r13b
mov qword [rbp + 0xb80], r13
mov byte [rbp + 0xb88], r13b
mov qword [rbp + 0xb90], rcx
mov byte [rbp + 0xba0], r15b
mov byte [rbp + 0xbb8], r15b
mov byte [rbp + 0xbd0], r15b
mov byte [rbp + 0xbe8], r15b
mov byte [rbp + 0xc00], r15b
mov byte [rbp + 0xc18], r15b
mov byte [rbp + 0xc30], r15b
mov byte [rbp + 0xc48], r15b
movups xmmword [rbp + 0xc80], xmm0
movups xmmword [rbp + 0xc90], xmm1
cmp word [rcx], r13w
je 0x140009d40
add rcx, 2
sub rax, r15
jne 0x140009d31
test rax, rax
je 0x140009d4d
mov r14, r12
sub r14, rax
jmp 0x140009d50
mov r14, r13
test rax, rax
je 0x140009b02
lea rdx, [rbp - 0x70]
mov qword [rbp - 0x50], rbx
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x70], r13
call fcn.140006d0c
mov rdi, rax
test rax, rax
je 0x140009e3f
mov rsi, qword [rbp - 0x70]
movzx eax, word [rdi]
test ax, ax
je 0x140009e3f
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x140009e10
lea r15, [rsi - 1]
mov ecx, 1
cmp r15, rcx
jne 0x140009dd5
or dword [rsp + 0x28], 0xffffffff
lea rax, [0x140011400]
mov edx, ecx
mov qword [rsp + 0x20], rax
mov ecx, 0x409
lea r9d, [rsi - 1]
lea r8, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140009f51
cmp r14, r15
mov r15d, 1
jne 0x140009e10
lea rax, str.package
mov dword [rsp + 0x28], r14d
lea r9d, [rsi - 1]
mov qword [rsp + 0x20], rax
lea r8, [rdi + 2]
mov edx, r15d
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x140009f57
mov rsi, r13
mov qword [rbp - 0x70], r13
cmp qword [rbp - 0x50], r13
je 0x140009e33
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140006d0c
mov rsi, qword [rbp - 0x70]
mov rdi, rax
jmp 0x140009e36
mov rdi, r13
test rdi, rdi
jne 0x140009d7e
lea rax, [rbp + 0xc50]
mov byte [rbp + 0xb70], r15b
mov qword [rbp + 0xb68], rax
lea rax, [rbp + 0xc58]
mov byte [rbp + 0xb88], r15b
lea rdx, [rbp - 0x70]
mov qword [rbp + 0xb80], rax
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x70], r13
call fcn.140006d0c
mov rbx, rax
test rax, rax
je 0x14000a016
mov rdi, qword [rbp - 0x70]
movzx eax, word [rbx]
test ax, ax
je 0x14000a016
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x140009efe
mov r14d, r13d
lea r15, [rbp + 0xb60]
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 0x140009f7f
mov eax, 1
add r15, 0x18
add r14d, eax
add rsi, rax
cmp r14d, 0xa
jb 0x140009eb5
xor r13d, r13d
mov r15d, eax
mov r9b, r15b
mov dword [rbp + 0x9c], 0x104
mov r8, rdi
lea rcx, [rbp + 0x90]
mov rdx, rbx
call fcn.140006e20
mov ebx, eax
test eax, eax
jne 0x140009a4d
mov rdi, r13
mov qword [rbp - 0x70], r13
cmp qword [rbp - 0x50], r13
je 0x14000a00a
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140006d0c
mov rdi, qword [rbp - 0x70]
mov rbx, rax
jmp 0x14000a00d
mov r15d, 1
lea rax, [rbp + 0xc70]
mov byte [rbp + 0xb70], r13b
mov qword [rbp + 0xb68], rax
lea rax, [rbp + 0xc80]
mov byte [rbp + 0xb88], r13b
jmp 0x140009e62
lea rax, [rsi + rsi*2]
mov dword [rbp + 0x9c], 0x104
mov r10, qword [rbp + rax*8 + 0xb68]
xor r13d, r13d
mov r9b, byte [rbp + rax*8 + 0xb70]
mov r8d, r13d
test r10, r10
je 0x140009fe3
mov r8, r12
lea ecx, [r13 + 1]
mov rdx, r12
mov rax, r10
cmp word [rax], r13w
je 0x140009fc4
add rax, 2
sub rdx, rcx
jne 0x140009fb5
mov rax, rdx
neg rax
sbb ecx, ecx
not ecx
and ecx, 0x80070057
test rdx, rdx
je 0x140009fde
sub r8, rdx
jmp 0x140009fe8
mov r8, r13
jmp 0x140009fe8
mov ecx, 0x80070057
test ecx, ecx
js 0x140009b02
mov rdx, r10
lea rcx, [rbp + 0x90]
call fcn.140006e20
mov r15d, 1
jmp 0x140009f1d
mov rbx, r13
test rbx, rbx
jne 0x140009e8e
mov rdi, qword [rbp + 0x90]
mov rcx, r13
test rdi, rdi
je 0x14000a054
mov r8, r12
cmp word [rdi], r13w
je 0x14000a037
add rdi, 2
sub r8, r15
jne 0x14000a028
mov rax, r8
neg rax
sbb edx, edx
not edx
and edx, 0x80070057
test r8, r8
je 0x14000a059
mov rcx, r12
sub rcx, r8
jmp 0x14000a059
mov edx, 0x80070057
test edx, edx
js 0x140009b02
mov r12d, 0x20
test rcx, rcx
je 0x14000a09e
mov rax, qword [rbp + 0x90]
lea rdx, [rax - 2]
lea rdx, [rdx + rcx*2]
cmp word [rdx], r12w
je 0x14000a08b
mov eax, 9
cmp word [rdx], ax
jne 0x14000a09e
cmp rdx, qword [rbp + 0x90]
jb 0x14000a09e
mov word [rdx], r13w
sub rdx, 2
jmp 0x14000a07b
mov rdi, qword [rbp + 0x90]
jmp 0x14000a0bc
cmp r14w, r12w
je 0x14000a0b8
mov eax, 9
cmp r14w, ax
jne 0x14000a0cb
add rdi, 2
movzx r14d, word [rdi]
mov qword [rsp + 0x68], rdi
test r14w, r14w
jne 0x14000a0a7
mov r15, qword [0x140016c80]
mov esi, r13d
mov dword [rbp - 0x7c], r13d
mov ebx, 0x667
lea rcx, str.RUVEH_IJDqXFAtPYZlgmnc
mov r8d, 0x52
test r14w, r14w
je 0x14000a770
cmp r14w, 0x2f
je 0x14000a226
cmp r14w, 0x2d
je 0x14000a226
xor edx, edx
lea rcx, [rbp + 0x810]
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x810]
mov edi, 0x104
lea rdx, [rbp + 0x800]
mov qword [rbp + 0x800], rax
lea rcx, [rsp + 0x68]
mov dword [rbp + 0x808], edi
mov dword [rbp + 0x80c], edi
call fcn.140009394
test eax, eax
je 0x14000a713
mov r15, qword [rbp + 0x800]
test r15, r15
je 0x14000a1d8
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [0x140016f20]
lea rcx, [0x1400150c0]
add edx, 2
mov edi, eax
add edx, eax
call fcn.14000c1bc
test al, al
je 0x14000a1d1
movsxd rcx, dword [0x140016f20]
mov r8, r15
mov rax, qword [0x1400150c0]
lea r14d, [rcx + 1]
mov word [rax + rcx*2], r12w
lea eax, [rdi + 1]
movsxd rdx, eax
mov rax, qword [0x1400150c0]
movsxd rcx, r14d
mov dword [0x140016f20], r14d
lea rcx, [rax + rcx*2]
call fcn.1400012c4
test eax, eax
js 0x14000a1d1
lea eax, [r14 + rdi]
mov dword [0x140016f20], eax
mov r15, qword [rbp + 0x800]
mov rdi, qword [rsp + 0x68]
mov esi, 9
movzx r14d, word [rdi]
cmp r14w, r12w
je 0x14000a1f2
cmp r14w, si
jne 0x14000a1fd
add rdi, 2
mov qword [rsp + 0x68], rdi
jmp 0x14000a1e2
cmp dword [rbp + 0x808], 0x104
mov esi, dword [rbp - 0x7c]
jle 0x14000a21a
test r15, r15
je 0x14000a21a
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r15, qword [0x140016c80]
jmp 0x14000a6fb
add rdi, 2
mov r9, rcx
movzx edx, word [rdi]
lea rax, [rdi + 2]
or edx, r12d
cmp r13w, word [rdi]
cmovne rdi, rax
movzx eax, r8w
mov qword [rsp + 0x68], rdi
movzx ecx, ax
movzx eax, ax
or eax, r12d
cmp eax, edx
je 0x14000a265
add r9, 2
movzx eax, word [r9]
movzx ecx, ax
test ax, ax
jne 0x14000a248
mov qword [rbp - 0x78], r9
test cx, cx
je 0x14000a5cd
cmp word [rdi], r12w
ja 0x14000a28f
movzx eax, word [rdi]
movabs rcx, 0x100000201
bt rcx, rax
mov dword [rbp - 0x80], r13d
jb 0x14000a296
mov dword [rbp - 0x80], 1
mov r8d, 9
cmp word [rdi], r12w
je 0x14000a2a8
cmp word [rdi], r8w
jne 0x14000a2b3
add rdi, 2
mov qword [rsp + 0x68], rdi
jmp 0x14000a29c
cmp word [r9], 0x63
lea rax, [rbp + 0xe40]
mov r8d, dword [rbp - 0x80]
mov qword [rbp - 0x20], rax
jne 0x14000a2d2
test r8d, r8d
jne 0x14000a5cd
cmp word [r9], 0x50
jne 0x14000a35f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r15d, 1
lea edi, [rax + 0xa]
cmp edi, r15d
jle 0x14000a309
movsxd rdx, edi
lea ecx, [r15 + 0x3f]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
jmp 0x14000a310
lea r14, [rbp + 0x88]
test r14, r14
je 0x14000a753
mov rcx, qword [rbp + 0x78]
lea rax, [rbp + 0x88]
cmp rcx, rax
je 0x14000a32f
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r8d, edi
mov qword [rbp + 0x78], r14
lea rdx, [rbp + 8]
mov dword [rbp + 0x80], edi
lea rcx, [rsp + 0x68]
mov qword [rbp + 8], r14
call fcn.1400092bc
test al, al
je 0x14000a745
mov r15, qword [0x140016c80]
jmp 0x14000a38e
cmp word [r9], 0x71
je 0x14000a36d
cmp word [r9], 0x63
jne 0x14000a372
test r8d, r8d
je 0x14000a397
mov r8d, 0x400
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x68]
call fcn.1400092bc
test al, al
je 0x14000a745
mov r9, qword [rbp - 0x78]
mov rdi, qword [rsp + 0x68]
mov r8d, 9
movzx r14d, word [rdi]
cmp r14w, r12w
je 0x14000a3ad
cmp r14w, r8w
jne 0x14000a3b8
add rdi, 2
mov qword [rsp + 0x68], rdi
jmp 0x14000a39d
movzx edx, word [r9]
mov r8d, dword [rbp - 0x80]
lea eax, [rdx - 0x46]
cmp ax, 0x2b
ja 0x14000a3dc
movzx eax, ax
movabs rcx, 0x80000000011
bt rcx, rax
jb 0x14000a3f7
lea r12, [rbp + 0xe40]
movzx ecx, dx
lea r13, [rbp + 0x1850]
cmp dx, 0x6c
jne 0x14000a485
xor r10d, r10d
lea r12, [rbp + 0xe40]
lea r13, [rbp + 0x1850]
movzx ecx, dx
test r8d, r8d
je 0x14000a488
lea rax, [rbp + 0x1850]
mov qword [rbp - 0x20], rax
lea r13, [rbp + 0xe40]
lea r12, [rbp + 0x1850]
cmp dx, 0x71
je 0x14000a488
mov r8d, 0x400
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x68]
call fcn.1400092bc
xor r10d, r10d
test al, al
je 0x14000a745
mov rdi, qword [rsp + 0x68]
lea eax, [r10 + 0x20]
lea esi, [rax - 0x17]
movzx r14d, word [rdi]
cmp r14w, ax
je 0x14000a46a
cmp r14w, si
jne 0x14000a475
add rdi, 2
mov qword [rsp + 0x68], rdi
jmp 0x14000a45a
mov r9, qword [rbp - 0x78]
mov esi, dword [rbp - 0x7c]
movzx edx, word [r9]
movzx ecx, dx
jmp 0x14000a488
xor r10d, r10d
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14000a4d0
lea rax, str.RUVEH_IJDqXFAtPYZlgmnc
mov rdx, r12
sub r9, rax
mov rcx, r13
sar r9, 1
lea rax, [0x140000000]
mov rax, qword [rax + r9*8 + 0x10010]
call qword [0x140010750]
xor r13d, r13d
test eax, eax
jne 0x14000a5cd
mov r15, qword [0x140016c80]
jmp 0x14000a6e5
test r15, r15
je 0x14000a63c
mov eax, 0x41
cmp cx, 0x50
jne 0x14000a5a4
cmp word [r15], ax
jne 0x14000a5a4
cmp word [rbp + 0x2050], r10w
je 0x14000a75d
mov word [0x140017160], ax
lea r8, [0x140017162]
lea rax, [rbp + 0x2050]
mov edx, 0x104
sub rax, r8
mov rcx, r8
mov r11d, 1
test rdx, rdx
je 0x14000a543
movzx r8d, word [rax + rcx]
test r8w, r8w
je 0x14000a543
mov word [rcx], r8w
add rcx, 2
sub rdx, r11
jne 0x14000a526
test rdx, rdx
mov qword [0x140016c80], r9
lea rax, [rcx - 2]
mov r15, r9
cmovne rax, rcx
mov edx, 0x1e
lea rcx, [rbp + 0xca0]
mov word [rax], r10w
lea rax, [rbp + 0xca0]
sub r13, rax
test rdx, rdx
je 0x14000a58d
movzx eax, word [rcx + r13]
test ax, ax
je 0x14000a58d
mov word [rcx], ax
add rcx, 2
sub rdx, r11
jne 0x14000a572
xor r13d, r13d
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r13w
jmp 0x14000a6e5
cmp word [r15], 0x50
jne 0x14000a75d
cmp cx, ax
jne 0x14000a75d
mov ecx, eax
mov rdx, r12
call fcn.1400083a8
xor r13d, r13d
test eax, eax
je 0x14000a6e5
xor edx, edx
xor ecx, ecx
call fcn.140006f50
mov esi, ebx
mov r15d, 1
call fcn.14000969c
test esi, esi
jne 0x14000a5fb
cmp qword [0x140016c80], r13
jne 0x14000a5fb
xor edx, edx
xor ecx, ecx
call fcn.140006f50
mov esi, ebx
lea rdi, [0x140000000]
mov ebx, r13d
mov dword [rbp - 0x7c], ebx
test esi, esi
jne 0x140009a4f
mov eax, dword [0x140016e04]
test eax, eax
je 0x140009a4f
test eax, eax
je 0x14000a89d
mov rax, qword [0x140015038]
xor edx, edx
xor ecx, ecx
call qword [0x140010750]
jmp 0x14000a8b1
mov qword [0x140016c80], r9
mov r15, r9
cmp cx, 0x50
je 0x14000a692
lea rax, [rbp + 0x2050]
mov r8d, 0x400
sub r12, rax
lea rcx, [rbp + 0x2050]
test r8, r8
je 0x14000a683
movzx eax, word [r12 + rcx]
test ax, ax
je 0x14000a683
mov word [rcx], ax
add rcx, 2
mov eax, 1
sub r8, rax
jne 0x14000a663
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r10w
lea rax, [rbp + 0xca0]
mov r8d, 0x1e
sub r13, rax
lea rcx, [rbp + 0xca0]
test r8, r8
je 0x14000a6c9
movzx eax, word [rcx + r13]
test ax, ax
je 0x14000a6c9
mov word [rcx], ax
add rcx, 2
mov eax, 1
sub r8, rax
jne 0x14000a6a9
xor r13d, r13d
lea rax, [rcx - 2]
test r8, r8
cmovne rax, rcx
mov word [rax], r13w
cmp dx, 0x45
je 0x14000a770
mov word [rbp + 0xe40], r13w
mov r12d, 0x20
mov word [rbp + 0x1850], r13w
test r14w, r14w
je 0x14000a770
lea rcx, str.RUVEH_IJDqXFAtPYZlgmnc
mov r8d, 0x52
jmp 0x14000a0f5
xor edx, edx
xor ecx, ecx
call fcn.140006f50
mov esi, ebx
cmp dword [rbp + 0x808], edi
jle 0x14000a5d8
mov rcx, qword [rbp + 0x800]
test rcx, rcx
je 0x14000a5d8
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14000a5d8
xor edx, edx
xor ecx, ecx
call fcn.140006f50
jmp 0x140009a4d
mov esi, 0xe
jmp 0x14000a5de
xor edx, edx
xor ecx, ecx
call fcn.140006f50
xor r13d, r13d
mov esi, ebx
jmp 0x14000a5d8
test r15, r15
je 0x14000a5d8
movzx eax, word [r15]
cmp ax, 0x45
je 0x14000a79d
sub ax, 0x59
mov ecx, 1
cmp ax, cx
jbe 0x14000a79d
call fcn.14000969c
mov r15, qword [0x140016c80]
cmp word [r15], 0x50
lea rax, str.RUVEH_IJDqXFAtPYZlgmnc
lea rdx, [rbp + 0x2050]
cmove rdx, qword [rbp + 0x78]
lea rdi, [0x140000000]
sub r15, rax
lea rcx, [rbp + 0xca0]
sar r15, 1
mov rax, qword [rdi + r15*8 + 0x10010]
call qword [0x140010750]
mov rcx, qword [0x140016c80]
mov r15d, 1
mov esi, eax
movzx eax, word [rcx]
lea ecx, [rax - 0x59]
cmp cx, r15w
jbe 0x140009a4f
test esi, esi
jne 0x14000a823
cmp ax, 0x45
jne 0x14000a812
mov ebx, r13d
mov dword [0x140016e04], r15d
mov dword [rbp - 0x7c], ebx
jmp 0x14000a626
mov eax, dword [0x140016e04]
mov ebx, r15d
mov dword [rbp - 0x7c], ebx
jmp 0x14000a61e
cmp esi, 0x8000
jne 0x14000a83a
mov dword [0x140016e04], r13d
mov esi, r13d
jmp 0x140009a4f
mov eax, 0x4eb
cmp esi, eax
jg 0x14000a86a
je 0x14000a602
cmp esi, 0xfffffffe
jl 0x14000a891
test esi, esi
js 0x14000a602
lea eax, [rsi - 2]
cmp eax, r15d
jbe 0x14000a863
cmp esi, 0x7b
jne 0x14000a891
mov esi, 0x653
jmp 0x14000a891
lea eax, [rsi - 0x642]
cmp eax, 2
jbe 0x14000a602
cmp esi, 0x669
je 0x14000a602
cmp esi, 0xbc2
je 0x14000a602
mov ecx, esi
call fcn.140008dcc
jmp 0x14000a602
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rcx, str.OLEAUT32.dll
call fcn.14000ddc4
test ebx, ebx
je 0x14000a90e
cmp dword [0x140016e04], r13d
jne 0x14000a91b
mov ebx, r13d
movsxd rcx, ebx
lea r8, [0x140012110]
mov r9d, r15d
lea rax, [rcx*4 + 0x1688c]
lea rdx, [rcx*8 + 0x150b8]
add rax, rdi
shl rcx, 4
add rdx, rdi
add rcx, r8
mov qword [rsp + 0x20], rax
mov r8d, 4
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
test eax, eax
jne 0x14000a90a
add ebx, r15d
cmp ebx, r15d
jl 0x14000a8c1
jmp 0x14000a90e
mov dword [rbp - 0x28], r15d
cmp dword [0x140016e04], r13d
je 0x14000b61b
mov rax, qword gs:[0x60]
mov r9d, r13d
mov r10, qword [rsp + 0x68]
mov rcx, qword [rax + 0x20]
bts dword [rcx + 8], 0x13
xor eax, eax
mov qword [rbp + 0xc60], rax
mov qword [rbp + 0xc68], rax
lea ecx, [rax + 0x20]
lea ebx, [rax + 9]
lea r11d, [rax + 0x41]
movzx eax, word [r10]
sub ax, 0x30
cmp ax, bx
ja 0x14000a974
movzx r8d, word [r10]
mov ecx, r9d
lea eax, [r8 - 0x30]
shl r8d, 4
and cl, r15b
cmovne r8d, eax
jmp 0x14000a99b
movzx eax, word [r10]
sub ax, r11w
cmp ax, 5
ja 0x14000a9e1
movzx eax, word [r10]
mov edx, r9d
lea r8d, [rax - 0x37]
shl r8d, 4
lea ecx, [rax - 0x37]
and dl, r15b
cmovne r8d, ecx
mov ecx, 0x20
cmp r9d, ecx
jge 0x14000a9c6
mov eax, r9d
test r9d, r9d
jns 0x14000a9b1
lea eax, [r15 + r9]
sar eax, 1
add r9d, r15d
cdqe
or byte [rbp + rax + 0xc60], r8b
add r10, 2
jmp 0x14000a94f
lea rcx, str.ServerMain__CA_:_Wrong_command_line
mov edx, 0x57
call fcn.140008ae8
mov edi, 0x641
jmp 0x140009a51
cmp r9d, ecx
je 0x14000a9ef
lea rcx, str.ServerMain__CA_:_Parsing_command_line_failed
jmp 0x14000a9cd
movzx eax, word [r10]
mov dil, r13b
mov byte [rsp + 0x60], r13b
mov r14b, r13b
mov dword [rsp + 0x70], edi
mov r15b, r13b
mov byte [rsp + 0x61], r13b
mov r12b, r13b
test ax, ax
je 0x14000aa17
movzx eax, word [r10 + 2]
cmp word [r10], r13w
lea r8, [r10 + 2]
cmove r8, r10
cmp ax, 0x43
jne 0x14000aa33
mov byte [rsp + 0x60], 1
jmp 0x14000aae9
cmp ax, 0x55
jne 0x14000aa4a
mov eax, 1
mov byte [rsp + 0x60], al
mov r15b, al
jmp 0x14000aae9
cmp ax, r11w
jne 0x14000aa61
mov eax, 1
mov r12b, al
mov byte [rsp + 0x61], al
jmp 0x14000aae9
cmp ax, 0x4d
je 0x14000aa8c
mov ecx, 0x52
cmp ax, cx
je 0x14000aa77
cmp ax, 0x45
jne 0x14000aae9
cmp ax, cx
movzx edi, dil
mov eax, 1
cmove edi, eax
mov dword [rsp + 0x70], edi
jmp 0x14000aa9a
mov eax, 1
mov dl, al
mov r14b, al
mov dword [rsp + 0x70], edx
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 0x14000b607
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 0x14000aae5
mov edx, edi
lea rcx, str.ServerMain__CA_:_Wait_on_synchronization_event_failed
jmp 0x14000a9d2
mov edi, dword [rsp + 0x70]
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x78], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x78]
lea edx, [rbx + 3]
lea r8d, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x14000ab31
mov qword [rsp + 0x78], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x14000ab31
mov edx, eax
lea rcx, str.ServerMain__CA_:_Access_to_token_failed
jmp 0x14000a9d2
test r14b, r14b
jne 0x14000ab3c
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rbx, 0xffffffff80000001
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 r14b, r14b
je 0x14000ab68
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp byte [0x14001737c], r13b
mov r14d, r13d
setne r14b
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 0x14000ac2f
cmp byte [0x140016c88], r13b
jne 0x14000abae
lea rcx, [rbp + 0x10]
call fcn.140001790
mov rbx, qword [rbp + 0x10]
jmp 0x14000abb8
lea rbx, [0x1400173e0]
mov eax, r13d
test eax, eax
jne 0x14000ac23
mov rcx, qword [rbp - 8]
lea rax, [rbp]
mov r9d, 0x58
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0xce0]
lea edx, [r9 - 0x57]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000ac23
mov rcx, qword [rbp + 0xce0]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov r9b, byte [0x14001737c]
mov r14d, r13d
mov cl, r9b
movzx r8d, dil
xor r8d, 1
neg cl
sbb edx, edx
neg edx
add edx, 2
test r9b, r9b
setne r14b
test eax, eax
lea ecx, [rdx + r8*2]
cmovne r14d, ecx
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000ac66
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
lea rcx, [rbp + 0x1640]
mov r8d, 0x208
mov ebx, eax
call sub.msvcrt.dll_memset
mov r9d, ebx
lea r8, str.OpenProcessToken_failed_with__d
mov edx, 0x104
lea rcx, [rbp + 0x1640]
call fcn.140001538
test r15b, r15b
mov r15d, 1
je 0x14000ac7a
cmp r14d, r15d
jne 0x14000ace8
lea r14d, [r15 + 8]
test r12b, r12b
je 0x14000ac8a
test r14d, r14d
jne 0x14000ad01
mov r14d, 6
mov r12d, 0x100
mov r8d, 3
mov dword [rbp - 0x40], r12d
cmp r14d, r15d
jbe 0x14000aca8
lea eax, [r14 - 6]
cmp eax, r8d
ja 0x14000acae
mov r8d, 2
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0xd40]
call fcn.140001890
mov edi, eax
test eax, eax
je 0x14000ad1d
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14000acd5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
lea rcx, str.ServerMain__CA_:_Error:_Access_to_SD
call fcn.140008ae8
jmp 0x140009a51
test r14d, r14d
jne 0x14000acf5
mov r14d, 8
jmp 0x14000ac7a
lea rcx, str.ServerMain__CA_:_Error:_icacContext_in_CA_server_should_be_EEUI_but_is_not_any_impersonated_type
jmp 0x14000a9cd
cmp r14d, r15d
jne 0x14000ad11
mov r14d, 7
jmp 0x14000ac8a
lea rcx, str.ServerMain__CA_:_Error:_icacContext_in_CA_server_should_be_AISImpersonated_but_is_not_any_impersonated_type
jmp 0x14000a9cd
movsxd rbx, dword [rbp - 0x40]
mov dword [rbp - 0x10], ebx
mov dword [rbp - 0x80], ebx
mov dword [rbp - 0x34], ebx
mov dword [rbp - 0x38], ebx
mov dword [rbp - 0x3c], ebx
mov dword [rbp + 0x3c8], ebx
cmp ebx, r12d
jle 0x14000ad5e
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, dword [rbp - 0x80]
mov qword [rbp + 0x3c0], rax
test rax, rax
jne 0x14000ad7d
mov dword [rbp + 0x3c8], r13d
jmp 0x14000ad7d
mov r8, r12
lea rcx, [rbp + 0x3d0]
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x3d0]
mov qword [rbp + 0x3c0], rax
mov dword [rbp + 0x5e8], ebx
cmp ebx, r12d
jle 0x14000ada8
movsxd rdx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x5e0], rax
test rax, rax
jne 0x14000adc7
mov dword [rbp + 0x5e8], r13d
jmp 0x14000adc7
mov r8, r12
lea rcx, [rbp + 0x5f0]
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x5f0]
mov qword [rbp + 0x5e0], rax
movsxd rax, dword [rbp - 0x34]
mov dword [rbp + 0x4d8], eax
cmp eax, r12d
jle 0x14000adf6
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x4d0], rax
test rax, rax
jne 0x14000ae15
mov dword [rbp + 0x4d8], r13d
jmp 0x14000ae15
mov r8, r12
lea rcx, [rbp + 0x4e0]
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x4e0]
mov qword [rbp + 0x4d0], rax
movsxd rax, dword [rbp - 0x38]
mov dword [rbp + 0x2b8], eax
cmp eax, r12d
jle 0x14000ae47
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x2b0], rax
mov rbx, rax
test rax, rax
jne 0x14000ae66
mov dword [rbp + 0x2b8], r13d
jmp 0x14000ae66
mov r8, r12
lea rcx, [rbp + 0x2c0]
xor edx, edx
call sub.msvcrt.dll_memset
lea rbx, [rbp + 0x2c0]
mov qword [rbp + 0x2b0], rbx
movsxd rax, dword [rbp - 0x3c]
mov dword [rbp + 0x6f8], eax
cmp eax, r12d
jle 0x14000ae9c
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, qword [rbp + 0x2b0]
mov qword [rbp + 0x6f0], rax
test rax, rax
jne 0x14000aebb
mov dword [rbp + 0x6f8], r13d
jmp 0x14000aebb
mov r8, r12
lea rcx, [rbp + 0x700]
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x700]
mov qword [rbp + 0x6f0], rax
mov r9, qword [rbp + 0x5e0]
lea rcx, [rbp - 0x3c]
mov rdx, qword [rbp + 0x3c0]
lea r8, [rbp - 0x10]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 0xd40]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x34]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x4d0]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x14000af3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x78]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14000af31
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, str.ServerMain__CA_:_Error:_Format_SD
mov ebx, edi
jmp 0x14000b013
mov rcx, qword [rbp + 0x3c0]
xor r9d, r9d
mov rax, qword [0x140015040]
xor r8d, r8d
mov qword [rsp + 0x40], r13
or edx, 0xffffffff
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 3
call qword [0x140010750]
mov ebx, eax
test eax, eax
je 0x14000afa0
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14000af92
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x641
lea rsi, str.ServerMain__CA_:_CoInitializeSecurity_failed
jmp 0x14000b013
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r12, rax
test rax, rax
jne 0x14000afd3
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14000afca
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, str.ServerMain__CA_:_Error:_Watch_for_the_shutdown_signal
jmp 0x14000b006
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r15d, r15d
mov r13, rax
test rax, rax
jne 0x14000b022
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14000afff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, str.ServerMain__CA_:_Error:_Watch_for_change_of_owning_process_signal
mov edi, 0x641
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, ebx
mov rcx, rsi
call fcn.140008ae8
jmp 0x14000b489
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x48], r15
call fcn.140009578
mov rbx, rax
mov edi, 0x641
test rax, rax
jne 0x14000b05d
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14000b051
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, str.ServerMain__CA_:_Connection_to_Service_failed.
jmp 0x14000b2af
mov dword [rbp - 0x58], r15d
mov dword [rbp - 0x30], r15d
call fcn.140006814
mov r15, rax
test rax, rax
jne 0x14000b08f
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14000b083
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, str.ServerMain__CA_:_Create_Custom_Action_Server_failed.
jmp 0x14000b2af
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14000b0a5
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140010750]
and qword [rbp - 0x78], 0
lea r8, [rbp - 0x78]
mov rax, qword [r15]
lea rdx, [0x140012150]
mov rcx, r15
mov rax, qword [rax]
call qword [0x140010750]
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x10]
call qword [0x140010750]
mov rcx, qword [rbp - 0x48]
mov dword [rbp - 0x5c], r14d
test rcx, rcx
je 0x14000b0ee
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140010750]
and qword [rbp - 0x48], 0
lea rcx, [rbp - 0x30]
mov rax, qword [rbx]
lea r8, [rbp + 0xc60]
mov qword [rsp + 0x38], rcx
lea rdx, [rbp - 0x5c]
lea rcx, [rbp - 0x48]
mov r9d, 0x10
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x58]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp - 0x78]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [0x140010750]
test eax, eax
je 0x14000b159
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14000b14d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, str.ServerMain__CA_:_Process_not_registered_with_service.
jmp 0x14000b2af
mov r8d, dword [rbp - 0x58]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
jne 0x14000b195
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14000b183
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, str.ServerMain__CA_:_Could_not_open_synchronization_handle.
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000b2b1
mov rcx, qword [rbp - 0x48]
mov rax, qword [0x140015050]
call qword [0x140010750]
test eax, eax
jne 0x14000b1c7
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14000b1bb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsi, str.ServerMain__CA_:_Connect_to_remote_object_failed.
jmp 0x14000b2af
mov rcx, qword [rbp - 0x78]
lea r8, [rbp - 0x68]
lea rdx, [0x140012218]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [0x140010750]
xor edx, edx
cmp r14d, dword [rbp - 0x5c]
jne 0x14000b1f9
lea eax, [r14 - 8]
lea r14d, [rdx + 1]
cmp eax, r14d
ja 0x14000b203
jmp 0x14000b1ff
mov r14d, 1
lea rdx, [rbp - 0x5c]
mov rcx, qword [rbp - 0x68]
lea r8, [rbp + 0xc60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x140]
call qword [0x140010750]
mov rcx, qword [rbp - 0x68]
mov rdx, r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x150]
call qword [0x140010750]
mov rcx, qword [rbp - 0x68]
mov rdx, r13
mov rax, qword [rcx]
mov rax, qword [rax + 0x158]
call qword [0x140010750]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x68]
mov r9b, byte [rsp + 0x61]
mov r8b, byte [rsp + 0x60]
mov qword [rsp + 0x30], rdx
mov edx, dword [rbp - 0x30]
mov rax, qword [rcx]
mov dword [rsp + 0x28], edx
mov edx, dword [rsp + 0x70]
mov byte [rsp + 0x20], dl
mov rax, qword [rax + 0x148]
mov edx, dword [rbp - 0x58]
call qword [0x140010750]
mov rcx, qword [rsp + 0x78]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14000b29f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x78], 0xffffffffffffffff
test edi, edi
je 0x14000b305
lea rsi, str.ServerMain__CA_:_Impersonation_token_not_saved.
mov edi, 0x641
mov eax, edi
mov edx, eax
mov rcx, rsi
call fcn.140008ae8
test rbx, rbx
je 0x14000b2d0
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [0x140010750]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000b2e6
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140010750]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14000b489
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140010750]
jmp 0x14000b489
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x138]
call qword [0x140010750]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [0x140010750]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000b343
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140010750]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14000b359
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140010750]
xor r8d, r8d
mov qword [rbp + 0xb40], r15
mov edi, 0x1cff
mov qword [rbp + 0xb48], r12
or r9d, 0xffffffff
mov qword [rbp + 0xb50], r13
lea rdx, [rbp + 0xb40]
mov dword [rsp + 0x20], edi
lea ecx, [r8 + 3]
xor bl, bl
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
xor r13d, r13d
test eax, eax
je 0x14000b526
cmp eax, r14d
je 0x14000b51d
cmp eax, 2
jne 0x14000b3f1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
lea rdx, [rbp - 0x2c]
mov dword [rbp - 0x2c], r13d
mov rax, qword [rcx]
mov rax, qword [rax + 0x160]
call qword [0x140010750]
mov r8d, dword [rbp - 0x2c]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x14000b45f
mov qword [rbp + 0xb40], rax
jmp 0x14000b43e
cmp eax, 3
jne 0x14000b526
jmp 0x14000b416
cmp dword [rbp + 0x20], 0x12
je 0x14000b433
lea rcx, [rbp + 0x18]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x18]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
lea rcx, [rbp + 0x18]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x14000b3fc
jmp 0x14000b436
mov bl, r14b
test bl, bl
jne 0x14000b526
xor r8d, r8d
mov dword [rsp + 0x20], edi
or r9d, 0xffffffff
lea rdx, [rbp + 0xb40]
lea ecx, [r8 + 3]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x14000b394
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14000b470
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.140008ae8
mov edi, 0x641
mov ebx, 0x100
cmp dword [rbp + 0x6f8], ebx
jle 0x14000b4a8
mov rcx, qword [rbp + 0x6f0]
test rcx, rcx
je 0x14000b4a8
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x2b8], ebx
jle 0x14000b4c2
mov rcx, qword [rbp + 0x2b0]
test rcx, rcx
je 0x14000b4c2
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x4d8], ebx
jle 0x14000b4dc
mov rcx, qword [rbp + 0x4d0]
test rcx, rcx
je 0x14000b4dc
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x5e8], ebx
jle 0x14000b4f6
mov rcx, qword [rbp + 0x5e0]
test rcx, rcx
je 0x14000b4f6
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x3c8], ebx
jle 0x140009a51
mov rcx, qword [rbp + 0x3c0]
test rcx, rcx
je 0x140009a51
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140009a51
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140010750]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x100
cmp dword [rbp + 0x6f8], ebx
jle 0x14000b55f
mov rcx, qword [rbp + 0x6f0]
test rcx, rcx
je 0x14000b55f
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x2b8], ebx
jle 0x14000b579
mov rcx, qword [rbp + 0x2b0]
test rcx, rcx
je 0x14000b579
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x4d8], ebx
jle 0x14000b593
mov rcx, qword [rbp + 0x4d0]
test rcx, rcx
je 0x14000b593
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x5e8], ebx
jle 0x14000b5ad
mov rcx, qword [rbp + 0x5e0]
test rcx, rcx
je 0x14000b5ad
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x3c8], ebx
jle 0x14000b5c7
mov rcx, qword [rbp + 0x3c0]
test rcx, rcx
je 0x14000b5c7
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp - 0x7c], r13d
je 0x14000b5e6
cmp dword [0x140016e04], r13d
jne 0x14000b5e6
mov ecx, dword [0x14001688c]
test ecx, ecx
je 0x14000b5e6
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [rbp - 0x28], r13d
je 0x140009a4f
mov edi, 0x641
mov ecx, edi
call fcn.140008dcc
jmp 0x140009a51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ServerMain__CA_:_Open_synchronization_event_failed
jmp 0x14000a9d2
xor r9d, r9d
lea rcx, [rbp + 0x48]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x14000b643
cmp dword [0x140017144], r13d
je 0x14000b5c7
cmp dword [0x140016e00], r13d
je 0x14000b5c7
lea rcx, [rbp + 0x48]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x48]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14000b61b