Function at 0x1400253c0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x100
mov qword [rbp - 0xc0], rbx
mov qword [rbp - 0xb8], rsi
mov qword [rbp - 0xb0], rdi
mov rsi, rcx
mov ecx, 2
call fcn.140055eb0
mov rcx, rax
call fcn.14005d208
mov ecx, eax
call fcn.140054d84
mov rbx, rax
xor edx, edx
mov qword [rbp - 0xa0], rdx
mov qword [rbp - 0x98], rdx
xor r8d, r8d
mov dword [rbp - 0x90], r8d
mov word [rbp - 0x8c], dx
lea rdx, [rbp - 0xa0]
mov rcx, rbx
call sub.KERNEL32.dll_GetConsoleScreenBufferInfo
test eax, eax
setne dil
lea rdx, [0x140075960]
mov qword [rbp - 0xa8], rdx
mov ecx, 2
call fcn.140055eb0
mov rcx, rax
mov rdx, qword [rbp - 0xa8]
call fcn.140056138
test eax, eax
jg 0x14002555c
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov rdx, rsi
lea rbx, [rbp - 0x80]
mov qword [rbp - 0x70], rbx
lea rdi, [fcn.140025690]
mov qword [rbp - 0x68], rdi
lea rcx, [rbp - 0x70]
call fcn.140029d00
cmp qword [rbp - 0x80], 0
je 0x14002566a
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
test rsi, rsi
je 0x1400254d0
mov rax, qword [rsi]
mov rdx, qword [rax]
mov rax, qword [rdx + 0x20]
mov rdx, qword [rdx + 0x28]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x60]
call fcn.140025690
lea rcx, str.user32.dll
call sub.KERNEL32.dll_LoadLibraryW
mov rsi, rax
test rsi, rsi
je 0x14002553d
lea rdx, str.MessageBoxW
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
mov rdi, rax
test rdi, rdi
je 0x14002553d
cmp qword [rbp - 0x80], 0
je 0x140025511
mov r8, qword [rbp - 0x78]
mov r9, qword [rbp - 0x80]
mov word [r9 + r8*2], 0
mov rbx, qword [rbp - 0x80]
cmp qword [rbp - 0x60], 0
je 0x14002552b
mov r10, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov word [rdx + r10*2], 0
mov r9d, 0x10
mov r8, qword [rbp - 0x60]
mov rdx, rbx
xor ecx, ecx
call rdi
mov rcx, rsi
call sub.KERNEL32.dll_FreeLibrary
mov rcx, qword [rbp - 0x60]
call fcn.140054e28
mov rcx, qword [rbp - 0x80]
call fcn.140054e28
jmp 0x14002566a
test dil, dil
je 0x14002564b
xor r8d, r8d
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x38], r8
mov rdx, rsi
lea r9, [rbp - 0x40]
mov qword [rbp - 0x30], r9
lea r10, [fcn.140025690]
mov qword [rbp - 0x28], r10
lea rcx, [rbp - 0x30]
call fcn.140029d00
cmp qword [rbp - 0x40], 0
je 0x14002566a
call sub.KERNEL32.dll_GetConsoleOutputCP
mov esi, eax
xor r8d, r8d
mov qword [rbp - 0xc8], r8
mov qword [rbp - 0xd0], r8
mov qword [rbp - 0xd8], r8
mov qword [rbp - 0xe0], r8
mov r9d, dword [rbp - 0x38]
mov r8, qword [rbp - 0x40]
xor edx, edx
mov ecx, esi
call sub.KERNEL32.dll_WideCharToMultiByte
mov edi, eax
mov dword [rbp - 0x20], esi
movsxd rcx, edi
call fcn.140053970
mov rsi, rax
test rsi, rsi
je 0x140025640
mov qword [rbp - 0xc8], 0
mov qword [rbp - 0xd0], 0
mov qword [rbp - 0xd8], rdi
mov qword [rbp - 0xe0], rsi
mov r9d, dword [rbp - 0x38]
mov r8, qword [rbp - 0x40]
xor edx, edx
mov ecx, dword [rbp - 0x20]
call sub.KERNEL32.dll_WideCharToMultiByte
mov qword [rbp - 0xe0], 0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call sub.KERNEL32.dll_WriteFile
mov rcx, rsi
call fcn.140054e28
mov rcx, qword [rbp - 0x40]
call fcn.140054e28
jmp 0x14002566a
mov rdx, rsi
lea rax, [0x140025740]
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
lea rcx, [rbp - 0x10]
call fcn.140029d00
mov rbx, qword [rbp - 0xc0]
mov rsi, qword [rbp - 0xb8]
mov rdi, qword [rbp - 0xb0]
mov rsp, rbp
pop rbp
ret