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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7f8]
sub rsp, 0x8c0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rbx, r8
mov rdi, rdx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r13
mov r14d, 0xf
mov qword [rdx + 0x18], r14
mov byte [rdx], r13b
mov dword [rsp + 0x40], 1
movabs rax, 0x19d9e915bc110048
mov qword [rsp + 0x70], rax
movabs rax, 0x8804d056c0c0631
mov qword [rsp + 0x78], rax
movabs rax, 0x2d8aa1615d4a44e
mov qword [rbp - 0x80], rax
movabs rax, 0xb309bf863b8e5df
mov qword [rbp - 0x78], rax
movabs rax, 0x40ace8abecb0946
mov qword [rbp - 0x70], rax
movabs rcx, 0x33c6b7fbc02a81c
mov qword [rbp - 0x68], rcx
movabs rax, 0x19ace979bc41000b
mov qword [rbp - 0x30], rax
movabs rax, 0x8f54d696c5c0642
mov qword [rbp - 0x28], rax
movabs rax, 0x2b9aa6e1591a43d
mov qword [rbp - 0x20], rax
movabs rax, 0xb559b9463c8e5b2
mov qword [rbp - 0x18], rax
movabs rax, 0x43acea4befa0969
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rcx
xorps xmm5, xmm5
xorps xmm6, xmm6
xorps xmm7, xmm7
lea rax, [rbp + 0x100]
mov ecx, 6
nop dword [rax]
nop word [rax + rax]
mov qword [rax], r13
mov qword [rax + 8], r13
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x140051de0
movdqa xmm0, xmmword [rsp + 0x70]
xorps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp + 0x100], xmm0
movdqa xmm1, xmmword [rbp - 0x80]
xorps xmm1, xmmword [rbp - 0x20]
movdqa xmmword [rbp + 0x110], xmm1
movdqa xmm0, xmmword [rbp - 0x70]
xorps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmmword [rbp + 0x130], xmm5
movdqa xmmword [rbp + 0x140], xmm6
movdqa xmmword [rbp + 0x150], xmm7
lea rax, [rbp + 0x500]
lea rcx, [rbp + 0x100]
mov edx, 5
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub rdx, 1
jne 0x140051e50
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp + 0x500]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x140052324
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x14005231b
movabs rax, 0x89c9372e8675e
mov qword [rbp + 0x80], rax
movabs rcx, 0x5b22adb85e4d674
mov qword [rbp + 0x88], rcx
movabs rax, 0x89cc772ad6719
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rcx
xorps xmm2, xmm2
lea rax, [rsp + 0x70]
mov ecx, 2
nop dword [rax]
mov qword [rax], r13
mov qword [rax + 8], r13
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x140051f40
movdqa xmm0, xmmword [rbp + 0x80]
xorps xmm0, xmmword [rbp + 0xa0]
movaps xmmword [rbp + 0x80], xmm0
movaps xmmword [rbp + 0x90], xmm2
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0xa0], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0xb0], xmm1
movaps xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0xc0], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0xd0], xmm1
movaps xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0xe0], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0xf0], xmm1
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x80]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
je 0x140052312
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
je 0x140052309
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140052309
mov dword [rbp + 0x818], 8
mov qword [rsp + 0x48], r13
lea r9, [rbp + 0x818]
lea r8, [rsp + 0x48]
mov edx, 0x4e
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
je 0x140052309
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140052309
mov dword [rbp + 0x800], 0x400
lea r9, [rbp + 0x800]
lea r8, [rbp + 0x100]
mov edx, 0x6b
call qword [sym.imp.CRYPT32.dll_CertGetCertificateContextProperty]
test eax, eax
je 0x1400522fe
lea rax, [0x1401183c8]
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 9
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x20], r13
mov dword [rbp - 0x18], 4
lea rdx, [0x1400463c0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov byte [rdx + rax + 0x58], 0x30
mov ebx, r13d
cmp dword [rbp + 0x800], r13d
jbe 0x140052189
nop dword [rax]
nop word [rax + rax]
mov edx, 2
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, qword [rax]
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0x70]
add rcx, rdx
mov rdx, qword [rax + 8]
call r8
mov eax, ebx
movzx edx, byte [rbp + rax + 0x100]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
inc ebx
cmp ebx, dword [rbp + 0x800]
jb 0x140052140
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm6, xmmword [0x140118fa0]
movdqu xmmword [rsp + 0x60], xmm6
mov byte [rsp + 0x50], 0
mov dword [rsp + 0x40], 0xd
movups xmmword [rbp + 0x60], xmm0
mov ecx, dword [rbp - 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400521dc
mov rax, qword [rbp - 0x48]
mov r8, qword [rax]
test r8, r8
je 0x1400521dc
mov rax, qword [rbp - 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x20]
cmovb r8, qword [rbp - 0x20]
sub r8, rdx
jmp 0x14005220b
test cl, 4
jne 0x140052203
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x140052203
mov rax, qword [rbp - 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x38]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x14005220b
mov r8, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x140052220
lea rcx, [rsp + 0x50]
call fcn.140045810
movdqu xmm6, xmmword [rsp + 0x60]
lea rax, [rsp + 0x50]
cmp rdi, rax
je 0x140052276
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140052260
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14005225b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400522ab
mov rcx, r8
call fcn.1400e7658
mov byte [rdi], 0
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm6
mov byte [rsp + 0x50], 0
jmp 0x14005227b
mov r14, qword [rsp + 0x68]
cmp r14, 0xf
jbe 0x1400522b8
lea rdx, [r14 + 1]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400522b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400522b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7658
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140053b10
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov rcx, rsi
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]
mov rax, rdi
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret