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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x78], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.TronAddressHandler
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
test rax, rax
je 0x140004233
mov r8d, 0x1e61
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea rdx, str.localhost
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r13, rax
test rax, rax
jne 0x140004247
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [0x140019c30]
mov rcx, rbx
call fcn.140006170
jmp 0x14000445a
mov rcx, qword [rdi + 0x10]
movabs rsi, 0x7fffffffffffffff
mov rax, rsi
sub rax, rcx
cmp rax, 0x16
jb 0x140004638
cmp qword [rdi + 0x18], 0xf
jbe 0x14000426f
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov eax, 0x16
mov qword [rsp + 0x20], rax
lea r9, str._v1_getadress_address
lea rcx, [rsp + 0x68]
call fcn.1400086f0
nop
mov r8d, 3
lea rdx, [0x14001388c]
lea rcx, [rsp + 0x68]
call fcn.140006530
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], r12
mov byte [rax], 0
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140006070
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140004357
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004352
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004352
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400110e4
movdqa xmm0, xmmword [0x140013f70]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x1400043b1
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400043a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400043a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400110e4
movdqa xmm0, xmmword [0x140013f70]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r8, qword [rbp - 0x50]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea rdx, [0x1400138a8]
mov rcx, r13
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov r12, rax
test rax, rax
jne 0x140004487
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [0x140019c30]
mov rcx, rbx
call fcn.140006170
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14000445a
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004455
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004625
call fcn.1400110e4
mov rax, rbx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140010d20
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
mov r14, qword [0x140019c40]
lea rdi, [0x140019c30]
cmp qword [0x140019c48], 0xf
cmova rdi, qword [0x140019c30]
cmp r14, rsi
ja 0x14000462c
cmp r14, 0xf
ja 0x1400044db
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], 0xf
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x70], xmm0
jmp 0x140004570
mov rax, r14
or rax, 0xf
cmp rax, rsi
jbe 0x140004513
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140010e60
mov rcx, rax
test rax, rax
je 0x140004548
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140004554
mov rsi, rax
cmp rax, 0x16
mov eax, 0x16
cmovb rsi, rax
lea rcx, [rsi + 1]
test rcx, rcx
jne 0x140004530
xor eax, eax
jmp 0x140004554
cmp rcx, 0x1000
jb 0x14000454f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140004632
jmp 0x1400044f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010e60
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], rsi
lea r8, [r14 + 1]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
nop
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1400045bd
lea r9, [rbp - 0x78]
mov r8d, 0x200
lea rdx, [rbp - 0x30]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400045bd
mov eax, dword [rbp - 0x78]
test eax, eax
je 0x1400045bd
mov r8d, eax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.140005f10
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x60]
movups xmmword [rbx + 0x10], xmm1
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14000445a
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004455
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004455
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001270
int3
call fcn.1400011d0
nop
call fcn.140001270
int3