Function at 0x140082c40
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Set http header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x1f0
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x140290040]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, rcx
xor r12d, r12d
xor dil, dil
mov dword [rbp + 0x80], r12d
mov dword [rbp + 0x84], r12d
movabs rax, 0xaa0b5d075423722d
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x10], rax
movabs rax, 0x3c2adb061f8c07db
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x18], rax
movabs rax, 0x8f9b46e84db9625d
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs r13, 0x3b5a00c9f29692d2
mov qword [rbp], r13
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs r15, 0xaa685d66544f724f
mov qword [rbp], r15
mov rax, qword [rbp]
mov qword [rbp + 0x160], rax
movabs rax, 0x3c59db6f1fe007b0
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x168], rax
movabs rsi, 0x8f9b46e84db96229
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x170], rax
mov qword [rbp], r13
mov rax, qword [rbp]
mov qword [rbp + 0x178], rax
vmovdqu ymm0, ymmword [rbp + 0x10]
vpxor ymm1, ymm0, ymmword [rbp + 0x160]
vmovdqu ymmword [rbp + 0x10], ymm1
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x10]
vzeroupper
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r14, rax
test rax, rax
je 0x140082fb3
movabs rax, 0xaa095d10542e723c
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
movabs rax, 0x3c36db071f8507d7
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
movabs rax, 0x8ff846c64dd26246
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x50], rax
movabs rax, 0x3b3100aaf2ff92be
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
movabs rdx, 0x481199d2b2436473
mov qword [rbp], rdx
mov rax, qword [rbp]
mov qword [rbp + 0x60], rax
movabs rcx, 0x54889f2b76ad8284
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x68], rax
mov qword [rbp], r15
mov rax, qword [rbp]
mov qword [rbp + 0x120], rax
movabs rax, 0x3c59db6f1fe007b0
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x128], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x130], rax
mov qword [rbp], r13
mov rax, qword [rbp]
mov qword [rbp + 0x138], rax
mov qword [rbp], rdx
mov rax, qword [rbp]
mov qword [rbp + 0x140], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x148], rax
vmovdqu ymm0, ymmword [rbp + 0x40]
vpxor ymm1, ymm0, ymmword [rbp + 0x120]
vmovdqa ymmword [rbp + 0x40], ymm1
vmovdqa xmm0, xmmword [rbp + 0x60]
vxorps xmm0, xmm0, xmmword [rbp + 0x140]
vmovdqa xmmword [rbp + 0x60], xmm0
mov r8d, 0x50
xor r9d, r9d
lea rdx, [rbp + 0x40]
mov rcx, r14
vzeroupper
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
je 0x140082faa
movabs rax, 0xaa095d0a542d7260
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x160], rax
movabs rax, 0x3c30db031f8b07d3
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x168], rax
movabs rax, 0x8fff468d4dcd625a
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x170], rax
mov qword [rbp], r13
mov rax, qword [rbp]
mov qword [rbp + 0x178], rax
movabs rax, 0xaa685d66544f724f
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x100], rax
movabs rax, 0x3c59db6f1fe007b0
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x108], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x110], rax
mov qword [rbp], r13
mov rax, qword [rbp]
mov qword [rbp + 0x118], rax
vmovdqu ymm0, ymmword [rbp + 0x160]
vpxor ymm1, ymm0, ymmword [rbp + 0x100]
vmovdqu ymmword [rbp + 0x160], ymm1
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rbp + 0x160]
lea rdx, str.POST
mov rcx, r15
vzeroupper
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
jne 0x140082fba
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
jmp 0x1400834d1
movabs rax, 0x9011382d3c3b070e
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x100], rax
movabs rax, 0x6818942847ad4690
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x108], rax
movabs rcx, 0x8f9b46e84db96229
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x110], rax
mov qword [rbp], r13
mov rax, qword [rbp]
mov qword [rbp + 0x118], rax
movabs rax, 0xaa685d66544f724f
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x120], rax
movabs rax, 0x3c59db6f1fe007b0
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x128], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x130], rax
mov qword [rbp], r13
mov rax, qword [rbp]
mov qword [rbp + 0x138], rax
vmovdqu ymm0, ymmword [rbp + 0x100]
vpxor ymm1, ymm0, ymmword [rbp + 0x120]
vmovdqa ymmword [rbp + 0x100], ymm1
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rbp + 0xa8], xmm0
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0xc0], r12
lea rax, [rbp + 0x100]
mov r8, 0xffffffffffffffff
vzeroupper
inc r8
cmp byte [rax + r8], dil
jne 0x1400830a7
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0xa8]
call fcn.140009030
nop
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 4
jb 0x140083501
cmp qword [rbx + 0x18], 0xf
jbe 0x1400830e9
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 4
lea r9, str.IP:
lea rcx, [rbp + 0x88]
call fcn.140009fd0
nop
lea rdx, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 0xf
cmova rdx, qword [rbp + 0xa8]
mov r8, qword [rbp + 0xb8]
add r8, rdx
lea rdx, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 0xf
cmova rdx, qword [rbp + 0xa8]
lea rcx, [rbp + 0x120]
call fcn.1400086e0
cmp qword [rax + 0x18], 7
jbe 0x14008315e
mov rax, qword [rax]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov ebx, eax
mov rdx, qword [rbp + 0x138]
cmp rdx, 7
jbe 0x1400831c1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400831bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400831bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140085e60
test ebx, ebx
je 0x14008340e
lea rdx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 0xf
cmova rdx, qword [rbp + 0x88]
mov r8, qword [rbp + 0x98]
add r8, rdx
lea rdx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 0xf
cmova rdx, qword [rbp + 0x88]
lea rcx, [rbp + 0x120]
call fcn.1400086e0
cmp qword [rax + 0x18], 7
jbe 0x140083217
mov rax, qword [rax]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov ebx, eax
mov rdx, qword [rbp + 0x138]
cmp rdx, 7
jbe 0x14008327a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140083275
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140083275
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140085e60
test ebx, ebx
je 0x14008340e
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rcx, rsi
test eax, eax
je 0x140083411
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14008340e
nop dword [rax]
mov dword [rbp + 0x80], r12d
lea rdx, [rbp + 0x80]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400833ea
mov ecx, dword [rbp + 0x80]
inc ecx
call fcn.1400860ec
mov rbx, rax
mov r8d, dword [rbp + 0x80]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp + 0x84]
mov r8d, dword [rbp + 0x80]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400833d5
xorps xmm0, xmm0
movups xmmword [rbp + 0xc8], xmm0
mov qword [rbp + 0xd8], r12
mov qword [rbp + 0xe0], r12
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140083344
mov rdx, rbx
lea rcx, [rbp + 0xc8]
call fcn.140009030
lea rax, [rbp + 0xc8]
mov rcx, qword [rbp + 0xc8]
mov rdx, qword [rbp + 0xe0]
cmp rdx, 0xf
cmova rax, rcx
mov r8, qword [rbp + 0xd8]
cmp r8, 4
jne 0x140083394
cmp dword [rax], 0x65757274
jne 0x140083394
mov dil, 1
jmp 0x1400833a6
lea rax, [rbp + 0xc8]
cmp rdx, 0xf
cmova rax, rcx
xor dil, dil
cmp rdx, 0xf
jbe 0x1400833d5
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400833d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140083407
call fcn.140085e60
mov rcx, rbx
call fcn.140085e60
cmp dword [rbp + 0x80], 0
ja 0x1400832c0
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x14008342c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor dil, dil
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0xf
jbe 0x140083470
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008346b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008346b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140085e60
mov qword [rbp + 0x98], r12
mov qword [rbp + 0xa0], 0xf
mov byte [rbp + 0x88], 0
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0xf
jbe 0x1400834cd
inc rdx
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400834c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400834c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140085e60
movzx eax, dil
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140085e40
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001210
nop
int3