Function at 0x140001290
Capabilities:
Execute command

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 - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor ebx, ebx
lea rdx, str.Opcje:_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400017f0
lea rdx, str.1._Wylacz_komputer_lechowi_pod_208_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400017f0
lea rdx, str.2._Wylacz_komputer_komukolwiek_pod_208_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400017f0
lea rdx, str.3._Wyjscie_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400017f0
lea rdx, str.Wybierz_opcje:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400017f0
lea rdx, [rbp - 0x19]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
mov ecx, dword [rbp - 0x19]
sub ecx, 1
je 0x14000162c
sub ecx, 1
je 0x140001373
cmp ecx, 1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
je 0x140001362
lea rdx, str.Nie_ma_takiej_opcji._n
call fcn.1400017f0
jmp 0x140001639
lea rdx, str.Zamykanie_programu._n
call fcn.1400017f0
jmp 0x140001639
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rbx
mov qword [rbp + 0x27], 0xf
mov byte [rbp + 0xf], bl
lea rdx, str.Podaj_nazwe_komputera__np._komp07_to_komputer_patrycji_bo_ma_numer_7_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400017f0
lea rdx, [rbp + 0xf]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.1400019c0
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov r15, qword [rbp + 0x1f]
sub rax, r15
cmp rax, 0x37
jb 0x140001668
lea r13, [rbp + 0xf]
mov rsi, qword [rbp + 0xf]
mov r14, qword [rbp + 0x27]
cmp r14, 0xf
cmova r13, rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
lea r12, [r15 + 0x37]
mov ebx, 0xf
lea rdi, [rbp - 0x39]
cmp r12, rbx
jbe 0x140001478
mov rbx, r12
or rbx, 0xf
cmp rbx, rcx
jbe 0x14000143b
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140001fc0
test rax, rax
je 0x140001581
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001474
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140001463
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000166e
jmp 0x14000141c
test rcx, rcx
je 0x140001472
call fcn.140001fc0
mov rdi, rax
jmp 0x140001474
xor edi, edi
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], rbx
movups xmm0, xmmword [str.runas__user:sala48piotr__cmd__c_shutdown__s__t_1__m__]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [0x140003520]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [0x140003530]
movups xmmword [rdi + 0x20], xmm0
mov eax, dword [0x140003540]
mov dword [rdi + 0x30], eax
movzx eax, word [0x140003544]
mov word [rdi + 0x34], ax
movzx eax, byte [0x140003546]
mov byte [rdi + 0x36], al
lea rcx, [rdi + 0x37]
mov r8, r15
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r12], 0
mov rcx, qword [rbp - 0x29]
mov rdx, qword [rbp - 0x21]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140001507
lea rax, [rcx + 1]
mov qword [rbp - 0x29], rax
lea rax, [rbp - 0x39]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x39]
mov word [rax + rcx], 0x22
lea rax, [rbp - 0x39]
jmp 0x14000151e
mov qword [rsp + 0x20], 1
mov edx, 1
lea rcx, [rbp - 0x39]
call fcn.140001d00
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x14000158d
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001588
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001588
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001ffc
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 0xf
cmova rcx, qword [rbp - 0x11]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x1400015df
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001ffc
movdqa xmm0, xmmword [0x1400035a0]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
cmp r14, 0xf
jbe 0x140001639
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001622
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001622
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140001ffc
jmp 0x140001639
lea rcx, str.runas__user:sala48piotr__cmd__c_shutdown__s__t_1__m__stacja00_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140001fa0
lea r11, [rsp + 0xa0]
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.1400011b0
nop
call fcn.140001110
int3