Function at 0x180006220
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x1800801d8]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rsi, r8
mov r14, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x78], r8
mov r15, qword [rbp + 0x448]
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov qword [rcx], r13
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r13b
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], r13b
mov r8d, 0x98
lea rdx, str.KjiYjp9EOMTN6VctSpwuAhunV253ozdrZLqIjG85ENeKe5UcYvxWZBZkvChjoW7nnOBV15MkW9JnDocp9_qbBNmtd3OXrhe9XliizWdE3snTcV5tM4ClxwkfcmlutxVs493Xxq0KhDVN2BCeVg
lea rcx, [rsp + 0x48]
call fcn.18000ee20
nop
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x58]
call fcn.180003750
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180006305
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006300
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180006647
call fcn.180028c40
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
lea rcx, [rbp - 0x58]
mov r9, qword [rbp - 0x58]
mov r10, qword [rbp - 0x40]
cmp r10, 0x10
cmovae rcx, r9
mov rdi, qword [rbp - 0x48]
add rdi, rcx
lea rbx, [rbp - 0x58]
cmp r10, 0x10
cmovae rbx, r9
mov qword [rbp - 0x78], r13
mov rcx, r13
mov qword [rbp - 0x68], rcx
mov r8d, 7
mov qword [rbp - 0x60], r8
mov word [rbp - 0x78], r13w
mov rdx, rdi
sub rdx, rbx
cmp rdx, 8
jb 0x180006381
lea rcx, [rbp - 0x78]
call fcn.180011100
mov rcx, r13
mov qword [rbp - 0x68], rcx
mov r10, qword [rbp - 0x40]
mov r9, qword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x70], rax
cmp rbx, rdi
je 0x1800063e5
nop
movsx r9d, byte [rbx]
cmp rcx, r8
jae 0x1800063bb
lea rax, [rcx + 1]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x78]
cmp r8, 8
cmovae rax, qword [rbp - 0x78]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r13w
jmp 0x1800063cb
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x78]
call fcn.180011270
inc rbx
cmp rbx, rdi
je 0x1800063dd
mov r8, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
jmp 0x180006390
mov r10, qword [rbp - 0x40]
mov r9, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
cmp r10, 0x10
cmovae rcx, r9
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x180006414
mov rdx, qword [rsi]
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, rdi
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r12, rax
lea r9, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae r9, qword [rbp - 0x78]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x4043700
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r8, r15
lea rdx, [0x18006ecc8]
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rbx, rax
mov dword [rsp + 0x20], r13d
lea r9, [0x18006e88b]
mov r8d, 8
lea rdx, [0x18006eca0]
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpSendRequestW]
lea r9, [rbp - 0x80]
mov r8d, 0x3ff
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180006511
mov eax, dword [rbp - 0x80]
test eax, eax
je 0x180006511
cmp rax, 0x400
jae 0x180006653
mov byte [rbp + rax - 0x30], 0
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800064e0
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.18000ef80
lea r9, [rbp - 0x80]
mov r8d, 0x3ff
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1800064b8
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x18000656d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006568
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000664d
call fcn.180028c40
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r13w
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1800065b9
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800065b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000663b
call fcn.180028c40
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1800065ff
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1800065fa
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180006641
mov rcx, r8
call fcn.180028c40
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rax, r14
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.180028c20
mov rbx, qword [rsp + 0x528]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18003a1f8
nop
call fcn.18003a1f8
nop
call fcn.18003a1f8
int3
call fcn.18003a1f8
nop
call fcn.180029154
int3