Function at 0x140046400
Capabilities:
Create http request
Encode data using xor
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov rbx, rdx
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x48], rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140046448
mov rcx, qword [rdx]
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
mov dword [rsp + 0x30], 0xb5f3e9f9
mov dword [rsp + 0x34], 0xfaf2f8ff
mov dword [rsp + 0x38], 0xc2cbd5d3
mov word [rsp + 0x3c], 0xc8
mov byte [rsp + 0x3e], 1
xor r12d, r12d
mov ecx, r12d
nop dword [rax + rax]
lea eax, [rcx - 0x68]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0xd
jb 0x140046480
mov byte [rsp + 0x3e], r12b
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], r12b
test rax, rax
je 0x14004685d
cmp qword [rbx + 0x18], 0x10
jb 0x1400464d9
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
je 0x14004685d
nop dword [rax]
nop dword [rax + rax]
lea r9, [rbp - 0x48]
mov r8d, 0x7d0
lea rdx, [rbp - 0x20]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rbp - 0x48]
lea rdi, [rbp - 0x20]
add rdi, rax
lea rax, [rbp - 0x20]
sub rdi, rax
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140046578
lea rax, [rdi + rcx]
mov qword [rbp - 0x30], rax
lea rbx, [rbp - 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x40]
add rbx, rcx
mov r8, rdi
lea rdx, [rbp - 0x20]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x14004658d
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x20]
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.140051750
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp - 0x20]
call main
cmp dword [rbp - 0x48], 0
jne 0x140046510
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov r8d, 2
lea rdx, [0x140056c58]
lea rcx, [rsp + 0x60]
call fcn.1400506b0
nop
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov r8d, 2
lea rdx, [0x14005b5fc]
lea rcx, [rbp - 0x80]
call fcn.1400506b0
nop
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov r13, qword [rbp - 0x30]
lea rdi, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rdi, qword [rbp - 0x40]
cmp r13, 0x10
jae 0x14004664b
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x40], xmm0
mov ebx, 0xf
jmp 0x1400466c5
mov rbx, r13
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1400466a2
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140046b39
mov rcx, rax
call fcn.140052d0c
mov rcx, rax
test rax, rax
je 0x14004669b
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400466b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400466ae
call fcn.140052d0c
jmp 0x1400466b1
mov rax, r12
mov qword [rsp + 0x40], rax
lea r8, [r13 + 1]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rdi, r12
mov r12, qword [rbp - 0x70]
mov r14, qword [rbp - 0x80]
mov r15, qword [rsp + 0x70]
mov rsi, qword [rbp - 0x68]
nop dword [rax]
lea r9, [rbp - 0x80]
cmp rsi, 0x10
cmovae r9, r14
lea rcx, [rsp + 0x40]
cmp rbx, 0x10
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov r8, rdi
mov rdx, r13
call fcn.140050ea0
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004675e
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae r9, qword [rsp + 0x60]
mov qword [rsp + 0x20], r15
mov r8, r12
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140050510
mov r15, qword [rsp + 0x70]
add rdi, r15
mov rbx, qword [rsp + 0x58]
mov r13, qword [rsp + 0x50]
jmp 0x1400466f0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x58], xmm0
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], bl
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
mov rsi, qword [rbp - 0x60]
jb 0x1400467c8
lea rdx, [rax + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400467bf
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400467bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140052b18
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140046808
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046803
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046803
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052b18
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rsi + 0x10], xmm1
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140046b06
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046b01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046b01
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov r8d, 2
lea rdx, [0x140056c58]
lea rcx, [rsp + 0x60]
call fcn.1400506b0
nop
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov r8d, 2
lea rdx, [0x14005b5fc]
lea rcx, [rbp - 0x80]
call fcn.1400506b0
nop
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov r15, qword [rbp - 0x30]
lea rdi, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rdi, qword [rbp - 0x40]
cmp r15, 0x10
jae 0x1400468f7
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x40], xmm0
mov ebx, 0xf
jmp 0x140046971
mov rbx, r15
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14004694e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140046b33
mov rcx, rax
call fcn.140052d0c
mov rcx, rax
test rax, rax
je 0x140046947
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14004695d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14004695a
call fcn.140052d0c
jmp 0x14004695d
mov rax, r12
mov qword [rsp + 0x40], rax
lea r8, [r15 + 1]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rdi, r12
mov r13, qword [rbp - 0x70]
mov r14, qword [rbp - 0x80]
mov r12, qword [rsp + 0x70]
mov rsi, qword [rbp - 0x68]
nop dword [rax]
lea r9, [rbp - 0x80]
cmp rsi, 0x10
cmovae r9, r14
lea rcx, [rsp + 0x40]
cmp rbx, 0x10
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov r8, rdi
mov rdx, r15
call fcn.140050ea0
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140046a0e
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae r9, qword [rsp + 0x60]
mov qword [rsp + 0x20], r12
mov r8, r13
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140050510
mov r12, qword [rsp + 0x70]
add rdi, r12
mov rbx, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
jmp 0x1400469a0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x58], xmm0
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x30], xmm0
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], bl
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
mov rsi, qword [rbp - 0x60]
jb 0x140046a78
lea rdx, [rax + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140046a6f
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046a6f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140052b18
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140046ab8
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046ab3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046ab3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052b18
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x10], xmm1
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140046b06
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046b01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046b01
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052b18
mov rax, rsi
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.140052570
mov rbx, qword [rsp + 0x910]
add rsp, 0x8c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14003c970
nop
call fcn.14003c970
int3