Function at 0x140028bd0
Capabilities:
Create thread
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor r12d, r12d
mov dword [rbp - 0x48], r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rsi, rax
test rax, rax
je 0x140028d2d
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r14, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140028d2d
lea r8, [rbp - 0x40]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
test eax, eax
je 0x140028d2d
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x140028d2d
mov edi, dword [rbp - 0x28]
sub edi, dword [rbp - 0x30]
mov r15d, dword [rbp - 0x24]
sub r15d, dword [rbp - 0x2c]
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x140028d2d
mov ebx, dword [rbp - 0x28]
sub ebx, edi
sub ebx, dword [rbp - 0x30]
mov edi, dword [rbp - 0x24]
sub edi, r15d
sub edi, dword [rbp - 0x2c]
lea rdx, [rbp - 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140028d2d
movzx eax, word [rbp - 0x10]
mov word [rbp - 0x48], ax
movzx ecx, word [rbp - 0xe]
mov word [rbp - 0x46], cx
cmp ax, 0x40
jl 0x140028ccf
cmp cx, 0x12
jge 0x140028cf7
jmp 0x140028cd8
mov eax, 0x40
mov word [rbp - 0x48], ax
cmp cx, 0x12
jge 0x140028ce7
mov eax, 0x12
mov word [rbp - 0x46], ax
mov edx, dword [rbp - 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
test eax, eax
je 0x140028d2d
movsx eax, word [rbp - 0x3a]
lea ecx, [rax + rax*8]
lea eax, [rdi + rcx*2]
movsx ecx, word [rbp - 0x3c]
shl ecx, 6
add ecx, ebx
mov dword [rsp + 0x30], 0x216
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, dword [rbp - 0x2c]
mov r8d, dword [rbp - 0x30]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, 0x10
call fcn.14002bd58
mov rbx, rax
mov qword [rbp - 0x40], rax
mov ecx, 8
call fcn.14002bd58
lea rcx, [0x1400280f0]
mov qword [rax], rcx
mov qword [rbp - 0x48], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x14002b3c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x1400290f4
mov rcx, qword [0x14003eae8]
mov qword [0x14003eae8], rbx
test rcx, rcx
je 0x140028dab
cmp dword [rcx + 8], 0
jne 0x140028e25
mov edx, 0x10
call fcn.14002bc30
mov ecx, 0x10
call fcn.14002bd58
mov rbx, rax
mov qword [rbp - 0x40], rax
mov ecx, 8
call fcn.14002bd58
lea rcx, [0x140028b60]
mov qword [rax], rcx
mov r14d, 6
mov dword [rbp - 0x48], r14d
mov qword [rbp - 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x14002b3c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x1400290e7
mov rcx, qword [0x14003eae0]
mov qword [0x14003eae0], rbx
test rcx, rcx
je 0x140028e36
cmp dword [rcx + 8], 0
je 0x140028e2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov edx, 0x10
call fcn.14002bc30
lea rcx, [0x14003851c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x140024580]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
nop dword [rax]
mov qword [rbp - 0x20], 5
mov qword [rbp - 0x18], 0xf
mov eax, dword [str.Key:]
mov dword [rbp - 0x30], eax
movzx eax, byte [0x140038b4c]
mov byte [rbp - 0x2c], al
mov byte [rbp - 0x2b], 0
lea rcx, [rbp - 0x30]
call fcn.140027e70
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], 0
lea rdx, [rbp + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140029c40
lea rcx, [rbp + 0x10]
mov rdi, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x28]
cmp rsi, 0xf
cmova rcx, rdi
cmp qword [rbp + 0x20], 8
jne 0x140028efc
mov r8d, 8
lea rdx, str.REDEAGLE
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140029022
lea rdx, [0x140024580]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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
lea rax, [rsp + 0x78]
mov qword [rbp - 0x30], rax
lea rdx, [0x140038460]
lea rcx, [rsp + 0x78]
call fcn.140022330
mov rbx, rax
lea rdx, str.____Wrong_key.
lea rcx, [rbp - 0x68]
call fcn.140022330
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14002a5c0
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp - 0x30], xmm0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.14002a3f0
or r14d, 1
mov dword [rbp - 0x48], r14d
lea r9, [0x1400222d0]
mov edx, 0x28
lea r8d, [rdx - 0x27]
lea rcx, [rsp + 0x50]
call fcn.14002c2a4
lea rdx, [rbp - 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140029ad0
mov rcx, rax
lea rdx, [0x140024580]
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]
and r14d, 0xfffffffe
mov dword [rbp - 0x48], r14d
lea rcx, [rbp - 0x10]
call fcn.140029110
mov edx, 0x3e8
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
cmp rsi, 0xf
jbe 0x140028e36
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14002901a
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400290e0
mov rcx, rdi
jmp 0x140028e31
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], 9
mov qword [rbp + 8], 0xf
movsd xmm0, qword [str.Valid_Key]
movsd qword [rbp - 0x10], xmm0
movzx eax, byte [0x140038b68]
mov byte [rbp - 8], al
mov byte [rbp - 7], 0
lea rcx, [rbp - 0x10]
call fcn.140027bd0
mov edx, 0x64
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400284d0
nop
cmp rsi, 0xf
jbe 0x1400290b1
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400290a9
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400290e0
mov rcx, rdi
call fcn.14002bc30
xor eax, eax
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14002bc10
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rdi], r12d
mov ecx, r14d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rdi], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3