Function at 0x140011640
Capabilities:
Execute command
Get session user name

Disassembly:
jmp 0x14001c0a0
push rbp
push rdi
sub rsp, 0x808
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x166
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002d040]
xor rax, rbp
mov qword [rbp + 0x7c8], rax
lea rcx, [0x1400340f6]
call fcn.140011906
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 8], rax
mov dword [rbp + 0x254], 0x101
lea rdx, [rbp + 0x254]
lea rcx, [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, str.bCzeMPzIWoO3Q6mfaL2eZVM876Q7H6Rr
lea rcx, [rbp + 0x278]
call fcn.140011406
nop
mov byte [rbp + 0x2b4], 0
mov edx, 0x110
lea rcx, [rbp + 0x2e0]
call fcn.14001164f
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 1
lea rdx, str.key.txt
lea rcx, [rbp + 0x2e0]
call fcn.140011861
nop
mov rax, qword [rbp + 0x2e0]
movsxd rax, dword [rax + 4]
lea rax, [rbp + rax + 0x2e0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
movzx eax, al
test eax, eax
je 0x14001c281
lea rdx, str.File_Found_n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011118
lea rcx, [rbp + 0x2e0]
call fcn.14001104b
movzx eax, al
test eax, eax
je 0x14001c267
lea rcx, [rbp + 0x408]
call fcn.1400118f2
nop
lea rdx, [rbp + 0x408]
lea rcx, [rbp + 0x2e0]
call fcn.14001152d
mov qword [rbp + 0x7b8], rax
mov rax, qword [rbp + 0x7b8]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rbp + 0x7b8]
add rcx, rax
mov rax, rcx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
movzx eax, al
test eax, eax
je 0x14001c234
lea rdx, [rbp + 0x278]
lea rcx, [rbp + 0x408]
call fcn.140011271
movzx eax, al
test eax, eax
je 0x14001c232
lea rdx, str.Key_found_in_file._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011118
mov byte [rbp + 0x2b4], 1
jmp 0x14001c1b9
movzx eax, byte [rbp + 0x2b4]
test eax, eax
jne 0x14001c259
lea rdx, str.Key_not_found_in_file._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011118
mov byte [rbp + 0x2b4], 0
lea rcx, [rbp + 0x408]
call fcn.1400111c2
jmp 0x14001c281
lea rdx, str.Unable_to_open_file._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011118
mov byte [rbp + 0x2b4], 0
movzx eax, byte [rbp + 0x2b4]
test eax, eax
jne 0x14001c393
mov edx, 0x108
lea rcx, [rbp + 0x450]
call fcn.140011393
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
lea rdx, str.key.txt
lea rcx, [rbp + 0x450]
call fcn.14001137a
nop
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x1400282a4]
call qword [sym.imp.ucrtbased.dll_system]
lea rdx, [rbp + 0x30]
lea rcx, [0x1400282a8]
call fcn.14001105f
lea rdx, str.Key:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011118
lea rdx, [rbp + 0x278]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140011037
lea rdx, str.bCzeMPzIWoO3Q6mfaL2eZVM876Q7H6Rr
lea rcx, [rbp + 0x278]
call fcn.14001139d
movzx eax, al
test eax, eax
je 0x14001c360
lea rdx, str.Valid_Key
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011118
lea rdx, str.bCzeMPzIWoO3Q6mfaL2eZVM876Q7H6Rr
lea rcx, [rbp + 0x450]
call fcn.140011118
mov byte [rbp + 0x2b4], 1
jmp 0x14001c37a
mov byte [rbp + 0x2b4], 0
lea rdx, str.Invalid_Key
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011118
lea rcx, [rbp + 0x450]
call fcn.1400114ba
nop
lea rcx, [rbp + 0x450]
call fcn.140011258
movzx eax, byte [rbp + 0x2b4]
test eax, eax
je 0x14001c3d8
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x1400282a4]
call qword [sym.imp.ucrtbased.dll_system]
mov dx, 1
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.Welcome_to_marcels_dungeon
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011118
nop
lea rcx, [rbp + 0x2e0]
call fcn.140011181
nop
lea rcx, [rbp + 0x278]
call fcn.1400111c2
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x140027230]
call fcn.140011780
mov eax, edi
mov rcx, qword [rbp + 0x7c8]
xor rcx, rbp
call fcn.14001146a
lea rsp, [rbp + 0x7d8]
pop rdi
pop rbp
ret