Function at 0x14005caa0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfc0]
mov eax, 0x10c0
call fcn.1400a9bc0
sub rsp, rax
mov rax, qword [0x140218100]
xor rax, rsp
mov qword [rbp + 0xfb0], rax
mov rsi, r9
mov r14, rdx
mov r15, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x78], rdx
mov qword [rbp - 0x80], r9
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.WinINet_Example
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x14005cbc1
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], sendto
mov byte [r15], al
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x14005cb6e
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x14005cb69
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005cf10
mov rcx, r8
call fcn.1400a9050
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], sendto
mov byte [r14], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14005cbb8
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14005cbb3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x14005cf16
mov rcx, r8
call fcn.1400a9050
mov qword [rsi + 0x10], r13
jmp 0x14005ced8
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x14005cbce
mov rdx, qword [r14]
mov r8d, 0x50
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14005ccab
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], sendto
mov byte [r15], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x14005cc62
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r14]
jb 0x14005cc5d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005cf10
mov rcx, r8
call fcn.1400a9050
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], sendto
mov byte [r14], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14005cbb8
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14005cbb3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jmp 0x14005cbaa
lea rax, [0x1401f3178]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r13
mov r8, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14005ccc9
mov r8, qword [rsi]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x80000000
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rdx, [0x1401f31e0]
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov r12, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14005cd13
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14005cc08
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, 0x7a
lea rdx, str.User_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_50.0.2661.87_Safari_537.36_r_n
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x14005cd4c
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14005cc08
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov rdi, r13
mov qword [rbp - 0x68], r13
mov r13d, sendto
mov qword [rbp - 0x60], r13
mov byte [rbp - 0x78], dil
lea r9, [rsp + 0x44]
mov r8d, 0x1000
lea rdx, [rbp - 0x50]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14005ce24
movzx ebx, byte [rsp + 0x40]
nop dword [rax]
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x14005ce1f
mov r12d, eax
mov rax, r13
sub rax, rdi
cmp r12, rax
ja 0x14005cdd8
lea rax, [rdi + r12]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x78]
cmp r13, 0xf
cmova rax, qword [rbp - 0x78]
add rdi, rax
mov r8d, r12d
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.140145fb0
mov byte [rdi + r12], 0
jmp 0x14005cdf1
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x50]
movzx r8d, bl
mov rdx, r12
lea rcx, [rbp - 0x78]
call fcn.14004af10
lea r9, [rsp + 0x44]
mov r8d, 0x1000
lea rdx, [rbp - 0x50]
mov r12, qword [rsp + 0x58]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14005ce1f
mov r13, qword [rbp - 0x60]
mov rdi, qword [rbp - 0x68]
jmp 0x14005cd90
mov rbx, qword [rsp + 0x60]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor ebx, ebx
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [r15 + 0x10], xmm1
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x14005ce8e
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x14005ce89
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005cf10
mov rcx, r8
call fcn.1400a9050
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], sendto
mov byte [r14], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14005ced4
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14005cecf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005cf16
mov rcx, r8
call fcn.1400a9050
mov qword [rsi + 0x10], rbx
mov byte [rsi], 0
mov qword [rsi + 0x18], sendto
mov rax, r15
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.1400a8d90
mov rbx, qword [rsp + 0x1110]
add rsp, 0x10c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140124be4
nop
call fcn.140124be4
int3