Function at 0x1404d5b2a
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
cmp r14b, r11b
push rbp
cmc
movzx ebp, si
push rsi
movsx bp, cl
mov ebp, 0x1d5c4414
push rdi
push r12
adc edi, 0x2e5d2dd8
push r13
btr r12w, 0x33
movsx rdi, r13w
push r14
cmc
xor di, sp
btr ebp, r15d
push r15
sal r12w, 0x1c
mov rbp, rsp
sbb r14b, r13b
sub rsp, 0x60
sal di, cl
ror r12w, cl
movsx r14w, bpl
xor ebx, ebx
mov r14d, r8d
movsxd r12, ecx
add dil, r13b
cmp si, 0x5320
mov rdi, rdx
cmp r8b, 0x97
clc
test r8d, r8d
jmp 0x1404d5b9d
je 0x1404d60b1
test rdx, rdx
jmp 0x1404d5bab
jne 0x1404d5bdf
call fcn.1404afec6
mov dword [rax], ebx
jmp 0x1404d5bbd
call fcn.1404afe81
mov dword [rax], 0x16
jmp 0x1404d5bcd
call fcn.1404b0b68
or eax, 0xffffffff
jmp 0x1404d5bda
jmp 0x1404d60b6
mov rax, r12
add rsi, 0x55ae7d9c
xor r15b, 4
shr sil, 0x80
lea rcx, [0x1400ba940]
xadd r13b, sil
and eax, 0x3f
mov r13, r12
or rsi, r14
sar r13, 6
lea r15, [rax + rax*8]
btc ax, 0xb9
bts esi, edi
lahf
mov rcx, qword [rcx + r13*8]
setp ah
mov ax, dx
movsx esi, byte [rcx + r15*8 + 0x39]
ror ax, 0x2a
clc
xor al, sil
lea eax, [rsi - 1]
cmp al, 1
ja 0x1404d5c4d
mov eax, r14d
clc
not eax
cmc
test al, 1
jmp 0x1404d5c47
je 0x1404d5bb1
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404d5c58
je 0x1404d5c73
xor edx, edx
mov ecx, r12d
movzx r8, bp
not r8b
lea r8d, [rdx + 2]
call fcn.14021bd7b
mov ecx, r12d
mov qword [rbp - 0x20], rbx
jmp 0x1404d5c7f
call fcn.1404dbaa6
test eax, eax
jmp 0x1404d5c8b
je 0x1404d5e88
lea rax, [0x1400ba940]
test r10b, 0x41
jmp 0x1404d5ca1
mov rax, qword [rax + r13*8]
stc
cmp cl, bpl
cmp byte [rax + r15*8 + 0x38], bl
jmp 0x1404d5cb3
jge 0x1404d5e88
call fcn.1404c403e
mov rcx, qword [rax + 0x90]
cmp qword [rcx + 0x138], rbx
jmp 0x1404d5cd1
jne 0x1404d5cf3
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
test r14w, 0x4ddc
cmp byte [rax + r15*8 + 0x39], bl
je 0x1404d5e88
lea rax, [0x1400ba940]
movzx ecx, di
movzx dx, r10b
mov rcx, qword [rax + r13*8]
mov dl, r15b
cdq
movsx dx, r9b
lea rdx, [rbp - 0x10]
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404d5d1d
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404d5d2a
je 0x1404d5e88
test sil, sil
jmp 0x1404d5d38
je 0x1404d5e4b
dec sil
cmp sil, 1
jmp 0x1404d5d4a
ja 0x1404d5fd3
lea r12, [rdi + r14]
movzx r14d, cx
test bl, ah
shr r14, cl
mov qword [rbp - 0x30], rbx
shl r14b, 0x20
shrd r14, rsi, 0
mov r14, rdi
clc
cmp rax, r14
cmp rdi, r12
jmp 0x1404d5d79
jae 0x1404d5fc4
mov esi, dword [rbp - 0x2c]
not ax
mov al, 0x7d
movzx eax, word [r14]
cmova ecx, r11d
movsx cx, r14b
movzx ecx, ax
jmp 0x1404d5d9c
mov word [rbp - 0x10], ax
call fcn.1404e0196
movzx ecx, word [rbp - 0x10]
test r13b, bpl
cmp ax, cx
jmp 0x1404d5db4
jne 0x1404d5e38
add esi, 2
test r11b, r8b
cmp r12, r9
clc
mov dword [rbp - 0x2c], esi
clc
cmp cx, 0xa
jmp 0x1404d5dd1
jne 0x1404d5e1a
mov ecx, 0xd
jmp 0x1404d5de1
call fcn.1404e0196
mov ecx, 0xd
cmp r13b, 0xe
jmp 0x1404d5df4
cmp ax, cx
jmp 0x1404d5dfc
jne 0x1404d5e38
inc esi
jmp 0x1404d5e09
mov dword [rbp - 0x2c], esi
jmp 0x1404d5e11
inc ebx
cmc
test spl, r9b
cmp r12b, bpl
add r14, 2
test ebp, 0x7a1c3ebf
cmc
cmp r14, r12
jmp 0x1404d5e2d
jae 0x1404d5fc4
jmp 0x1404d5d87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404d5e46
jmp 0x1404d5fc4
mov r9d, r14d
cmovl r8w, r13w
movzx cx, r12b
lea rcx, [rbp - 0x30]
not r8
mov r8, rdi
mov edx, r12d
jmp 0x1404d5e6a
call fcn.1404d60ff
movsd xmm0, qword [rax]
movsxd rbx, eax
movsx bx, r14b
mov ebx, dword [rax + 8]
jmp 0x1404d5e83
jmp 0x1404d5fc9
lea rax, [0x1400ba940]
dec cx
mov rcx, qword [rax + r13*8]
cmc
cmp byte [rcx + r15*8 + 0x38], bl
jmp 0x1404d5ea1
jge 0x1404d5f64
mov ecx, esi
test ah, 0xd
cmp dx, cx
test sil, sil
jmp 0x1404d5eb7
je 0x1404d5f32
sub ecx, 1
jmp 0x1404d5ec5
je 0x1404d5f11
cmp ecx, 1
jmp 0x1404d5ed3
jne 0x1404d5fd3
mov r9d, r14d
xchg r8b, cl
jmp 0x1404d5ee8
lea rcx, [rbp - 0x30]
movsx r8w, r12b
movzx r8, r13w
cwd
mov r8, rdi
movzx rdx, r9w
movsx dx, bh
cqo
mov edx, r12d
call fcn.1404d6d37
jmp 0x1404d5e6f
mov r9d, r14d
lea rcx, [rbp - 0x30]
cwd
bswap r8d
mov r8, rdi
mov dx, di
cwd
mov edx, r12d
call fcn.1404d6fb5
jmp 0x1404d5e6f
mov r9d, r14d
cwd
jmp 0x1404d5f3c
lea rcx, [rbp - 0x30]
movzx r8d, sp
movsx r8, si
mov r8, rdi
mov dx, 0x687d
cdq
not dh
mov edx, r12d
jmp 0x1404d5f5a
call fcn.1404d6ae5
jmp 0x1404d5e6f
mov rcx, qword [rcx + r15*8 + 0x28]
sal dx, cl
rol r9w, 0x2e
lea r9, [rbp - 0x2c]
clc
rcl dh, 0xc6
xor eax, eax
btr r8, rdi
not rdx
sar rdx, 0x4f
mov r8d, r14d
or dl, r14b
bt edx, 0xe0
and qword [rsp + 0x20], rax
movsx rdx, r8w
jmp 0x1404d5f9e
mov rdx, rdi
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1404d5fc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
stc
mov ebx, dword [rbp - 0x28]
clc
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp - 0x20], xmm0
shld eax, r12d, 0x15
mov rax, qword [rbp - 0x20]
cmp bpl, 0xb2
shr rax, 0x20
jmp 0x1404d5fe5
test eax, eax
jmp 0x1404d5fec
jne 0x1404d60a2
mov eax, dword [rbp - 0x20]
test eax, eax
jmp 0x1404d5ffc
je 0x1404d6047
cmp eax, 5
jmp 0x1404d600a
jne 0x1404d6035
call fcn.1404afe81
mov dword [rax], 9
jmp 0x1404d6020
call fcn.1404afec6
mov dword [rax], 5
jmp 0x1404d6030
jmp 0x1404d5bd2
mov ecx, dword [rbp - 0x20]
jmp 0x1404d603d
call fcn.1404aff01
jmp 0x1404d5bd2
lea rax, [0x1400ba940]
cmp r11w, 0xbc8
mov rax, qword [rax + r13*8]
clc
cmp dl, r15b
cmp sp, 0x2234
test byte [rax + r15*8 + 0x38], 0x40
jmp 0x1404d606c
je 0x1404d6080
cmp byte [rdi], 0x1a
jmp 0x1404d607a
je 0x1404d60b1
call fcn.1404afe81
mov dword [rax], 0x1c
jmp 0x1404d6090
call fcn.1404afec6
and dword [rax], 0
jmp 0x1404d609d
jmp 0x1404d5bd2
mov eax, dword [rbp - 0x1c]
sub eax, ebx
jmp 0x1404d60ac
jmp 0x1404d60b6
xor eax, eax
mov r15b, r13b
mov rbx, qword [rsp + 0xb8]
add r12b, 0x97
add rsp, 0x60
mov r13w, ax
seto r13b
pop r15
pop r14
not dil
jmp 0x1404d60de
pop r13
pop r12
movsx rsi, ax
not bpl
pop rdi
movsxd rbp, r12d
bswap si
movsx esi, dx
pop rsi
movzx bp, al
pop rbp
jmp 0x1404d60fe
ret