Function at 0x1400081b0
Capabilities:
Download url
Execute command
Receive data

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 - 0x30]
sub rsp, 0x130
mov rax, qword [0x14004a028]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
call fcn.1400208f0
lea rcx, str.wind64.exe
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0xa
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140003700
nop
lea rdx, [0x14004a068]
lea rcx, [rbp - 0x80]
call fcn.14000aa70
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140003970
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14000aa70
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140008285
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000827f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000827f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021ae8
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1400082ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400082c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400082c5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021ae8
movdqa xmm0, xmmword [0x140043540]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r14w
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x18]
call fcn.14000aa70
mov edi, 0xf
lea rcx, [rbp + 8]
call fcn.140004f60
test al, al
jne 0x140008420
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rax, str.___Download_Wind64_from__n
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x1c
lea r15, str.https:__github.com_katlogic_WindowsD_releases_download_v2.2_wind64.exe
mov qword [rsp + 0x48], r15
movabs rax, 0xb000000000000000
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140003460
mov edi, 0x1f
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov rcx, rbx
call fcn.140010110
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1400083de
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400083d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400083d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021ae8
lea r8, [rbp - 0x18]
cmp qword [rbp], 8
cmovae r8, qword [rbp - 0x18]
mov qword [rsp + 0x20], r14
mov r9d, 0x10
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
je 0x140008420
lea rdx, str.___Failed_to_download_Wind64._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000cf70
xor bl, bl
jmp 0x140008701
test rsi, rsi
je 0x1400086ff
mov qword [rbp - 0x60], r14
movdqa xmm0, xmmword [0x140043540]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], r14w
or edi, 0x20
mov dword [rsp + 0x40], edi
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x60]
call fcn.140004d70
test eax, eax
jne 0x1400087c4
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x38], rax
call fcn.1400208f0
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.140012800
or edi, 0x1c0
mov dword [rsp + 0x40], edi
lea rax, [0x140025260]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 5
lea rax, [rbp - 0x80]
mov qword [rbp - 0x30], rax
lea rax, [0x140012b40]
mov qword [rbp - 0x28], rax
movabs rax, 0xd000000000000000
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x20], rsi
movabs rax, 0xb000000000000010
mov qword [rbp - 0x38], rax
mov qword [rsp + 0x30], 2
lea rax, [rbp - 0x40]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140003260
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edi, eax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14000857e
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008579
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008579
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021ae8
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x1400085cf
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400085ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400085ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021ae8
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140008622
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000861d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000861d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021ae8
cmp edi, 1
je 0x1400086f4
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rax, str.___Failed_to_execute_Wind64.__ExitCode:_0x:016X__n
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x34
mov dword [rsp + 0x38], edi
movabs rax, 0x1000000000000000
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x50], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140003260
nop
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
mov rcx, rbx
call fcn.14000ff50
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x1400086f0
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400086eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400086eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021ae8
xor bl, bl
jmp 0x140008701
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov bl, 1
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x140008744
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000873f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000873f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021ae8
mov qword [rbp - 8], r14
mov qword [rbp], 7
mov word [rbp - 0x18], r14w
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140008798
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008793
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008793
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021ae8
movzx eax, bl
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140021690
lea r11, [rsp + 0x130]
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
lea r8, [rbp + 8]
mov edx, eax
lea rcx, str.absolute
call fcn.140004470
int3