Function at 0x140006040
Capabilities:
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov r14, rcx
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], 0xa
mov qword [rbp - 0x68], 0xf
movsd xmm0, qword [str.CreateFile]
movsd qword [rbp - 0x80], xmm0
movzx eax, word [0x14000c030]
mov word [rbp - 0x78], ax
mov byte [rbp - 0x76], r12b
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x40000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r12 + 3]
lea rcx, str.GoldenEntry.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
lea rdx, [rbp - 0x80]
call fcn.1400034b0
mov rbx, rax
lea ecx, [r12 + 8]
call fcn.140009460
mov rsi, rax
mov qword [rax], rbx
mov byte [rbp + 0x20], r12b
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], 1
lea ecx, [r12 + 0x18]
call fcn.140009460
mov rdi, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, method.std::_Ref_count_resource_void____ptr64____ptr64__class__class_std::shared_ptr_void____ptr64____cdecl_WOpProc_unsigned_long_int__unsigned_long_int__int_::_2::_lambda_1__.virtual_0
mov qword [rdi], rax
mov qword [rdi + 0x10], rsi
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rdi
mov byte [rsp + 0x58], r12b
lea r9, str.GoldenEntry.txt
nop dword [rax]
add r9, 2
cmp word [r9], 0
jne 0x140006160
lea r8, str.GoldenEntry.txt
lea rdx, [rsp + 0x60]
call fcn.140008080
nop
lea rdx, str._Created_golen_entry_file:__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002990
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov rcx, rax
call fcn.140008e30
lea rdx, [0x14000c700]
mov rcx, rax
call fcn.140002990
mov rcx, rax
lea rdx, [0x140002b60]
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 [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000620e
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006209
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006209
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400096dc
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r14 + 8]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolIo]
mov rbx, rax
test rax, rax
je 0x1400066c3
lea rdx, str._Created_tpio_structure_associated_with_sh_ell
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002990
mov rcx, rax
lea rdx, [0x140002b60]
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]
mov rax, qword [r14 + 8]
mov qword [rbx + 0x50], rax
mov eax, dword [rbx + 0x118]
inc eax
mov dword [rbx + 0x118], eax
lea rdx, str._Started_async_io_oper_within_tpio
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002990
mov rcx, rax
lea rdx, [0x140002b60]
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]
mov rax, qword [r14 + 0x20]
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x120
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
je 0x140006709
lea rdx, str._Allocated_tpio_mem_in_target_proc:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002990
mov rcx, rax
mov rdx, r15
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___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x140002b60]
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]
mov rcx, qword [r14 + 0x20]
mov r9d, 0x120
mov r8, r15
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.1400037e0
lea rdx, str._Written_specially_crafted_tpio_structure_to_target_proc
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002990
mov rcx, rax
lea rdx, [0x140002b60]
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 + 0x68], xmm0
mov rax, qword [r14 + 0x38]
mov rcx, qword [rax]
mov qword [rbp + 0x28], rcx
lea rax, [r15 + 0xc8]
mov qword [rbp + 0x30], rax
mov rbx, qword [rsi]
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], 0xf
mov ecx, 0x20
call fcn.140009460
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x50], 0x14
mov qword [rbp - 0x48], 0x1f
movups xmm0, xmmword [str.ZwSetInformationFile]
movups xmmword [rax], xmm0
mov edx, dword [0x14000c210]
mov dword [rax + 0x10], edx
mov byte [rax + 0x14], 0
mov dword [rsp + 0x20], 0x3d
mov r9d, 0x10
lea r8, [rbp + 0x28]
lea rdx, [rbp + 0x68]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_ZwSetInformationFile]
mov ecx, eax
lea rdx, [rbp - 0x60]
call fcn.1400036d0
lea r9, str.GoldenEntry.txt
nop dword [rax + rax]
add r9, 2
cmp word [r9], 0
jne 0x1400063d0
lea r8, str.GoldenEntry.txt
lea rdx, [rbp - 0x40]
call fcn.140008080
nop
lea rdx, str._Associated_file__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002990
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rdx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x30]
mov rcx, rax
call fcn.140008e30
lea rdx, str.__with_io_comp_port_of_target_proc_worker_factory
mov rcx, rax
call fcn.140002990
mov rcx, rax
lea rdx, [0x140002b60]
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 - 0x28]
cmp rdx, 0xf
jbe 0x140006477
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006472
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006472
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400096dc
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x50], 0xf
mov ecx, 0x20
call fcn.140009460
mov rdx, rax
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x48], 0x17
mov qword [rbp + 0x50], 0x1f
movups xmm0, xmmword [str.This_is_Golden_Entry___]
movups xmmword [rax], xmm0
mov ecx, dword [0x14000ca08]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x14000ca0c]
mov word [rax + 0x14], cx
movzx eax, byte [0x14000ca0e]
mov byte [rdx + 0x16], al
mov byte [rdx + 0x17], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
movups xmmword [rbp + 0x88], xmm0
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0xf
cmova rdx, qword [rbp + 0x38]
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rbp + 0x48]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140006521
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000667d
lea r9, str.GoldenEntry.txt
nop dword [rax + rax]
add r9, 2
cmp word [r9], 0
jne 0x140006530
lea r8, str.GoldenEntry.txt
lea rdx, [rbp - 0x20]
call fcn.140008080
nop
lea rdx, str._Write_to_file__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002990
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
mov rcx, rax
call fcn.140008e30
lea rdx, str.__to_queue_a_pack_to_io_comp_port_of_target_proc_worker_factory
mov rcx, rax
call fcn.140002990
mov rcx, rax
lea rdx, [0x140002b60]
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 - 8]
cmp rdx, 0xf
jbe 0x1400065d8
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400065d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400065d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400096dc
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 0xf
jbe 0x140006616
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006611
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006611
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400096dc
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x50], 0xf
mov byte [rbp + 0x38], 0
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140006652
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x140006652
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.140009440
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rbp]
call fcn.140003880
nop
mov r8, rax
lea rdx, str.__WriteFile_failed:
lea rcx, [rbp - 0x80]
call fcn.140008470
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140003290
lea rdx, [0x14000f670]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140003880
nop
mov r8, rax
lea rdx, str.__create_golden_entry_io_failed:
lea rcx, [rbp]
call fcn.140008470
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140003290
lea rdx, [0x14000f670]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp]
call fcn.140003880
nop
mov r8, rax
lea rdx, str.__VirtualAllocEx_failed:
lea rcx, [rsp + 0x60]
call fcn.140008470
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140003290
lea rdx, [0x14000f670]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3