Function at 0x1400052b4
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.140009790
sub rsp, rax
mov rax, qword [0x14000f0e0]
xor rax, rsp
mov qword [rbp + 0x2860], rax
mov rdi, rcx
mov dword [rbp + 0xa30], 0x11c
lea rax, [rbp + 0x90]
mov r15d, 1
lea rcx, [rbp + 0xa30]
mov dword [rbp + 0x88], r15d
mov qword [rbp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor r13d, r13d
test eax, eax
je 0x14000533b
mov byte [0x1400100da], r15b
mov byte [0x14000fdc4], r15b
mov rax, qword [0x14000e0c0]
mov word [rax], r13w
mov rax, qword [0x14000e8d0]
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 ecx, 0x22
mov rbx, rax
lea r12d, [rcx - 2]
cmp word [rax], cx
jne 0x140005386
add rbx, 2
jmp 0x14000538a
movzx ecx, r12w
movzx eax, word [rbx]
test ax, ax
je 0x1400053ad
cmp ax, cx
je 0x1400053a3
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x140005392
cmp word [rbx], r13w
je 0x1400053ad
add rbx, 2
mov ecx, 0xfffffff5
mov qword [0x1400100f0], rdi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x14000fdd0], rax
cmp rax, 0xffffffffffffffff
je 0x1400053da
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x1400053e1
mov qword [0x14000fdd0], r13
mov edi, 0x800
mov dword [rbp - 0x20], r13d
mov r8d, edi
lea rcx, [rbp + 0xe50]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, edi
lea rcx, [rbp + 0x1860]
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rbp - 0x70], r13d
mov esi, 9
mov dword [0x14000fc14], r13d
cmp word [rbx], r12w
je 0x140005427
cmp word [rbx], si
jne 0x14000542d
add rbx, 2
jmp 0x14000541c
movzx eax, word [rbx]
mov ecx, 0xfffd
sub ax, 0x2d
test cx, ax
jne 0x14000569e
lea rax, [rbx + 2]
test rax, rax
je 0x14000569e
movzx eax, word [rax]
or ax, r12w
cmp ax, 0x60
jne 0x14000569e
add rbx, 4
mov qword [rsp + 0x68], rbx
cmp word [rbx], r12w
je 0x140005474
cmp word [rbx], si
jne 0x14000547a
add rbx, 2
jmp 0x140005464
lea rax, [rbp + 0xe50]
mov r8d, 0x400
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x18], rax
lea rcx, [rsp + 0x68]
call fcn.140004ee4
test al, al
jne 0x1400054b0
xor edx, edx
xor ecx, ecx
call fcn.140002c60
mov ebx, 0x667
jmp 0x140005615
mov eax, dword [rbp + 0xa8]
mov r9d, 0x20019
add eax, eax
mov dword [rbp - 0x60], r13d
cmp byte [0x1400100da], r13b
mov dword [rsp + 0x70], eax
jne 0x1400054df
cmp byte [0x14000fdc4], r13b
mov eax, 0x20119
cmovne r9d, eax
lea rax, [rbp - 0x10]
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 0x140005696
mov rcx, qword [rbp - 0x10]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x60]
mov rax, qword [rbp + 0xa0]
lea rdx, [rbp + 0xe50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 0xea
jne 0x1400055c4
mov ebx, dword [rsp + 0x70]
shr ebx, 1
cmp ebx, 0x104
jbe 0x140005565
mov edx, ebx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
jmp 0x14000556c
lea rdi, [rbp + 0xb0]
test rdi, rdi
je 0x140005606
mov rcx, qword [rbp + 0xa0]
lea rax, [rbp + 0xb0]
cmp rcx, rax
je 0x14000558e
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x10]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, [rbp + 0xe50]
mov qword [rbp + 0xa0], rdi
mov dword [rbp + 0xa8], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140005696
cmp dword [rbp - 0x60], r15d
jne 0x140005696
mov rdi, qword [rbp + 0xa0]
movzx r14d, word [rdi]
mov qword [rsp + 0x68], rdi
cmp r14w, r12w
je 0x140005600
cmp r14w, si
jne 0x140005cbb
add rdi, 2
jmp 0x1400055e7
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0xe
mov esi, ebx
mov edi, esi
cmp dword [rbp + 0xa8], 0x104
jle 0x140005632
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 0x140005664
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
mov rcx, qword [rbp + 0x2860]
xor rcx, rsp
call fcn.140008df0
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
mov ebx, r13d
jmp 0x140005615
mov r12d, 0x7fffffff
mov rax, rbx
mov ecx, r12d
cmp word [rax], r13w
je 0x1400056b9
add rax, 2
sub rcx, r15
jne 0x1400056aa
mov rax, rcx
mov r14d, 0x80070057
neg rax
sbb edx, edx
not edx
and edx, r14d
test rcx, rcx
je 0x1400056d9
mov rax, r12
sub rax, rcx
jmp 0x1400056dc
mov rax, r13
test edx, edx
jns 0x1400056ea
mov ebx, 0x65b
jmp 0x140005615
lea esi, [rax + 1]
cmp esi, 0x104
jle 0x14000570b
movsxd rdx, esi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
jmp 0x140005712
lea rdi, [rbp + 0xb0]
test rdi, rdi
je 0x140005610
mov rcx, qword [rbp + 0xa0]
lea rax, [rbp + 0xb0]
cmp rcx, rax
je 0x140005734
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
mov rdx, r12
mov word [rdi], r13w
lea rax, [0x14000ad60]
movsd xmm0, qword [str.PATCH]
movups xmm1, xmmword [0x14000aee0]
mov qword [rbp + 0xba8], rax
lea rax, str.help
mov qword [rbp + 0xbb8], rax
lea rax, [0x14000ad74]
mov qword [rbp + 0xbc0], rax
lea rax, str.quiet
mov qword [rbp + 0xbd0], rax
lea rax, [0x14000ad90]
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, [0x14000aea0]
mov qword [rbp + 0xc48], rax
lea rax, [0x14000aea8]
mov qword [rbp + 0xc50], rax
mov eax, dword [0x14000aeb0]
mov dword [rbp + 0xc68], eax
movzx eax, word [0x14000aeb4]
mov word [rbp + 0xc6c], ax
mov eax, dword [0x14000aeb8]
mov dword [rbp + 0xc60], eax
movzx eax, word [0x14000aebc]
mov word [rbp + 0xc64], ax
mov eax, dword [0x14000aec8]
mov dword [rbp + 0xc88], eax
movzx eax, word [0x14000aecc]
movsd qword [rbp + 0xc80], xmm0
movups xmm0, xmmword [str.MSIPATCHREMOVE]
mov word [rbp + 0xc8c], ax
mov rax, rcx
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], r15b
mov byte [rbp + 0xbc8], r15b
mov byte [rbp + 0xbe0], r15b
mov byte [rbp + 0xbf8], r15b
mov byte [rbp + 0xc10], r15b
mov byte [rbp + 0xc28], r15b
mov byte [rbp + 0xc40], r15b
mov byte [rbp + 0xc58], r15b
movups xmmword [rbp + 0xc90], xmm0
movups xmmword [rbp + 0xca0], xmm1
cmp word [rax], r13w
je 0x140005924
add rax, 2
sub rdx, r15
jne 0x140005915
mov rax, rdx
neg rax
sbb ecx, ecx
not ecx
and ecx, r14d
test rdx, rdx
je 0x14000593e
mov r14, r12
sub r14, rdx
jmp 0x140005941
mov r14, r13
test ecx, ecx
js 0x1400056e0
lea rdx, [rbp - 0x78]
mov qword [rbp - 0x50], rbx
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x78], r13
call fcn.1400029fc
mov rdi, rax
test rax, rax
je 0x140005a2f
mov rsi, qword [rbp - 0x78]
movzx eax, word [rdi]
test ax, ax
je 0x140005a2f
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x140005a00
lea r15, [rsi - 1]
mov ecx, 1
cmp r15, rcx
jne 0x1400059c5
or dword [rsp + 0x28], 0xffffffff
lea rax, [0x14000aef0]
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 0x140005b41
cmp r14, r15
mov r15d, 1
jne 0x140005a00
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 0x140005b47
mov rsi, r13
mov qword [rbp - 0x78], r13
cmp qword [rbp - 0x50], r13
je 0x140005a23
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x50]
call fcn.1400029fc
mov rsi, qword [rbp - 0x78]
mov rdi, rax
jmp 0x140005a26
mov rdi, r13
test rdi, rdi
jne 0x14000596e
lea rax, [rbp + 0xc60]
mov byte [rbp + 0xb80], r15b
mov qword [rbp + 0xb78], rax
lea rax, [rbp + 0xc68]
mov byte [rbp + 0xb98], r15b
lea rdx, [rbp - 0x78]
mov qword [rbp + 0xb90], rax
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x78], r13
call fcn.1400029fc
mov rbx, rax
test rax, rax
je 0x140005c06
mov rdi, qword [rbp - 0x78]
movzx eax, word [rbx]
test ax, ax
je 0x140005c06
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x140005aee
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 0x140005b6f
mov eax, 1
add r15, 0x18
add r14d, eax
add rsi, rax
cmp r14d, 0xa
jb 0x140005aa5
xor r13d, r13d
mov r15d, eax
mov r9b, r15b
mov dword [rbp + 0xac], 0x104
mov r8, rdi
lea rcx, [rbp + 0xa0]
mov rdx, rbx
call fcn.140002ac0
mov ebx, eax
test eax, eax
jne 0x140005615
mov rdi, r13
mov qword [rbp - 0x78], r13
cmp qword [rbp - 0x50], r13
je 0x140005bfa
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x50]
call fcn.1400029fc
mov rdi, qword [rbp - 0x78]
mov rbx, rax
jmp 0x140005bfd
mov r15d, 1
lea rax, [rbp + 0xc80]
mov byte [rbp + 0xb80], r13b
mov qword [rbp + 0xb78], rax
lea rax, [rbp + 0xc90]
mov byte [rbp + 0xb98], r13b
jmp 0x140005a52
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 0x140005bd3
mov r8, r12
lea ecx, [r13 + 1]
mov rdx, r12
mov rax, r10
cmp word [rax], r13w
je 0x140005bb4
add rax, 2
sub rdx, rcx
jne 0x140005ba5
mov rax, rdx
neg rax
sbb ecx, ecx
not ecx
and ecx, 0x80070057
test rdx, rdx
je 0x140005bce
sub r8, rdx
jmp 0x140005bd8
mov r8, r13
jmp 0x140005bd8
mov ecx, 0x80070057
test ecx, ecx
js 0x1400056e0
mov rdx, r10
lea rcx, [rbp + 0xa0]
call fcn.140002ac0
mov r15d, 1
jmp 0x140005b0d
mov rbx, r13
test rbx, rbx
jne 0x140005a7e
mov rdi, qword [rbp + 0xa0]
mov rcx, r13
test rdi, rdi
je 0x140005c44
mov r8, r12
cmp word [rdi], r13w
je 0x140005c27
add rdi, 2
sub r8, r15
jne 0x140005c18
mov rax, r8
neg rax
sbb edx, edx
not edx
and edx, 0x80070057
test r8, r8
je 0x140005c49
mov rcx, r12
sub rcx, r8
jmp 0x140005c49
mov edx, 0x80070057
test edx, edx
js 0x1400056e0
mov r12d, 0x20
test rcx, rcx
je 0x140005c8e
mov rax, qword [rbp + 0xa0]
lea rdx, [rax - 2]
lea rdx, [rdx + rcx*2]
cmp word [rdx], r12w
je 0x140005c7b
mov eax, 9
cmp word [rdx], ax
jne 0x140005c8e
cmp rdx, qword [rbp + 0xa0]
jb 0x140005c8e
mov word [rdx], r13w
sub rdx, 2
jmp 0x140005c6b
mov rdi, qword [rbp + 0xa0]
jmp 0x140005cac
cmp r14w, r12w
je 0x140005ca8
mov eax, 9
cmp r14w, ax
jne 0x140005cbb
add rdi, 2
movzx r14d, word [rdi]
mov qword [rsp + 0x68], rdi
test r14w, r14w
jne 0x140005c97
mov r15, qword [0x14000fb50]
mov esi, r13d
lea rdx, str.RUVEH_IJDqXFAtPYZlgmnc
mov ebx, 0x667
mov r8d, 0x52
test r14w, r14w
je 0x140006318
cmp r14w, 0x2f
je 0x140005e17
cmp r14w, 0x2d
je 0x140005e17
xor edx, edx
lea rcx, [rbp + 0x820]
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x820]
mov edi, 0x104
lea rdx, [rbp + 0x810]
mov qword [rbp + 0x810], rax
lea rcx, [rsp + 0x68]
mov dword [rbp + 0x818], edi
mov dword [rbp + 0x81c], edi
call fcn.140004fb4
test eax, eax
je 0x14000629f
mov r15, qword [rbp + 0x810]
test r15, r15
je 0x140005dc5
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [0x14000fd20]
lea rcx, [0x14000e0c0]
add edx, 2
mov r14d, eax
add edx, eax
call fcn.140007cc8
test al, al
je 0x140005dbe
mov rax, qword [0x14000e0c0]
mov r8, r15
movsxd rdi, dword [0x14000fd20]
mov rcx, rdi
inc edi
mov dword [0x14000fd20], edi
mov word [rax + rcx*2], r12w
lea eax, [r14 + 1]
movsxd rdx, eax
mov rax, qword [0x14000e0c0]
movsxd rcx, edi
lea rcx, [rax + rcx*2]
call fcn.140001090
test eax, eax
js 0x140005dbe
add edi, r14d
mov dword [0x14000fd20], edi
mov r15, qword [rbp + 0x810]
mov rdi, qword [rsp + 0x68]
mov r13d, 9
movzx r14d, word [rdi]
cmp r14w, r12w
je 0x140005de0
cmp r14w, r13w
jne 0x140005deb
add rdi, 2
mov qword [rsp + 0x68], rdi
jmp 0x140005dd0
cmp dword [rbp + 0x818], 0x104
mov r13d, 0
jle 0x140005e0b
test r15, r15
je 0x140005e0b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r15, qword [0x14000fb50]
jmp 0x140006283
add rdi, 2
mov qword [rsp + 0x68], rdi
movzx eax, word [rdi]
mov ecx, eax
or ecx, r12d
cmp r13w, ax
je 0x140005e37
add rdi, 2
mov qword [rsp + 0x68], rdi
mov r13, rdx
mov eax, r8d
xor r10d, r10d
movzx eax, ax
or eax, r12d
cmp eax, ecx
je 0x140005e58
add r13, 2
movzx eax, word [r13]
test ax, ax
jne 0x140005e40
cmp word [r13], r10w
je 0x1400062d1
cmp word [rdi], r12w
ja 0x140005e81
movzx eax, word [rdi]
movabs rcx, 0x100000201
bt rcx, rax
jae 0x140005e81
mov ecx, r10d
jmp 0x140005e86
mov ecx, 1
mov dword [rbp - 0x80], ecx
mov r10d, 9
cmp word [rdi], r12w
je 0x140005e9b
cmp word [rdi], r10w
jne 0x140005ea6
add rdi, 2
mov qword [rsp + 0x68], rdi
jmp 0x140005e8f
cmp word [r13], 0x63
lea rax, [rbp + 0xe50]
mov qword [rbp - 0x18], rax
jne 0x140005ec1
test ecx, ecx
jne 0x1400062d1
cmp word [r13], 0x50
jne 0x140005f55
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r15d, 1
lea edi, [rax + 0xa]
cmp edi, r15d
jle 0x140005ef9
movsxd rdx, edi
lea ecx, [r15 + 0x3f]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
jmp 0x140005f00
lea r14, [rbp + 0x90]
test r14, r14
je 0x1400062f2
mov rcx, qword [rbp + 0x80]
lea rax, [rbp + 0x90]
cmp rcx, rax
je 0x140005f22
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r8d, edi
mov qword [rbp + 0x80], r14
lea rdx, [rbp]
mov dword [rbp + 0x88], edi
lea rcx, [rsp + 0x68]
mov qword [rbp], r14
call fcn.140004ee4
test al, al
je 0x1400062e4
mov r15, qword [0x14000fb50]
jmp 0x140005f85
cmp word [r13], 0x71
je 0x140005f65
cmp word [r13], 0x63
jne 0x140005f69
test ecx, ecx
je 0x140005f8d
mov r8d, 0x400
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x68]
call fcn.140004ee4
test al, al
je 0x1400062e4
mov ecx, dword [rbp - 0x80]
mov rdi, qword [rsp + 0x68]
mov r10d, 9
movzx r14d, word [rdi]
cmp r14w, r12w
je 0x140005fa3
cmp r14w, r10w
jne 0x140005fae
add rdi, 2
mov qword [rsp + 0x68], rdi
jmp 0x140005f93
movzx eax, word [r13]
mov r10d, 0
sub ax, 0x46
cmp ax, 0x2b
ja 0x140005fd3
movabs rdx, 0x80000000011
bt rdx, rax
jb 0x140005fed
cmp word [r13], 0x6c
lea rdx, [rbp + 0xe50]
lea r12, [rbp + 0x1860]
jne 0x140006070
lea rdx, [rbp + 0xe50]
lea r12, [rbp + 0x1860]
test ecx, ecx
je 0x140006070
cmp word [r13], 0x71
lea rax, [rbp + 0x1860]
lea rdx, [rbp + 0x1860]
mov qword [rbp - 0x18], rax
mov qword [rbp], rdx
lea r12, [rbp + 0xe50]
je 0x140006070
mov r8d, 0x400
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x68]
call fcn.140004ee4
test al, al
je 0x1400062e4
mov rdi, qword [rsp + 0x68]
mov eax, 0x20
lea r10d, [rax - 0x17]
movzx r14d, word [rdi]
cmp r14w, ax
je 0x14000605e
cmp r14w, r10w
jne 0x140006069
add rdi, 2
mov qword [rsp + 0x68], rdi
jmp 0x14000604e
mov rdx, qword [rbp]
xor r10d, r10d
movzx eax, word [r13]
sub ax, 0x61
cmp ax, 0x19
ja 0x1400060bb
lea rax, str.RUVEH_IJDqXFAtPYZlgmnc
mov rcx, r12
sub r13, rax
lea r12, [0x140000000]
sar r13, 1
mov rax, qword [r12 + r13*8 + 0xa010]
call qword [0x14000a610]
xor r13d, r13d
test eax, eax
jne 0x1400062ff
mov r15, qword [0x14000fb50]
jmp 0x14000626d
test r15, r15
je 0x1400061c2
cmp word [r13], 0x50
mov eax, 0x41
jne 0x14000613f
cmp word [r15], ax
jne 0x14000613f
mov ecx, eax
lea rdx, [rbp + 0x2060]
call fcn.140004038
test eax, eax
jne 0x1400062d1
lea edx, [rax + 0x1e]
mov qword [0x14000fb50], r13
lea rax, [rbp + 0xcb0]
mov r15, r13
sub r12, rax
lea rcx, [rbp + 0xcb0]
test rdx, rdx
je 0x14000612b
movzx eax, word [r12 + rcx]
test ax, ax
je 0x14000612b
mov word [rcx], ax
add rcx, 2
mov eax, 1
sub rdx, rax
jne 0x14000610b
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r10w
jmp 0x14000626a
cmp word [r15], 0x50
jne 0x1400062d1
cmp word [r13], ax
jne 0x1400062d1
mov ecx, eax
call fcn.140004038
xor r13d, r13d
test eax, eax
je 0x14000626d
xor edx, edx
xor ecx, ecx
call fcn.140002c60
mov esi, ebx
mov r15d, 1
lea r12, [0x140000000]
call fcn.140005264
test esi, esi
jne 0x140005617
cmp qword [0x14000fb50], r13
jne 0x140006441
xor edx, edx
xor ecx, ecx
call fcn.140002c60
mov esi, ebx
test esi, esi
jne 0x140005617
mov eax, dword [0x14000fc14]
mov ebx, dword [rbp - 0x70]
test ebx, ebx
jne 0x140006452
jmp 0x14000644a
cmp word [r13], 0x50
mov r15, r13
mov qword [0x14000fb50], r13
je 0x140006219
lea rax, [rbp + 0x2060]
mov r8d, 0x400
sub rdx, rax
lea rcx, [rbp + 0x2060]
test r8, r8
je 0x14000620a
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14000620a
mov word [rcx], ax
add rcx, 2
mov eax, 1
sub r8, rax
jne 0x1400061eb
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r10w
lea rax, [rbp + 0xcb0]
mov edx, 0x1e
sub r12, rax
lea rcx, [rbp + 0xcb0]
test rdx, rdx
je 0x14000624f
movzx eax, word [r12 + rcx]
test ax, ax
je 0x14000624f
mov word [rcx], ax
add rcx, 2
mov eax, 1
sub rdx, rax
jne 0x14000622f
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
cmp word [r13], 0x45
mov word [rax], r10w
je 0x140006315
xor r13d, r13d
mov word [rbp + 0xe50], r13w
mov r12d, 0x20
mov word [rbp + 0x1860], r13w
test r14w, r14w
je 0x140006318
lea rdx, str.RUVEH_IJDqXFAtPYZlgmnc
mov r8d, 0x52
jmp 0x140005ce1
xor edx, edx
xor ecx, ecx
call fcn.140002c60
mov esi, ebx
cmp dword [rbp + 0x818], edi
jle 0x140006172
mov rcx, qword [rbp + 0x810]
test rcx, rcx
je 0x140006172
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140006172
xor edx, edx
xor ecx, ecx
call fcn.140002c60
xor r13d, r13d
mov esi, ebx
jmp 0x140006172
xor edx, edx
xor ecx, ecx
call fcn.140002c60
jmp 0x140005615
mov esi, 0xe
xor r13d, r13d
jmp 0x140006178
xor edx, edx
xor ecx, ecx
call fcn.140002c60
mov esi, ebx
mov r15d, 1
jmp 0x14000617f
xor r13d, r13d
test r15, r15
je 0x140006172
movzx eax, word [r15]
cmp ax, 0x45
je 0x140006345
sub ax, 0x59
mov ecx, 1
cmp ax, cx
jbe 0x140006345
call fcn.140005264
mov r15, qword [0x14000fb50]
cmp word [r15], 0x50
lea rax, str.RUVEH_IJDqXFAtPYZlgmnc
lea rdx, [rbp + 0x2060]
cmove rdx, qword [rbp + 0x80]
lea r12, [0x140000000]
sub r15, rax
lea rcx, [rbp + 0xcb0]
sar r15, 1
mov rax, qword [r12 + r15*8 + 0xa010]
call qword [0x14000a610]
mov rcx, qword [0x14000fb50]
mov r15d, 1
mov esi, eax
movzx edx, word [rcx]
lea ecx, [rdx - 0x59]
cmp cx, r15w
jbe 0x140005617
test eax, eax
jne 0x1400063c7
mov eax, dword [0x14000fc14]
cmp dx, 0x45
mov ebx, r13d
cmove eax, r15d
setne bl
mov dword [0x14000fc14], eax
mov dword [rbp - 0x70], ebx
jmp 0x1400061b5
cmp esi, 0x8000
jne 0x1400063de
mov dword [0x14000fc14], r13d
mov esi, r13d
jmp 0x140005617
mov eax, 0x4eb
cmp esi, eax
jg 0x14000640e
je 0x1400061a4
cmp esi, 0xfffffffe
jl 0x140006435
test esi, esi
js 0x1400061a6
lea eax, [rsi - 2]
cmp eax, r15d
jbe 0x140006407
cmp esi, 0x7b
jne 0x140006435
mov esi, 0x653
jmp 0x140006435
lea eax, [rsi - 0x642]
cmp eax, 2
jbe 0x1400061a4
cmp esi, 0x669
je 0x1400061a4
cmp esi, 0xbc2
je 0x1400061a4
mov ecx, esi
call fcn.1400049fc
jmp 0x1400061a4
mov eax, dword [0x14000fc14]
mov ebx, dword [rbp - 0x70]
test eax, eax
je 0x140005617
xor ecx, ecx
test eax, eax
je 0x140006469
mov rax, qword [0x14000e038]
xor edx, edx
call qword [0x14000a610]
jmp 0x14000647b
call qword [sym.imp.ole32.dll_CoInitialize]
lea rcx, str.OLEAUT32.dll
call fcn.1400086a4
test ebx, ebx
je 0x1400064d8
cmp dword [0x14000fc14], r13d
jne 0x1400064e5
mov ebx, r13d
movsxd rcx, ebx
lea r8, [0x14000bad8]
mov r9d, r15d
lea rax, [rcx*4 + 0xf75c]
lea rdx, [rcx*8 + 0xe0b8]
add rax, r12
shl rcx, 4
add rdx, r12
add rcx, r8
mov qword [rsp + 0x20], rax
mov r8d, 4
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
test eax, eax
jne 0x1400064d4
add ebx, r15d
cmp ebx, r15d
jl 0x14000648b
jmp 0x1400064d8
mov dword [rbp - 0x20], r15d
cmp dword [0x14000fc14], r13d
je 0x1400071f4
mov rax, qword gs:[0x60]
mov edx, r13d
mov r8, qword [rsp + 0x68]
mov rcx, qword [rax + 0x20]
bts dword [rcx + 8], 0x13
xor eax, eax
mov qword [rbp + 0xc70], rax
mov qword [rbp + 0xc78], rax
lea ebx, [rax + 9]
lea r9d, [rax + 0x30]
lea r10d, [rax + 0x20]
lea r11d, [rax + 0x41]
movzx eax, word [r8]
mov ecx, 5
sub ax, r9w
cmp ax, bx
ja 0x140006542
mov eax, edx
and al, r15b
neg al
movzx eax, word [r8]
sbb ecx, ecx
sub eax, r9d
jmp 0x14000655f
movzx eax, word [r8]
sub ax, r11w
cmp ax, cx
ja 0x1400065a6
mov eax, edx
and al, r15b
neg al
movzx eax, word [r8]
sbb ecx, ecx
sub eax, 0x37
and ecx, 0xfffffff1
add ecx, 0x10
imul ecx, eax
cmp edx, r10d
jge 0x14000658b
mov eax, edx
test edx, edx
jns 0x140006577
lea eax, [r15 + rdx]
sar eax, 1
add edx, r15d
cdqe
or byte [rbp + rax + 0xc70], cl
add r8, 2
jmp 0x14000651e
lea rcx, str.ServerMain__CA_:_Wrong_command_line
mov edx, 0x57
call fcn.140004724
mov edi, 0x641
jmp 0x140005619
cmp edx, r10d
je 0x1400065b4
lea rcx, str.ServerMain__CA_:_Parsing_command_line_failed
jmp 0x140006592
cmp word [r8], r13w
lea rcx, [r8 + 2]
mov dil, r13b
mov byte [rsp + 0x60], r13b
cmove rcx, r8
mov dword [rsp + 0x70], edi
mov r14b, r13b
mov byte [rsp + 0x61], r13b
mov r15b, r13b
mov r12b, r13b
cmp word [rcx], 0x43
jne 0x1400065ea
mov byte [rsp + 0x60], 1
jmp 0x1400066c7
cmp word [rcx], 0x55
jne 0x140006601
mov eax, 1
mov byte [rsp + 0x60], al
mov r15b, al
jmp 0x1400066c7
cmp word [rcx], r11w
jne 0x140006618
mov eax, 1
mov r12b, al
mov byte [rsp + 0x61], al
jmp 0x1400066c7
movzx eax, word [rcx]
sub ax, 0x45
cmp ax, 0xd
ja 0x1400066c7
movzx eax, ax
mov edx, 0x2101
bt edx, eax
jae 0x1400066c7
cmp word [rcx], 0x4d
jne 0x140006650
mov eax, 1
mov dl, al
mov r14b, al
mov dword [rsp + 0x70], edx
jmp 0x140006668
mov eax, 0x52
movzx edi, dil
cmp word [rcx], ax
mov eax, 1
cmove edi, eax
mov dword [rsp + 0x70], edi
lea r8, [rcx + 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 0x1400066af
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 0x1400066c3
mov edx, edi
lea rcx, str.ServerMain__CA_:_Wait_on_synchronization_event_failed
jmp 0x140006597
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ServerMain__CA_:_Open_synchronization_event_failed
jmp 0x140006597
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 0x14000670f
mov qword [rsp + 0x78], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x14000670f
mov edx, eax
lea rcx, str.ServerMain__CA_:_Access_to_token_failed
jmp 0x140006597
test r14b, r14b
jne 0x14000671a
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 0x140006746
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp byte [0x1400100da], 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 0x140006816
cmp byte [0x14000fb58], r13b
jne 0x14000678c
lea rcx, [rbp + 0x18]
call fcn.140001514
mov rbx, qword [rbp + 0x18]
jmp 0x140006796
lea rbx, [0x140010140]
mov eax, r13d
test eax, eax
jne 0x14000680a
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 0x14000680a
mov rcx, qword [rbp + 0xcf0]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov r9b, byte [0x1400100da]
mov r14d, 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 r14b
test eax, eax
cmovne r14d, r8d
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000684d
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
lea rcx, [rbp + 0x1650]
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 + 0x1650]
call fcn.1400012d0
test r15b, r15b
mov r15d, 1
je 0x140006861
cmp r14d, r15d
jne 0x1400068cf
lea r14d, [r15 + 8]
test r12b, r12b
je 0x140006871
test r14d, r14d
jne 0x1400068e8
mov r14d, 6
mov r12d, 0x100
mov r8d, 3
mov dword [rbp - 0x38], r12d
cmp r14d, r15d
jbe 0x14000688f
lea eax, [r14 - 6]
cmp eax, r8d
ja 0x140006895
mov r8d, 2
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0xd50]
call fcn.14000160c
mov edi, eax
test eax, eax
je 0x140006904
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x1400068bc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
lea rcx, str.ServerMain__CA_:_Error:_Access_to_SD
call fcn.140004724
jmp 0x140005619
test r14d, r14d
jne 0x1400068dc
mov r14d, 8
jmp 0x140006861
lea rcx, str.ServerMain__CA_:_Error:_icacContext_in_CA_server_should_be_EEUI_but_is_not_any_impersonated_type
jmp 0x140006592
cmp r14d, r15d
jne 0x1400068f8
mov r14d, 7
jmp 0x140006871
lea rcx, str.ServerMain__CA_:_Error:_icacContext_in_CA_server_should_be_AISImpersonated_but_is_not_any_impersonated_type
jmp 0x140006592
movsxd rbx, dword [rbp - 0x38]
mov dword [rbp - 8], ebx
mov dword [rbp - 0x80], ebx
mov dword [rbp - 0x2c], ebx
mov dword [rbp - 0x30], ebx
mov dword [rbp - 0x34], ebx
mov dword [rbp + 0x3d8], ebx
cmp ebx, r12d
jle 0x140006945
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, dword [rbp - 0x80]
mov qword [rbp + 0x3d0], rax
test rax, rax
jne 0x140006964
mov dword [rbp + 0x3d8], r13d
jmp 0x140006964
mov r8, r12
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, r12d
jle 0x14000698f
movsxd rdx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x5f0], rax
test rax, rax
jne 0x1400069ae
mov dword [rbp + 0x5f8], r13d
jmp 0x1400069ae
mov r8, r12
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 - 0x2c]
mov dword [rbp + 0x4e8], eax
cmp eax, r12d
jle 0x1400069dd
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x4e0], rax
test rax, rax
jne 0x1400069fc
mov dword [rbp + 0x4e8], r13d
jmp 0x1400069fc
mov r8, r12
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 - 0x30]
mov dword [rbp + 0x2c8], eax
cmp eax, r12d
jle 0x140006a2e
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 0x140006a4d
mov dword [rbp + 0x2c8], r13d
jmp 0x140006a4d
mov r8, r12
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 - 0x34]
mov dword [rbp + 0x708], eax
cmp eax, r12d
jle 0x140006a83
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 0x140006aa2
mov dword [rbp + 0x708], r13d
jmp 0x140006aa2
mov r8, r12
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 - 0x34]
mov rdx, qword [rbp + 0x3d0]
lea r8, [rbp - 8]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 0xd50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x4e0]
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 0x140006b2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x78]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140006b18
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
lea rcx, str.ServerMain__CA_:_Error:_Format_SD
call fcn.140004724
jmp 0x140007075
mov rcx, qword [rbp + 0x3d0]
xor r9d, r9d
mov rax, qword [0x14000e040]
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 [0x14000a610]
mov ebx, eax
test eax, eax
je 0x140006b8c
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140006b7e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
lea rcx, str.ServerMain__CA_:_CoInitializeSecurity_failed
jmp 0x14000706b
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 0x140006bc8
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140006bb6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ServerMain__CA_:_Error:_Watch_for_the_shutdown_signal
jmp 0x140007069
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
mov r13, rax
test rax, rax
jne 0x140006c05
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140006bf3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ServerMain__CA_:_Error:_Watch_for_change_of_owning_process_signal
jmp 0x140007069
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x48], rdi
call fcn.140005150
mov rbx, rax
test rax, rax
jne 0x140006c47
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140006c2f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x641
lea rcx, str.ServerMain__CA_:_Connection_to_Service_failed.
mov edx, edi
call fcn.140004724
jmp 0x140006eaf
mov dword [rbp - 0x58], edi
mov dword [rbp - 0x28], edi
call fcn.140002528
mov r15, rax
mov edi, 0x641
xor eax, eax
test r15, r15
jne 0x140006c7e
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140006c72
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ServerMain__CA_:_Create_Custom_Action_Server_failed.
jmp 0x140006e98
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140006c96
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14000a610]
xor eax, eax
mov qword [rbp - 0x40], rax
lea r8, [rbp - 0x40]
mov rax, qword [r15]
lea rdx, [0x14000bb10]
mov rcx, r15
mov rax, qword [rax]
call qword [0x14000a610]
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x10]
call qword [0x14000a610]
mov rcx, qword [rbp - 0x48]
xor r15d, r15d
mov dword [rbp - 0x5c], r14d
test rcx, rcx
je 0x140006ce1
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14000a610]
lea rcx, [rbp - 0x28]
mov qword [rbp - 0x48], r15
mov rax, qword [rbx]
lea r8, [rbp + 0xc70]
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 - 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [0x14000a610]
test eax, eax
je 0x140006d4b
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140006d3f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ServerMain__CA_:_Process_not_registered_with_service.
jmp 0x140006e98
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 0x140006d89
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140006d75
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 0x140006e9a
mov rcx, qword [rbp - 0x48]
mov rax, qword [0x14000e050]
call qword [0x14000a610]
test eax, eax
jne 0x140006dbb
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140006daf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ServerMain__CA_:_Connect_to_remote_object_failed.
jmp 0x140006e98
mov rcx, qword [rbp - 0x40]
lea r8, [rbp - 0x68]
lea rdx, [0x14000bbb0]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [0x14000a610]
xor eax, eax
mov edx, eax
cmp r14d, dword [rbp - 0x5c]
jne 0x140006deb
lea eax, [r14 - 8]
lea ecx, [rdx + 1]
cmp eax, ecx
ja 0x140006def
lea rdx, [rbp - 0x5c]
mov rcx, qword [rbp - 0x68]
lea r8, [rbp + 0xc70]
mov rax, qword [rcx]
mov rax, qword [rax + 0x140]
call qword [0x14000a610]
mov rcx, qword [rbp - 0x68]
mov rdx, r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x150]
call qword [0x14000a610]
mov rcx, qword [rbp - 0x68]
mov rdx, r13
mov rax, qword [rcx]
mov rax, qword [rax + 0x158]
call qword [0x14000a610]
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 - 0x28]
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 [0x14000a610]
mov rcx, qword [rsp + 0x78]
mov r14d, eax
cmp rcx, 0xffffffffffffffff
je 0x140006e8c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x78], 0xffffffffffffffff
test r14d, r14d
je 0x140006ee4
lea rcx, str.ServerMain__CA_:_Impersonation_token_not_saved.
mov edx, edi
call fcn.140004724
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [0x14000a610]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140006ec5
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14000a610]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140007075
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14000a610]
jmp 0x140007075
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x138]
call qword [0x14000a610]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [0x14000a610]
mov rcx, qword [rbp - 0x48]
xor ebx, ebx
test rcx, rcx
je 0x140006f24
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14000a610]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140006f3a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14000a610]
xor r8d, r8d
mov qword [rbp + 0xb50], r15
mov r14d, 0x1cff
mov qword [rbp + 0xb58], r12
or r9d, 0xffffffff
mov qword [rbp + 0xb60], r13
lea rdx, [rbp + 0xb50]
mov dword [rsp + 0x20], r14d
lea ecx, [r8 + 3]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
xor r13d, r13d
test eax, eax
je 0x140007112
lea edi, [r13 + 1]
cmp eax, edi
je 0x140007109
cmp eax, 2
jne 0x140006fd5
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
lea rdx, [rbp - 0x24]
mov dword [rbp - 0x24], r13d
mov rax, qword [rcx]
mov rax, qword [rax + 0x160]
call qword [0x14000a610]
mov r8d, dword [rbp - 0x24]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x14000704b
mov qword [rbp + 0xb50], rax
jmp 0x140007021
cmp eax, 3
jne 0x140007112
jmp 0x140006ffa
cmp dword [rbp + 0x28], 0x12
je 0x140007016
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], edi
xor r8d, r8d
lea rcx, [rbp + 0x20]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140006fe0
jmp 0x140007019
mov bl, dil
test bl, bl
jne 0x140007112
xor r8d, r8d
mov dword [rsp + 0x20], r14d
or r9d, 0xffffffff
lea rdx, [rbp + 0xb50]
lea ecx, [r8 + 3]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x140007112
jmp 0x140006f81
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14000705c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ServerMain__CA_:_Could_not_open_synchronization_handle.
mov edx, eax
call fcn.140004724
mov edi, 0x641
mov ebx, 0x100
cmp dword [rbp + 0x708], ebx
jle 0x140007094
mov rcx, qword [rbp + 0x700]
test rcx, rcx
je 0x140007094
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x2c8], ebx
jle 0x1400070ae
mov rcx, qword [rbp + 0x2c0]
test rcx, rcx
je 0x1400070ae
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x4e8], ebx
jle 0x1400070c8
mov rcx, qword [rbp + 0x4e0]
test rcx, rcx
je 0x1400070c8
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x5f8], ebx
jle 0x1400070e2
mov rcx, qword [rbp + 0x5f0]
test rcx, rcx
je 0x1400070e2
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x3d8], ebx
jle 0x140005619
mov rcx, qword [rbp + 0x3d0]
test rcx, rcx
je 0x140005619
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140005619
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 [0x14000a610]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x100
cmp dword [rbp + 0x708], ebx
jle 0x14000714b
mov rcx, qword [rbp + 0x700]
test rcx, rcx
je 0x14000714b
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x2c8], ebx
jle 0x140007165
mov rcx, qword [rbp + 0x2c0]
test rcx, rcx
je 0x140007165
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x4e8], ebx
jle 0x14000717f
mov rcx, qword [rbp + 0x4e0]
test rcx, rcx
je 0x14000717f
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x5f8], ebx
jle 0x140007199
mov rcx, qword [rbp + 0x5f0]
test rcx, rcx
je 0x140007199
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x3d8], ebx
jle 0x1400071b3
mov rcx, qword [rbp + 0x3d0]
test rcx, rcx
je 0x1400071b3
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [rbp - 0x70]
test eax, eax
je 0x1400071d3
cmp dword [0x14000fc14], r13d
jne 0x1400071d3
mov ecx, dword [0x14000f75c]
test ecx, ecx
je 0x1400071d3
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [rbp - 0x20], r13d
je 0x140005617
mov edi, 0x641
mov ecx, edi
call fcn.1400049fc
jmp 0x140005619
xor r9d, r9d
lea rcx, [rbp + 0x50]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x14000721c
cmp dword [0x14000feb0], r13d
je 0x1400071b3
cmp dword [0x14000fc10], r13d
je 0x1400071b3
lea rcx, [rbp + 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1400071f4