Function at 0x140006c9c
Capabilities:
Delete file
Get common file path
Initialize winhttp library
Prepare http request
Read .ini file
Receive http response
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
xor ebx, ebx
mov r15, r8
mov rdi, rdx
mov rsi, rcx
cmp byte [rcx], bl
je 0x140006d79
test rdx, rdx
je 0x140006d79
cmp byte [rdx], bl
je 0x140006d79
test r8, r8
je 0x140006d79
lea r13d, [rbx + 1]
mov r14d, ebx
mov dword [rbp + 0x67], r13d
lea r12, [0x140009da3]
test r9d, r9d
je 0x140006da8
mov r9, rdx
lea rcx, str.Connection_Manager
lea rdx, str.ServiceName
mov r8, r12
call fcn.140006758
mov rbx, rax
test rax, rax
je 0x140006d97
cmp byte [rax], r14b
je 0x140006d97
mov rcx, rax
call fcn.140003b6c
test eax, eax
jne 0x140006d97
mov ecx, dword [0x14000e0a0]
lea rdx, str.UpdateVpnFileForProfile____not_connected_..._aborting.
call fcn.140007c34
mov r9, r12
mov qword [rsp + 0x20], r12
lea edx, [r13 + 0x21]
mov r8d, 0x8ca
mov rcx, r15
call qword [sym.imp.cmutil.dll_public:_void___cdecl_CmLogFile::Log_enum__CMLOG_ITEM____ptr64]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
xor ebx, ebx
mov r9, rdi
lea rdx, str.TunnelFile
mov r8, r12
lea rcx, str.Connection_Manager
call fcn.140006758
mov qword [rbp + 0x17], rax
mov rdi, rax
test rax, rax
je 0x1400075dc
cmp byte [rax], bl
je 0x1400075dc
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.cmutil.dll_CmBuildFullPathFromRelativeA]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x1400075bd
cmp byte [rax], bl
je 0x1400075bd
mov r9, rax
lea r8, [0x140009da3]
lea rdx, str.UpdateUrl
lea rcx, str.Settings
call fcn.140006758
mov r13, rax
test rax, rax
je 0x14000759a
cmp byte [rax], bl
je 0x14000759a
and dword [rbp - 0x11], r14d
xor ecx, ecx
and qword [rbp - 1], r14
xor eax, eax
mov qword [rbp - 0x21], rcx
mov rsi, rbx
mov rcx, r13
mov qword [rbp + 0xf], rax
mov ebx, 8
mov qword [rbp - 0x19], rax
mov dword [rbp + 0x67], 0x104
xor r15d, r15d
call qword [sym.imp.cmutil.dll_SzToWzWithAlloc]
nop dword [rax + rax]
xor edi, edi
mov qword [rbp + 7], rax
test rax, rax
mov ecx, 0x2548
lea eax, [rbx - 7]
cmovne edi, eax
call qword [sym.imp.cmutil.dll_CmMalloc]
nop dword [rax + rax]
mov qword [rbp - 9], rax
mov r14, rax
test rax, rax
jne 0x140006eaf
sub edi, 1
je 0x1400074d5
cmp edi, 1
jne 0x1400074e5
mov rcx, r13
jmp 0x1400074d9
xor edx, edx
mov r8d, 0x2548
mov rcx, r14
call sub.msvcrt.dll_memset
mov ecx, 0x81
mov dword [r14], 0x68
mov dword [r14 + 0x30], ecx
lea rax, [r14 + 0x68]
mov qword [r14 + 8], rax
mov r9, r14
mov dword [r14 + 0x40], ecx
lea rax, [r14 + 0xa8]
mov qword [r14 + 0x18], rax
mov ecx, 0x825
lea rax, [r14 + 0x2aa]
mov dword [r14 + 0x50], ecx
mov qword [r14 + 0x28], rax
xor edx, edx
lea rax, [r14 + 0x3ac]
mov dword [r14 + 0x60], ecx
mov rcx, qword [rbp + 7]
mov r8d, 0x10000000
mov qword [r14 + 0x38], rax
lea rax, [r14 + 0x4ae]
mov qword [r14 + 0x48], rax
lea rax, [r14 + 0x14f8]
mov qword [r14 + 0x58], rax
mov dword [r14 + 0x10], 0x20
mov dword [r14 + 0x20], 0x101
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
nop dword [rax + rax]
test eax, eax
jne 0x140006f61
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140007468
mov ecx, dword [0x14000e0a0]
lea rdx, str.DownloadVpnFileFromUrl:_URL_is__s
mov r8, r13
call fcn.140007c34
mov rcx, r15
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x67]
inc ecx
call qword [sym.imp.cmutil.dll_CmMalloc]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x140007468
mov ecx, dword [rbp + 0x67]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
nop dword [rax + rax]
test eax, eax
je 0x140007445
mov ecx, dword [rbp + 0x67]
cmp eax, ecx
jbe 0x140006fd3
mov dword [rbp + 0x67], eax
cmp eax, 0x800
ja 0x140007468
jmp 0x140006f76
add ecx, 0x18
call qword [sym.imp.cmutil.dll_CmMalloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140007468
mov r9, rax
lea rdx, [0x14000b458]
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop dword [rax + rax]
mov dword [rbp + 0x67], eax
test eax, eax
je 0x1400073d1
cmp byte [rsi], 0
je 0x1400073d1
mov rcx, r15
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
xor r15d, r15d
xor r9d, r9d
and qword [rsp + 0x30], r15
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov qword [rbp - 1], rax
cmp rax, 0xffffffffffffffff
je 0x14000742f
mov rdx, qword [rbp + 7]
lea r9, [rbp - 0x21]
xor eax, eax
mov dword [rbp - 0x11], 1
mov dword [rbp - 0x29], eax
lea r8, [rbp - 0x29]
mov qword [rbp - 0x21], rax
lea rcx, str.Microsoft_R__Connection_Manager_Vpn_File_Update
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call fcn.140006844
mov r9, qword [rbp - 0x19]
lea rcx, str.Microsoft_R__Connection_Manager_Vpn_File_Update
mov r8, qword [rbp - 0x21]
mov edx, dword [rbp - 0x29]
and dword [rsp + 0x20], r15d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x21]
mov qword [rbp + 0xf], rax
test rcx, rcx
je 0x1400070df
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x1400070f4
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov rax, qword [rbp + 0xf]
test rax, rax
je 0x1400073ac
movzx r8d, word [r14 + 0x24]
xor r9d, r9d
mov rdx, qword [r14 + 0x18]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
nop dword [rax + rax]
mov qword [rbp - 0x21], rax
test rax, rax
je 0x140007387
mov ecx, 0x1002
call qword [sym.imp.cmutil.dll_CmMalloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x140007159
mov ecx, dword [0x14000e0a0]
lea rdx, str.DownloadVpnFileFromUrl___aborted._Could_not_allocate_memory
call fcn.140007c34
jmp 0x1400073f7
mov rcx, qword [rbp - 9]
mov edx, 0x801
mov r8, qword [rcx + 0x48]
mov rcx, r14
call fcn.140001f2c
mov dword [rbp - 0x29], eax
mov rcx, r14
test eax, eax
jns 0x1400071a3
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
lea rdx, str.DownloadVpnFileFromUrl___StringCchCopyEx_failed:_0x_x_n
mov r8d, dword [rbp - 0x29]
mov ecx, dword [0x14000e0a0]
movzx ebx, r8w
call fcn.140007c34
jmp 0x1400073f7
mov rax, qword [rbp - 9]
mov r8, qword [rax + 0x58]
call fcn.1400021e8
mov dword [rbp - 0x29], eax
test eax, eax
jns 0x1400071cf
mov rcx, r14
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
lea rdx, str.DownloadVpnFileFromUrl___StringCchCatEx_failed:_0x_x_n
jmp 0x14000718b
mov rcx, qword [rbp - 9]
mov eax, 0x100
mov edx, 0x800100
mov r8, r14
cmp dword [rcx + 0x14], 2
mov rcx, qword [rbp - 0x21]
cmove eax, edx
xor r9d, r9d
mov dword [rsp + 0x30], eax
xor edx, edx
and qword [rsp + 0x28], r15
and qword [rsp + 0x20], r15
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
nop dword [rax + rax]
mov rcx, r14
mov qword [rbp - 0x19], rax
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov r14, qword [rbp - 0x19]
xor eax, eax
test r14, r14
je 0x14000736f
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
nop dword [rax + rax]
test eax, eax
jne 0x14000727c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rdx, str.DownloadVpnFileFromUrl____WinHttpSendRequest_Failed_with_Error__d
mov ecx, dword [0x14000e0a0]
mov r8d, eax
mov ebx, eax
call fcn.140007c34
jmp 0x1400073e3
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
nop dword [rax + rax]
test eax, eax
jne 0x1400072a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rdx, str.DownloadVpnFileFromUrl____WinHttpReceiveResponse_Failed_with_Error__d
jmp 0x140007267
mov ecx, 0x400
call qword [sym.imp.cmutil.dll_CmMalloc]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x1400073e3
and dword [rbp - 0x29], 0
lea r9, [rbp + 0x67]
mov r8d, 0x400
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
nop dword [rax + rax]
test eax, eax
je 0x140007361
mov r8d, dword [rbp + 0x67]
test r8d, r8d
jne 0x1400072f9
xor ebx, ebx
mov dword [rbp - 0x29], 1
mov rcx, qword [rbp - 1]
lea r9, [rbp + 0x67]
and qword [rsp + 0x20], 0
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x140007361
cmp dword [rbp - 0x29], 0
je 0x1400072c7
mov r9, rsi
lea rcx, str.VPN_Servers
mov r8d, 0x400
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
nop dword [rax + rax]
test eax, eax
jne 0x1400073e3
mov ecx, dword [0x14000e0a0]
lea rdx, str.DownloadVpnFileFromUrl____downloaded_file_does_not_seem_to_contain_a_VPN_list.
lea ebx, [rax + 0xd]
call fcn.140007c34
jmp 0x1400073e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x1400073e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rdx, str.DownloadVpnFileFromUrl____WinHttpOpenRequest_failed__GLE__d
jmp 0x140007267
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x14000e0a0]
lea rdx, str.DownloadVpnFileFromUrl____WinHttpConnect_Failed_with_Error__d
mov r8d, eax
mov ebx, eax
call fcn.140007c34
jmp 0x140007413
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x14000e0a0]
lea rdx, str.DownloadVpnFileFromUrl____WinHttpOpen_failed__GLE__d
mov r8d, eax
mov ebx, eax
call fcn.140007c34
jmp 0x14000742b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14, qword [rbp - 0x19]
mov ebx, eax
test r14, r14
je 0x1400073f7
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop dword [rax + rax]
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x14000740f
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop dword [rax + rax]
mov r14, qword [rbp - 9]
mov rax, qword [rbp + 0xf]
test rax, rax
je 0x14000742b
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop dword [rax + rax]
mov rax, qword [rbp - 1]
test rax, rax
je 0x140007468
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140007468
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x14000e0a0]
lea rdx, str.DownloadVpnFileFromUrl____GetTempPath_failed__GLE___d
mov r8d, eax
mov ebx, eax
call fcn.140007c34
mov rcx, r15
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
test ebx, ebx
je 0x1400074be
cmp dword [rbp - 0x11], 0
je 0x1400074a4
test rsi, rsi
je 0x1400074a4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
xor esi, esi
lea rdx, str.DownloadVpnFileFromUrl____VPN_file_download_failed_
jmp 0x1400074c5
lea rdx, str.DownloadVpnFileFromUrl____VPN_file_download_succeeded_
mov ecx, dword [0x14000e0a0]
call fcn.140007c34
jmp 0x140006e95
mov rcx, qword [rbp + 7]
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov r15, qword [rbp + 0x77]
xor r14d, r14d
test ebx, ebx
mov rcx, r15
sete r14b
and dword [rbp + 0x67], 0
test ebx, ebx
jne 0x140007514
mov r9, r13
lea edx, [rbx + 0x21]
mov r8, r12
call qword [sym.imp.cmutil.dll_public:_void___cdecl_CmLogFile::Log_enum__CMLOG_ITEM____ptr64]
nop dword [rax + rax]
jmp 0x140007530
mov r9, r12
mov qword [rsp + 0x20], r13
mov r8d, ebx
mov edx, 0x22
call qword [sym.imp.cmutil.dll_public:_void___cdecl_CmLogFile::Log_enum__CMLOG_ITEM____ptr64]
nop dword [rax + rax]
test ebx, ebx
jne 0x140007585
test rsi, rsi
je 0x140007585
cmp byte [rsi], bl
je 0x140007585
mov rdx, rsi
mov rcx, r12
call fcn.140006aa4
xor r14d, r14d
mov ebx, eax
test eax, eax
mov rcx, r15
sete r14b
test eax, eax
jne 0x14000756e
mov r8, r12
lea edx, [rax + 0x23]
call qword [sym.imp.cmutil.dll_public:_void___cdecl_CmLogFile::Log_enum__CMLOG_ITEM____ptr64]
nop dword [rax + rax]
jmp 0x140007585
mov r9, r12
mov r8d, eax
mov edx, 0x24
call qword [sym.imp.cmutil.dll_public:_void___cdecl_CmLogFile::Log_enum__CMLOG_ITEM____ptr64]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov rdi, qword [rbp + 0x17]
jmp 0x1400075a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, r13
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
mov r13d, dword [rbp + 0x67]
jmp 0x1400075cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, r12
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
jmp 0x1400075ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.cmutil.dll_CmFree]
nop dword [rax + rax]
test r13d, r13d
je 0x140007621
lea r9, [0x14000a9a8]
mov r8d, ebx
mov edx, 0x22
mov qword [rsp + 0x20], r9
mov rcx, r15
call qword [sym.imp.cmutil.dll_public:_void___cdecl_CmLogFile::Log_enum__CMLOG_ITEM____ptr64]
nop dword [rax + rax]
mov eax, r14d
jmp 0x140006d7b