Function at 0x1400014d0
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address

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 - 0x2d0]
sub rsp, 0x3d0
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
xor esi, esi
mov dword [rsp + 0x30], esi
mov rax, qword gs:[0x60]
mov r12, qword [rax + 0x10]
mov r14d, dword [r12 + 0x3c]
add r14, r12
movzx r15d, word [r14 + 6]
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x1c0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x1c0]
call fcn.1400032b0
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rdi, [0x140000000]
lea rax, [rdi + 0x6b68]
mov qword [rbp - 0x60], rax
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 0x20
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x50], rax
mov byte [rbp + 0x2c], sil
mov byte [rbp + 0x21], sil
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x30], rsi
mov rax, qword [0x14000aaf8]
mov qword [rbp + 0x24], rax
mov qword [rbp + 0x18], rsi
mov r13d, 1
mov r8d, r13d
lea rcx, [rbp - 0x50]
call fcn.1400037b0
test rax, rax
jne 0x140001629
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
xor bl, bl
test r15d, r15d
je 0x140001712
mov r11d, esi
mov rax, qword [str..text]
nop
movzx edi, bl
lea rcx, [rdi + rdi*4]
lea rsi, [rcx*8]
lea r10, [r14 + 0x108]
add r10, rsi
mov rdx, rax
sub r10, rax
nop
movzx r9d, byte [rdx]
movzx r8d, byte [rdx + r10]
sub r9d, r8d
jne 0x140001676
inc rdx
test r8d, r8d
jne 0x140001660
test r9d, r9d
jne 0x1400016fa
mov r8d, dword [rsi + r14 + 0x114]
add r8, r12
imul r11d, r11d
mov rcx, rdi
shl r11d, cl
movsxd rdx, r11d
lea rdi, [0x140000000]
mov edx, dword [rdi + rdx*4 + 0x6600]
xor edx, 0xdeadbeef
mov r9d, dword [rsi + r14 + 0x118]
test r9d, r9d
je 0x1400016e4
nop dword [rax]
nop dword [rax + rax]
mov ecx, edx
shr rcx, 0x18
movsx eax, byte [r8]
xor rcx, rax
movzx eax, cl
shl edx, 8
xor edx, dword [rdi + rax*4 + 0x6600]
lea r8, [r8 + 1]
sub r9d, 1
jne 0x1400016c0
lea rcx, [rbp + 0x1d0]
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___unsigned_long_int____ptr64]
mov rax, qword [str..text]
jmp 0x140001701
lea rdi, [0x140000000]
inc bl
movzx r11d, bl
cmp r11d, r15d
jb 0x140001640
xor esi, esi
cmp qword [rbp + 0x30], 0
jne 0x140001a3f
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll_memset
lea rax, [rdi + 0x6ad0]
mov qword [rbp + 0xb0], rax
lea rcx, [rbp + 0x158]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 0x21
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xb8]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xac], edx
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rbx, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0xb8], rbx
mov byte [rbp + 0x134], 0
mov byte [rbp + 0x129], 0
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x138], rsi
mov rax, qword [0x14000aaf8]
mov qword [rbp + 0x12c], rax
mov qword [rbp + 0x120], rsi
mov r8d, 2
lea rcx, [rbp + 0xb8]
call fcn.1400037b0
test rax, rax
jne 0x14000182f
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xb0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
cmp qword [rbp + 0x138], 0
jne 0x14000186e
lea rdx, str.Failed_to_create_file_zxc.data
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003a90
mov rcx, rax
lea rdx, [0x140003c70]
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 rcx, [rbp + 0xb0]
call fcn.140001f30
jmp 0x140001d4d
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x140006b90]
movdqu xmmword [rbp - 0x70], xmm1
mov byte [rbp - 0x80], 0
mov dword [rsp + 0x30], 0x31
movups xmmword [rsp + 0x38], xmm0
mov rcx, qword [rbp + 0x248]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400018cf
mov rax, qword [rbp + 0x218]
mov r8, qword [rax]
test r8, r8
je 0x1400018cf
mov rax, qword [rbp + 0x1f8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x240]
cmovb r8, qword [rbp + 0x240]
sub r8, rdx
jmp 0x140001909
test cl, 4
jne 0x1400018ff
mov rax, qword [rbp + 0x210]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400018ff
mov rax, qword [rbp + 0x1f0]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x228]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140001909
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140001918
lea rcx, [rbp - 0x80]
call fcn.140003930
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.140001290
nop
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140001934
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp + 0xb0]
call fcn.1400040e0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140001985
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001980
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001980
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400043ac
movdqa xmm0, xmmword [0x140006b90]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x1400019d6
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400043ac
lea rcx, [rbp + 0xb8]
call fcn.1400036f0
test rax, rax
jne 0x140001a0a
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xb0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rdx, str.File_zxc.data_created.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003a90
mov rcx, rax
lea rdx, [0x140003c70]
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 rcx, [rbp + 0xb0]
call fcn.140001f30
jmp 0x140001d40
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
xor edx, edx
mov r8d, 2
lea rcx, [rbp - 0x60]
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__::seekg_long_long___int64___int____ptr64]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rdx, qword [rax + 8]
add rdx, qword [rax]
mov rcx, qword [rbp - 0x70]
cmp rdx, rcx
ja 0x140001a9f
mov qword [rbp - 0x70], rdx
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rax, qword [rbp - 0x80]
mov byte [rax + rdx], 0
jmp 0x140001aea
mov rdi, rdx
sub rdi, rcx
mov r8, qword [rbp - 0x68]
mov rax, r8
sub rax, rcx
cmp rdi, rax
ja 0x140001adb
mov qword [rbp - 0x70], rdx
lea rbx, [rbp - 0x80]
cmp r8, 0xf
cmova rbx, qword [rbp - 0x80]
add rbx, rcx
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov byte [rbx + rdi], 0
jmp 0x140001aea
mov r9, rdi
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.140003f30
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x60]
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__::seekg_long_long___int64___int____ptr64]
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
lea rcx, [rbp - 0x60]
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__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x50]
call fcn.1400036f0
test rax, rax
jne 0x140001b41
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x140006b90]
movdqu xmmword [rsp + 0x68], xmm1
mov byte [rsp + 0x58], 0
mov dword [rsp + 0x30], 0x24
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
mov rcx, qword [rbp + 0x248]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140001bac
mov rax, qword [rbp + 0x218]
mov r8, qword [rax]
test r8, r8
je 0x140001bac
mov rax, qword [rbp + 0x1f8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x240]
cmovb r8, qword [rbp + 0x240]
sub r8, rdx
jmp 0x140001be6
test cl, 4
jne 0x140001bdc
mov rax, qword [rbp + 0x210]
mov rcx, qword [rax]
test rcx, rcx
je 0x140001bdc
mov rax, qword [rbp + 0x1f0]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x228]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140001be6
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140001bf6
lea rcx, [rsp + 0x58]
call fcn.140003930
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.140001290
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140001c12
mov rdx, qword [rax]
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rcx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
cmp r8, qword [rax + 0x10]
jne 0x140001c37
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001c37
mov bl, 1
jmp 0x140001c39
xor bl, bl
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140001c79
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c74
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400043ac
movdqa xmm0, xmmword [0x140006b90]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140001ccc
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cc7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400043ac
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test bl, bl
lea rdx, str.awesome_
jne 0x140001ce5
lea rdx, str.Content_mismatch.
call fcn.140003a90
lea rdx, [0x140003c70]
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 - 0x68]
cmp rdx, 0xf
jbe 0x140001d39
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400043ac
lea rbx, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
test eax, eax
jne 0x140001d40
mov r13d, esi
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
mov qword [rbp - 0x50], rbx
cmp qword [rbp + 0x30], 0
je 0x140001da5
lea rcx, [rbp + 0x20]
mov rax, qword [rbp - 0x38]
cmp qword [rax], rcx
jne 0x140001da5
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x38]
mov qword [rax], rcx
mov rax, qword [rbp - 0x18]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp]
mov dword [rax], edx
cmp byte [rbp + 0x2c], 0
je 0x140001db4
lea rcx, [rbp - 0x50]
call fcn.1400036f0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, qword [rbp + 0x1c0]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rdx + 0x1c0], rax
mov rcx, qword [rbp + 0x1c0]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rbp + rdx + 0x1bc], r8d
lea rcx, [rbp + 0x1d8]
call fcn.1400031f0
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x258]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, r13d
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140004350
lea r11, [rsp + 0x3d0]
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