Function at 0x1400d9dc0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2c8]
sub rsp, 0x3a0
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rcx, qword [rcx + 8]
mov edx, 0x6ce
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, reloc.SHELL32.dll_ILGetSize
lea rcx, [rbp - 0x80]
mov r8d, ebx
xor edx, edx
mov r13, rax
call fcn.14013b230
mov rcx, qword [0x14021d130]
lea rax, str.Log_files__.csv_
mov qword [rbp - 0x68], rax
xor r14d, r14d
lea rax, [rbp + 0x80]
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x80]
lea rax, str.Save_shell_and_processes_log...
mov dword [rbp - 0x80], ebx
mov qword [rbp - 0x28], rax
lea rax, [0x1401a7f00]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x54], 1
mov word [rbp + 0x80], r14w
mov dword [rbp - 0x48], 0x104
mov dword [rbp - 0x20], 0x88080e
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x1400da09b
mov qword [rsp + 0x30], r14
lea r15d, [r14 + 4]
mov dword [rsp + 0x28], r14d
lea r8d, [r14 + 1]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov edx, 0x40000000
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400da082
mov ecx, 0x80000
call fcn.140120104
xorps xmm0, xmm0
mov dword [rsp + 0x48], r15d
mov rdi, rax
mov dword [rsp + 0x40], r14d
xor eax, eax
mov esi, r14d
mov dword [rsp + 0x7c], eax
movups xmmword [rsp + 0x4c], xmm0
movups xmmword [rsp + 0x5c], xmm0
movups xmmword [rsp + 0x6c], xmm0
test esi, esi
je 0x1400d9f1b
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, 2
lea rdx, [0x14019164c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd r8, esi
lea r9, [rsp + 0x48]
mov edx, 0x105f
mov qword [rsp + 0x58], rdi
mov rcx, r13
mov dword [rsp + 0x60], 0x40000
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x1400d9f71
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r14w
jne 0x1400d9f46
add eax, eax
je 0x1400d9f6d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
jmp 0x1400d9ef7
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, r15d
lea rdx, [0x140167d54]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
jle 0x1400da06f
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd r12, eax
mov r15, r14
test eax, eax
jle 0x1400da06f
xor ecx, ecx
test r14d, r14d
je 0x1400d9fe1
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
mov rcx, rbx
lea rdx, [0x14019164c]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
mov word [rdi], cx
lea r9, [rbp + 0x20]
mov rcx, r13
mov dword [rbp + 0x28], r14d
mov r8, r15
mov dword [rbp + 0x40], 0x40000
mov edx, 0x1073
mov qword [rbp + 0x38], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
or rax, 0xffffffffffffffff
xor ecx, ecx
inc rax
cmp word [rdi + rax*2], cx
jne 0x1400da00e
add eax, eax
je 0x1400da036
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
mov rcx, rbx
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
inc r14d
cmp r14d, esi
jl 0x1400d9fba
xor r14d, r14d
lea r9, [rsp + 0x40]
lea rdx, [0x140167d54]
mov qword [rsp + 0x20], r14
mov rcx, rbx
lea r8d, [r14 + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc r15
cmp r15, r12
jl 0x1400d9fb8
mov rcx, rdi
call fcn.14012008c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400da09b
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
lea rcx, str.Create_log_file_failed_
xor edx, edx
call fcn.14011f550
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.140139b10
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret