Function at 0x140003150
Capabilities:
Execute command
Get token membership
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400a2040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor esi, esi
lea rcx, str.color_B
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.Horizon
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rbx, 0xffffffffffffffff
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov dword [rbp - 0x40], esi
mov dword [rbp - 0x38], esi
mov word [rbp - 0x34], 0x500
lea rax, [rbp - 0x30]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r9d, 0x220
lea r8d, [rsi + 0x20]
mov dl, 2
lea rcx, [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000322c
lea r8, [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp - 0x40], esi
jne 0x1400033c2
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov r8d, 0x2a
lea rdx, str.D:WorkHorizon_V1horizon_v1x64main.cpp
lea rcx, [rsp + 0x60]
call fcn.140004be0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov r8d, 0x2f
lea rdx, str._error_:_the_cheat_must_be_run_as_administrator
lea rcx, [rbp - 0x30]
call fcn.140004be0
nop
mov edi, 4
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, di
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [0x140082f08]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003ef0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov rcx, rax
call fcn.1400051f0
mov rcx, rax
lea rdx, [0x140082f04]
call fcn.140003ef0
lea ebx, [rdi + 3]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400051f0
lea rdx, [0x1400040c0]
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]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140003368
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003363
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003363
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007c684
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x1400033b8
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400033b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007c684
mov eax, 1
jmp 0x140003887
mov qword [rbp + 0x30], 0x54
mov qword [rbp + 0x38], 0xc0008
mov dword [rbp + 0x40], 0x190
lea r8, str.Terminal
mov edx, 0x20
lea rcx, [rbp + 0x44]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea r8, [rbp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetCurrentConsoleFontEx]
mov dword [rbp - 0x40], 0x280064
mov dword [rbp - 0x38], esi
mov dword [rbp - 0x34], 0x270063
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, dword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea r8, [rbp - 0x38]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov r8d, 0x104
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rbp + 0x90]
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], sil
jne 0x140003470
call fcn.14007d508
lea rcx, [rbp + 0x90]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rbx
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.140002080
nop
lea r10, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r10, qword [rbp - 0x80]
mov rax, qword [rbp - 0x70]
lea rdx, [r10 + rax*2]
mov rcx, r10
call fcn.1400021d0
cmp rax, rdx
je 0x14000352e
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1400034cf
cmp cx, 0x2f
jne 0x1400034d8
add rax, 2
cmp rax, rdx
jne 0x1400034c0
cmp rax, rdx
je 0x14000352e
nop dword [rax]
lea rcx, [rdx - 2]
movzx r8d, word [rcx]
cmp r8w, 0x5c
je 0x140003500
cmp r8w, 0x2f
je 0x140003500
mov rdx, rcx
cmp rax, rcx
jne 0x1400034e0
jmp 0x14000352e
cmp rax, rdx
je 0x14000352e
nop word [rax + rax]
lea rcx, [rdx - 2]
movzx r8d, word [rcx]
cmp r8w, 0x5c
je 0x140003526
cmp r8w, 0x2f
jne 0x14000352e
mov rdx, rcx
cmp rax, rcx
jne 0x140003510
sub rdx, r10
sar rdx, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rsi
mov qword [rbp + 8], rsi
mov r8, rdx
mov rdx, r10
lea rcx, [rbp - 0x10]
call fcn.1400047e0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140003596
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003591
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003591
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007c684
movdqa xmm0, xmmword [0x140092270]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], si
call fcn.14007d508
lea rcx, [0x140082f80]
mov qword [rbp - 0x30], rcx
mov ebx, 7
mov qword [rbp - 0x28], rbx
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.140002080
nop
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x10]
call fcn.1400025c0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, rbx
jbe 0x140003624
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000361f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000361f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007c684
movdqa xmm0, xmmword [0x140092270]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], si
mov qword [rbp - 0x30], rsi
lea rax, str._0_b_
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.140002ee0
cmp dword [rbp - 0x30], 0
jne 0x1400038af
call fcn.14000bdd0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov r8d, 0x2a
lea rdx, str.D:WorkHorizon_V1horizon_v1x64main.cpp
lea rcx, [rsp + 0x60]
call fcn.140004be0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov r8d, 0x20
lea rdx, str.Press_enter_to_abort_the_process
lea rcx, [rbp - 0x30]
call fcn.140004be0
nop
mov edi, 4
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, di
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [0x140082f08]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003ef0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov rcx, rax
call fcn.1400051f0
mov rcx, rax
lea rdx, [0x140082f04]
call fcn.140003ef0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400051f0
lea rdx, [0x1400040c0]
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]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140003790
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000378b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000378b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007c684
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x1400037e0
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400037db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400037db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007c684
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:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 7
jbe 0x140003831
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000382c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000382c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007c684
movdqa xmm0, xmmword [0x140092270]
movdqu xmmword [rbp + 0x20], xmm0
mov word [rbp + 0x10], si
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x140003885
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003880
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003880
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007c684
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14007c620
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea r8, [rbp + 0x10]
lea rdx, [rbp - 0x30]
lea rcx, str.create_directories
call fcn.140002e80
int3