Function at 0x14001757c
Capabilities:
Create new key via cryptacquirecontext
Initialize winsock library
Start http server

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x210
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r13d, 2
mov ecx, r13d
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
lea r15d, [r13 + 2]
lea rsi, [0x1400fcea0]
test eax, eax
jne 0x140017856
xor r8d, r8d
mov edx, r13d
mov ecx, dword [reloc.OLEAUT32.dll_SysReAllocString]
call qword [sym.imp.HTTPAPI.dll_HttpInitialize]
mov ebx, eax
test eax, eax
jne 0x140017800
and qword [rsp + 0x38], 0
and qword [rsp + 0x40], 0
call fcn.140019530
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.1400164e8
mov ebx, eax
lea r14, section..data
test eax, eax
jns 0x140017675
cmp dword [0x140142444], r15d
jb 0x140017649
mov r8d, eax
lea rdx, str.Failed_to_get_HttpServerConfigurations:_0x_x
mov ecx, r15d
call fcn.14003929c
mov rcx, qword [section..data]
cmp rcx, r14
je 0x140017675
test byte [rcx + 0x1c], r13b
je 0x140017675
cmp byte [rcx + 0x19], r15b
jb 0x140017675
mov edx, 0x16
mov r9d, ebx
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.140007608
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsi]
jmp 0x1400177bd
mov rcx, qword [rbx + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400f5e38]
mov edi, eax
test eax, eax
jns 0x1400176e4
cmp dword [0x140142444], r15d
jb 0x1400176b4
mov r8d, eax
lea rdx, str.Failed_to_delete_SSL_config:_0x_x
mov ecx, r15d
call fcn.14003929c
mov rcx, qword [section..data]
cmp rcx, r14
je 0x1400176e4
test byte [rcx + 0x1c], r13b
je 0x1400176e4
cmp byte [rcx + 0x19], r15b
jb 0x1400176e4
mov edx, 0x17
mov r9d, edi
lea r8, [0x1400fcea0]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
mov rcx, qword [rbx + 0x40]
add rcx, 0x18
call fcn.140042468
mov rdi, rax
test rax, rax
je 0x140017774
mov rcx, rax
call fcn.1400426ec
mov r15d, eax
test eax, eax
jns 0x140017753
cmp dword [0x140142444], r13d
jb 0x140017723
mov r8d, eax
lea rdx, str.Failed_to_delete_SSL_certificate_from_store:_0x_x
mov ecx, r13d
call fcn.14003929c
mov rcx, qword [section..data]
cmp rcx, r14
je 0x140017753
test byte [rcx + 0x1c], r13b
je 0x140017753
cmp byte [rcx + 0x19], r13b
jb 0x140017753
mov edx, 0x18
mov r9d, r15d
lea r8, [0x1400fcea0]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
mov rcx, qword [rdi]
test rcx, rcx
je 0x140017765
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
and qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov r15d, 4
cmp byte [rbx + 0x19], 0
jne 0x1400177bd
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400177a1
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x1400177bd
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140017790
jmp 0x1400177bd
mov rax, qword [rbx + 8]
jmp 0x1400177b4
cmp rbx, qword [rax + 0x10]
jne 0x1400177ba
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400177a7
mov rbx, rax
cmp rbx, rsi
jne 0x140017682
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.HTTPAPI.dll_HttpTerminate]
nop
mov r8, qword [rsp + 0x38]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.140018f74
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
lea rsi, [0x1400fcea0]
jmp 0x14001784e
cmp dword [0x140142444], r13d
jb 0x14001781b
mov r8d, ebx
lea rdx, str.Failed_to_initialize_HTTP_config:_0x_x
mov ecx, r13d
call fcn.14003929c
lea r14, section..data
mov rcx, qword [section..data]
cmp rcx, r14
je 0x14001784e
test byte [rcx + 0x1c], r13b
je 0x14001784e
cmp byte [rcx + 0x19], r13b
jb 0x14001784e
mov edx, 0x19
mov r9d, ebx
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.140007608
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400178a4
cmp dword [0x140142444], r13d
jb 0x140017871
mov r8d, ebx
lea rdx, str.Failed_to_call_WSAStartup:_0x_x
mov ecx, r13d
call fcn.14003929c
lea r14, section..data
mov rcx, qword [section..data]
cmp rcx, r14
je 0x1400178a4
test byte [rcx + 0x1c], r13b
je 0x1400178a4
cmp byte [rcx + 0x19], r13b
jb 0x1400178a4
mov edx, 0x1a
mov r9d, ebx
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.140007608
lea rax, str.Windows_Web_Management
mov qword [rsp + 0x20], rax
mov r9d, 0x20010
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xa]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
test eax, eax
je 0x140017947
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov ecx, 0x80000000
lea eax, [rbx + rcx]
test ecx, eax
jne 0x140017947
cmp ebx, 0x80070002
je 0x140017947
cmp dword [0x140142444], r15d
jb 0x14001791b
mov r8d, ebx
lea rdx, str.Failed_to_clear_Webb_certificates:_0x_x
mov ecx, r15d
call fcn.14003929c
mov rcx, qword [section..data]
cmp rcx, r14
je 0x140017947
test byte [rcx + 0x1c], r13b
je 0x140017947
cmp byte [rcx + 0x19], r15b
jb 0x140017947
mov edx, 0x1b
mov r9d, ebx
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.140007608
and qword [rsp + 0x30], 0
mov edi, 0x30
mov dword [rsp + 0x20], edi
lea r9d, [rdi - 0x18]
lea r8, [0x1400fe710]
lea rdx, str.WebbRootCA
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptAcquireContextW]
test eax, eax
jne 0x140017980
call fcn.1400401a8
mov ebx, eax
jmp 0x140017982
xor ebx, ebx
test ebx, ebx
jns 0x1400179cd
cmp dword [0x140142444], r15d
jb 0x1400179a1
mov r8d, ebx
lea rdx, str.Failed_to_delete_root_context:_0x_x
mov ecx, r15d
call fcn.14003929c
mov rcx, qword [section..data]
cmp rcx, r14
je 0x1400179cd
test byte [rcx + 0x1c], r13b
je 0x1400179cd
cmp byte [rcx + 0x19], r15b
jb 0x1400179cd
mov edx, 0x1c
mov r9d, ebx
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.140007608
mov dword [rsp + 0x20], edi
mov r9d, 0x18
lea r8, [0x1400fe710]
lea rdx, str.WebbSSL
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400179fd
call fcn.140040564
mov ebx, eax
jmp 0x1400179ff
xor ebx, ebx
test ebx, ebx
jns 0x140017a4a
cmp dword [0x140142444], r15d
jb 0x140017a1e
mov r8d, ebx
lea rdx, str.Failed_to_delete_SSL_context:_0x_x
mov ecx, r15d
call fcn.14003929c
mov rcx, qword [section..data]
cmp rcx, r14
je 0x140017a4a
test byte [rcx + 0x1c], r13b
je 0x140017a4a
cmp byte [rcx + 0x19], r15b
jb 0x140017a4a
mov edx, 0x1d
mov r9d, ebx
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.140007608
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140017a5c
xor edx, edx
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret