Function at 0x140006b40
Capabilities:
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov qword [rbp + 0x30], r9
mov r13, r8
mov qword [rbp + 0x28], rdx
mov rbx, rcx
cmp qword [r8 + 0x18], 0x10
mov rax, r8
jb 0x140006b7f
mov rax, qword [r13]
mov qword [r13 + 0x10], 0
mov byte [rax], 0
mov rcx, qword [rbx + 0xb8]
call fcn.14000f220
test al, al
je 0x140006beb
cmp qword [rbx + 0xa0], 0
je 0x140006bc3
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x140006bc3
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
mov rdx, qword [rbp + 0x30]
call fcn.1400048b0
test al, al
je 0x14000705f
mov rcx, rbx
mov rdx, qword [rbp + 0x30]
call fcn.140006130
test al, al
je 0x14000705f
mov rdi, qword [rbx + 0x70]
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rcx + 0x10]
movabs r12, 0x7fffffffffffffff
mov rax, rdi
xor rax, r12
cmp rax, rdx
jb 0x1400070c7
mov rax, qword [rbx + 0x60]
mov qword [rbp - 0x20], rax
mov rax, qword [rbx + 0x78]
mov qword [rbp - 0x18], rax
mov rsi, qword [rcx]
mov rax, qword [rcx + 0x18]
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
mov qword [rbp + 0x38], rdx
lea r14, [rdx + rdi]
mov eax, reloc.WS2_32.dll_ntohs
mov r15, rbp
cmp r14, 0x10
jb 0x140006ca8
mov rax, r14
or rax, 0xf
js 0x140006c7b
cmp rax, 0x17
mov r12d, reloc.WS2_32.dll_shutdown
cmovae r12, rax
lea rcx, [r12 + 1]
cmp r12, 0xfff
jae 0x140006c85
call fcn.1402b4764
mov r15, rax
jmp 0x140006c9d
movabs rcx, 0x8000000000000000
add rcx, 0x27
call fcn.1402b4764
mov r15, rax
add r15, 0x27
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
mov qword [rbp], r15
mov rax, r12
mov rcx, qword [rbp + 0x28]
lea rdx, [rbx + 0x60]
cmp qword [rbp - 0x10], 0x10
cmovb rsi, rcx
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x20]
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], rax
mov rcx, r15
mov r8, rdi
call fcn.1402ba9f0
add rdi, r15
mov rcx, rdi
mov rdx, rsi
mov r8, qword [rbp + 0x38]
call fcn.1402ba9f0
mov byte [r15 + r14], 0
cmp qword [rbp + 0x18], 0x10
mov r8, rbp
jb 0x140006cf7
mov r8, qword [rbp]
mov rcx, qword [rbx + 0xa8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x800000
lea rdx, [0x1402efd72]
xor r9d, r9d
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rbx + 0xb0], rax
mov rdi, qword [rbp + 0x18]
cmp rdi, 0x10
jb 0x140006d74
mov rcx, qword [rbp]
lea rdx, [rdi + 1]
cmp rdx, 0x1000
jb 0x140006d68
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x1400070d1
add rdi, 0x28
mov rdx, rdi
mov rcx, rax
call fcn.1402b4754
mov rax, qword [rbx + 0xb0]
test rax, rax
je 0x140006e60
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x140006e85
mov ecx, 0x201
call fcn.1402b475c
mov r12, rax
lea r15, [rbp - 4]
mov r14, qword [sym.imp.WININET.dll_InternetReadFile]
mov qword [rbp + 0x38], rbx
jmp 0x140006dd6
add rcx, rbx
mov rdx, r12
mov r8, rax
call fcn.1402ba9f0
mov byte [rbx + rsi], 0
mov rbx, qword [rbp + 0x38]
mov rcx, qword [rbx + 0xb0]
mov rdx, r12
mov r8d, 0x201
mov r9, r15
call r14
mov ecx, dword [rbp - 4]
test rcx, rcx
je 0x140006eaa
test eax, eax
je 0x140006ed1
mov byte [r12 + rcx], 0
mov rcx, r12
call fcn.1402bfd20
mov rcx, qword [r13 + 0x10]
mov rdi, qword [r13 + 0x18]
mov rdx, rdi
sub rdx, rcx
cmp rdx, rax
jae 0x140006e40
mov qword [rsp + 0x20], rax
mov rcx, r13
mov rdx, rax
mov r9, r12
call fcn.1400024d0
jmp 0x140006dd6
mov rsi, rax
add rsi, rcx
mov qword [r13 + 0x10], rsi
mov rbx, r13
cmp rdi, 0x10
jb 0x140006dc0
mov rbx, qword [r13]
jmp 0x140006dc0
mov rcx, qword [rbp + 0x30]
cmp qword [rcx + 0x18], 0x1f
jae 0x140006f8c
lea r9, str.get:_error_opening_GET_request_n
mov edx, 0x1f
call fcn.140004060
jmp 0x140006fb0
mov rcx, qword [rbp + 0x30]
cmp qword [rcx + 0x18], 0x1f
jae 0x140006fc1
lea r9, str.get:_error_sending_GET_request_n
mov edx, 0x1f
call fcn.140004060
jmp 0x140006fe5
mov rcx, qword [rbx + 0xb0]
mov sil, 1
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdi, qword [rbp + 0x28]
mov rax, qword [rdi + 0x18]
cmp rax, 0x10
jb 0x1400070a3
jmp 0x14000706f
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov ecx, 0x20
call fcn.1402b4764
mov qword [rbp - 0x40], rax
movaps xmm0, xmmword [0x1402efc10]
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [0x1402efe09]
movups xmmword [rax + 0xd], xmm0
movups xmm0, xmmword [str.get:_error:_InternetReadFile:]
movups xmmword [rax], xmm0
mov byte [rax + 0x1d], 0
mov rdi, rbp
lea r8, [rbp - 0x40]
mov rdx, rdi
call fcn.1400065d0
mov rsi, qword [rbp + 0x30]
mov rax, qword [rsi + 0x18]
cmp rdi, rsi
je 0x140007014
cmp rax, 0x10
jb 0x140006f78
mov rcx, qword [rsi]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140006f73
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x1400070d6
add rax, 0x28
mov rdx, rax
mov rcx, rbx
mov rbx, qword [rbp + 0x38]
call fcn.1402b4754
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rbp + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140007053
mov rax, qword [rcx]
mov qword [rcx + 0x10], 0x1f
movups xmm0, xmmword [0x1402efdcb]
movups xmmword [rax + 0xf], xmm0
movups xmm0, xmmword [str.get:_error_opening_GET_request_n]
movups xmmword [rax], xmm0
mov byte [rax + 0x1f], 0
mov rcx, qword [rbx + 0xb8]
call fcn.14000f160
jmp 0x14000705f
mov rax, qword [rcx]
mov qword [rcx + 0x10], 0x1f
movups xmm0, xmmword [0x1402efdeb]
movups xmmword [rax + 0xf], xmm0
movups xmm0, xmmword [str.get:_error_sending_GET_request_n]
movups xmmword [rax], xmm0
mov byte [rax + 0x1f], 0
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbx + 0xb8]
call fcn.14000f160
xor esi, esi
mov rdi, qword [rbp + 0x28]
mov rax, qword [rdi + 0x18]
cmp rax, 0x10
jb 0x1400070a3
jmp 0x14000706f
cmp rax, 0x10
jb 0x140007053
mov rcx, qword [rbp]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14000704e
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x1400070db
add rax, 0x28
mov rdx, rax
mov rcx, rbx
mov rbx, qword [rbp + 0x38]
call fcn.1402b4754
mov rcx, qword [rbx + 0xb8]
call fcn.14000f160
xor esi, esi
mov rdi, qword [rbp + 0x28]
mov rax, qword [rdi + 0x18]
cmp rax, 0x10
jb 0x1400070a3
mov rcx, qword [rdi]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14000709e
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x1400070cc
add rax, 0x28
mov rdx, rax
mov rcx, rbx
mov rdi, qword [rbp + 0x28]
call fcn.1402b4754
movaps xmm0, xmmword [0x1402ef840]
movups xmmword [rdi + 0x10], xmm0
mov byte [rdi], 0
mov eax, esi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.140002090
call fcn.1402bfaa4
call fcn.1402bfaa4
call fcn.1402bfaa4
call fcn.1402bfaa4
int3