Function at 0x140016e6c
Capabilities:
Read file on windows
Start http server

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x330
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rdi, rdx
cmp qword [rcx + 0x18], 8
jb 0x140016eb2
mov rcx, qword [rcx]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbx + 1]
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CreateFileW]
mov rsi, rax
mov qword [rbp - 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x140016eeb
mov edx, 0x236
jmp 0x140016f01
lea rdx, [rbp - 0x28]
mov rcx, rsi
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetFileInformationByHandle]
test eax, eax
jne 0x140016f1c
mov edx, 0x238
lea r8, str.onecoreuap_adminwebbhttpsrvexewebbsslmanager.cpp
mov rcx, qword [rbp + 0x268]
call fcn.1400036b8
mov r15d, eax
jmp 0x1400174f8
movsxd r15, dword [rbp - 4]
mov rcx, r15
lea rdx, [0x1400f80f4]
call fcn.1400c24ac
mov r14, rax
mov qword [rbp - 0x68], rax
test rax, rax
jne 0x140016f48
mov r15d, 0x8007000e
mov edx, 0x23b
jmp 0x140016fa8
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x60]
mov r8d, r15d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x140016f85
mov rcx, qword [rbp + 0x268]
lea r8, str.onecoreuap_adminwebbhttpsrvexewebbsslmanager.cpp
mov edx, 0x23d
call fcn.1400036b8
mov r15d, eax
jmp 0x1400174ee
mov dword [rsp + 0x78], r15d
mov qword [rbp - 0x80], r14
lea rcx, [rsp + 0x78]
call qword [sym.imp.CRYPT32.dll_PFXIsPFXBlob]
test eax, eax
jne 0x140016fc3
mov r15d, 0x80070057
mov edx, 0x241
lea r8, str.onecoreuap_adminwebbhttpsrvexewebbsslmanager.cpp
mov r9d, r15d
mov rcx, qword [rbp + 0x268]
call fcn.140003684
jmp 0x1400174ee
cmp qword [rdi + 0x18], 8
jb 0x140016fcd
mov rdi, qword [rdi]
mov r8d, 0x10
mov rdx, rdi
lea rcx, [rsp + 0x78]
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140017048
lea r15d, [rax + 2]
cmp dword [0x140142444], r15d
jb 0x140017010
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str.Failed_to_import_.pfx__LastError___d_n
mov ecx, r15d
call fcn.14003929c
lea rcx, section..data
mov rax, qword [section..data]
cmp rax, rcx
je 0x1400170df
test byte [rax + 0x1c], r15b
je 0x1400170df
cmp byte [rax + 0x19], r15b
jb 0x1400170df
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov edx, 0x11
jmp 0x1400170c5
lea rax, str.Windows_Web_Management
mov qword [rsp + 0x20], rax
mov r9d, 0x20000
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xa]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x1400170fb
lea r15d, [rax + 2]
cmp dword [0x140142444], r15d
jb 0x14001709b
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str.Failed_to_open_cert_store__LastError___d_n
mov ecx, r15d
call fcn.14003929c
lea rcx, section..data
mov rax, qword [section..data]
cmp rax, rcx
je 0x1400170df
test byte [rax + 0x1c], r15b
je 0x1400170df
cmp byte [rax + 0x19], r15b
jb 0x1400170df
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov edx, 0x12
mov r9d, eax
lea r8, [0x1400fcea0]
mov rcx, qword [section..data]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
jmp 0x1400174ee
lea rax, [rsp + 0x50]
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x50], 1
mov r12, rbx
mov r15d, 2
lea r13, section..data
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10001
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov rdi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1400174d1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x10]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CertGetNameStringW]
mov qword [rsp + 0x58], rbx
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rbx
mov word [rbp - 0x48], bx
cmp word [rbp + 0x10], bx
jne 0x14001719e
mov r8, rbx
jmp 0x1400171b0
lea rax, [rbp + 0x10]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1400171a6
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x48]
call fcn.140007004
nop
lea rcx, [rbp - 0x48]
call fcn.140042468
mov rdi, rbx
test rax, rax
cmovne rdi, rax
mov qword [rsp + 0x58], rdi
cmp qword [rbp - 0x30], 8
jb 0x1400171e7
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
test rdi, rdi
je 0x1400171fc
mov rcx, rdi
call fcn.1400426ec
mov rdi, rbx
mov qword [rsp + 0x58], rbx
xor r8d, r8d
mov edx, r15d
mov ecx, dword [reloc.OLEAUT32.dll_SysReAllocString]
call qword [sym.imp.HTTPAPI.dll_HttpInitialize]
mov r12d, eax
test eax, eax
jne 0x1400173a8
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
call fcn.140019530
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.1400164e8
test eax, eax
js 0x140017376
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rbx
mov word [rbp - 0x48], bx
cmp word [rbp + 0x10], bx
jne 0x14001725a
mov r8, rbx
jmp 0x14001726c
lea rax, [rbp + 0x10]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140017262
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x48]
call fcn.140007004
mov rax, qword [rsp + 0x40]
mov r12, qword [rax + 8]
mov r13, rax
cmp byte [r12 + 0x19], bl
jne 0x1400172d3
lea rdx, [r12 + 0x20]
lea r8, [rbp - 0x48]
call fcn.1400103a8
test al, al
je 0x1400172a5
mov r12, qword [r12 + 0x10]
jmp 0x1400172ac
mov r13, r12
mov r12, qword [r12]
cmp byte [r12 + 0x19], bl
je 0x14001728c
mov rax, qword [rsp + 0x40]
cmp r13, rax
je 0x1400172d3
lea r8, [r13 + 0x20]
lea rdx, [rbp - 0x48]
call fcn.1400103a8
test al, al
mov rax, qword [rsp + 0x40]
je 0x1400172d6
mov r13, rax
cmp qword [rbp - 0x30], 8
jb 0x1400172ec
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rbx
mov word [rbp - 0x48], bx
cmp r13, rax
je 0x14001736f
mov rcx, qword [r13 + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400f5e38]
mov r12d, eax
test eax, eax
jns 0x14001736f
cmp dword [0x140142444], 4
jb 0x140017336
mov r8d, eax
lea rdx, str.Failed_to_delete_SSL_config:_0x_x
mov ecx, 4
call fcn.14003929c
mov rcx, qword [section..data]
lea r13, section..data
cmp rcx, r13
je 0x140017376
test byte [rcx + 0x1c], r15b
je 0x140017376
cmp byte [rcx + 0x19], 4
jb 0x140017376
mov edx, 0x13
mov r9d, r12d
lea r8, [0x1400fcea0]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
jmp 0x140017376
lea r13, section..data
xor edx, edx
mov ecx, r15d
call qword [sym.imp.HTTPAPI.dll_HttpTerminate]
nop
mov r8, qword [rsp + 0x40]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.140018f74
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x1400173f5
cmp dword [0x140142444], 4
jb 0x1400173c5
mov r8d, r12d
lea rdx, str.Failed_to_initialize_HTTP_config:_0x_x
mov ecx, 4
call fcn.14003929c
mov rcx, qword [section..data]
cmp rcx, r13
je 0x1400173f5
test byte [rcx + 0x1c], r15b
je 0x1400173f5
cmp byte [rcx + 0x19], 4
jb 0x1400173f5
mov edx, 0x14
mov r9d, r12d
lea r8, [0x1400fcea0]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
xor r9d, r9d
lea r8d, [r9 + 3]
mov r12, qword [rsp + 0x70]
mov rdx, r12
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
je 0x14001743b
test rdi, rdi
je 0x140017118
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001742d
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov qword [rdi], rbx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x140017118
cmp dword [0x140142444], r15d
jb 0x14001745c
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov r8d, eax
lea rdx, str.Failed_to_import_the_certificate_into_the_cert_store__LastError___d_n
mov ecx, r15d
call fcn.14003929c
mov rax, qword [section..data]
cmp rax, r13
je 0x140017499
test byte [rax + 0x1c], r15b
je 0x140017499
cmp byte [rax + 0x19], r15b
jb 0x140017499
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov r9d, eax
mov edx, 0x15
lea r8, [0x1400fcea0]
mov rcx, qword [section..data]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
test rdi, rdi
je 0x1400174e0
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400174c6
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov qword [rdi], rbx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x1400174e0
mov dl, 1
mov ecx, 1
call fcn.14003c068
mov r15d, eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
nop
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001750b
mov rcx, rsi
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
mov eax, r15d
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1400c20a0
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret