Function at 0x140075130
Capabilities:
Manipulate user privileges

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov rsi, rcx
mov rax, qword [rcx + 0x330]
mov rcx, qword [rax + 8]
cmp qword [rcx + 0x20], 0
je 0x140075173
cmp qword [rcx], 0
je 0x140075173
mov al, 1
jmp 0x140075175
xor al, al
test al, al
jne 0x140075183
mov eax, 2
jmp 0x140075628
lea rcx, [rsi + 0x18]
mov r8d, 1
call fcn.14003c6d0
lea rcx, [rsi + 0x120]
mov r8d, 2
call fcn.14003c6d0
lea rcx, [rsi + 0x228]
mov r8d, reloc.WS2_32.dll_ntohs
call fcn.14003c6d0
mov rax, qword [rsi + 0x330]
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x20]
cmp byte [rax + 0x13], 0
je 0x1400751fd
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x1400751e3
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1400751fd
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rax, qword [rsi + 0x330]
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x20]
movzx ecx, byte [rax + 0x91]
mov byte [reloc.WS2_32.dll_accept], cl
xor r15d, r15d
test cl, cl
je 0x14007536f
call fcn.140090540
test eax, eax
jne 0x140075368
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x6f]
lea edx, [r15 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 1
jne 0x14007536f
mov dword [rbp + 0x67], r15d
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 1]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rbp + 0x67]
test r9d, r9d
je 0x140075292
mov edx, r9d
lea ecx, [r15 + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov r9d, dword [rbp + 0x67]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov r8, rbx
mov edx, 1
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14007536f
xor eax, eax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
mov edi, r15d
lea r9, [rbp + 0x77]
mov r8d, 0xf0fff
lea rdx, [rbp + 7]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
jne 0x140075352
lea rax, [0x1400adb80]
mov qword [rbp - 1], rax
mov dword [rbp - 9], 0x2c002a
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
mov r9d, 1
lea r8, [rbp - 9]
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
test eax, eax
jne 0x140075348
lea r8, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
lea edx, [rax + 2]
mov rcx, qword [0x1400cd090]
call fcn.140079b60
mov edi, 1
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ADVAPI32.dll_LsaClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x14007536f
call fcn.140090540
test eax, eax
je 0x14007536f
or dword [0x1400cd098], 1
mov rcx, qword [rsi + 0x330]
call fcn.140082820
mov r14, qword [rsi + 0x330]
mov rax, qword [r14 + 8]
mov rcx, qword [rax + 0x20]
cmp byte [rcx + 0x90], r15b
je 0x1400753b2
lea r8, [0x1400a9784]
mov edx, 2
mov rcx, qword [0x1400cd090]
call fcn.140079b60
xor eax, eax
jmp 0x140075628
mov ecx, 0x248
call fcn.140059474
mov rdi, rax
mov qword [rbp + 0x67], rax
lea rax, vtable.ApiRouter.0
mov qword [rdi], rax
lea rbx, [rdi + 0xa0]
lea rcx, [rbx + 0x100]
xor edx, edx
lea r8d, [rdx + 0x50]
call fcn.14005be70
mov dword [rbx + 0x150], r15d
mov qword [rbx + 0x158], r15
mov qword [rbx + 0x160], r15
mov qword [rbx + 0x168], r15
mov qword [rbx + 0x170], r15
mov byte [rbx + 0x178], 0
mov qword [rbx + 0x180], r15
mov qword [rbx + 0x188], r15
mov qword [rbx + 0x190], r15
xor edx, edx
mov r8d, 0x100
mov rcx, rbx
call fcn.14005be70
nop
mov qword [rdi + 0x240], r14
lea rcx, [rdi + 0x19]
xor edx, edx
mov r8d, 0x80
call fcn.14005be70
mov rax, qword [r14 + 8]
mov rcx, qword [rax + 0x20]
mov rdx, qword [rcx + 0x68]
mov rcx, rdi
call fcn.1400974d0
mov rcx, rdi
call fcn.1400991a0
nop
mov qword [0x1400cd520], rdi
mov ecx, 0xc0
call fcn.140059474
mov rdi, rax
mov qword [rbp + 0x67], rax
mov rcx, qword [rsi + 0x330]
mov rdx, qword [rcx + 8]
mov r8, qword [rdx + 0x20]
movzx r9d, byte [r8 + 0x12]
movzx edx, byte [r8 + 0x11]
mov rcx, qword [r8 + 0x60]
mov ebx, dword [r8 + 0x18]
mov byte [rax], 1
mov byte [rax + 1], dl
mov byte [rax + 2], r9b
test rcx, rcx
je 0x1400754ba
call fcn.140067e3c
jmp 0x1400754bd
mov rax, r15
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], ebx
mov qword [rdi + 0x18], r15
lea r14, [0x1400cd630]
mov rdx, qword [0x1400cd600]
test rdx, rdx
jne 0x1400754f3
call fcn.14003d1a0
test eax, eax
je 0x1400754e9
mov rdx, r15
jmp 0x1400754f3
mov qword [0x1400cd600], r14
mov rdx, r14
mov qword [rdi + 0x28], rdx
mov dword [rdi + 0x30], reloc.WS2_32.dll_listen
mov dword [rdi + 0x78], 0x20
lea rcx, [rdi + 0x40]
lea rax, [rdx + 0x10]
mov qword [rcx], rax
mov rax, qword [rdx + 0x18]
mov qword [rdi + 0x48], rax
mov qword [rax], rcx
mov qword [rdx + 0x18], rcx
mov dword [rdi + 0x50], 0xffffffff
mov qword [rdi + 0xb8], r15
mov qword [rdi + 0xa8], r15
mov qword [rdi + 0x20], rdi
mov qword [rsi + 0x10], rdi
mov edx, dword [rdi + 0x10]
test edx, edx
je 0x1400755ae
movzx eax, byte [rdi + 1]
neg al
sbb ecx, ecx
and ecx, 0x810
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rdi
lea rax, [0x140099b80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
movzx edx, dx
call fcn.1400508d0
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x140075595
lea r8, str.HTTP_Daemon_failed_to_start.
xor edx, edx
mov rcx, qword [0x1400cd090]
call fcn.140079b60
jmp 0x1400755ae
mov r9d, 0xc8
mov r8d, r9d
lea rdx, [0x140099ae0]
lea rcx, [rdi + 0x20]
call fcn.140044b60
mov rcx, qword [rsi + 0x330]
call fcn.14008f8c0
mov rax, qword [rsi + 0x330]
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [0x1400cd600]
test rcx, rcx
jne 0x1400755f6
call fcn.14003d1a0
test eax, eax
je 0x1400755ec
mov rcx, r15
jmp 0x1400755f6
mov qword [0x1400cd600], r14
mov rcx, r14
call fcn.14003dbd0
mov ebx, eax
mov rcx, qword [0x1400cd600]
test rcx, rcx
jne 0x140075621
call fcn.14003d1a0
test eax, eax
je 0x140075617
mov rcx, r15
jmp 0x140075621
mov qword [0x1400cd600], r14
mov rcx, r14
call fcn.14003bb40
mov eax, ebx
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret