Function at 0x1404da406
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
and bpl, r9b
push rsi
push rdi
ror bp, cl
sub di, 0x539f
ror dil, 8
push r12
clc
shl dil, 0x6e
sub bp, r8w
push r13
rcl r12w, cl
sar dil, 0xc7
push r14
stc
push r15
dec rbp
mov rbp, rsp
sub rsp, 0x60
btr rdi, rbx
adc r14b, dil
test r10w, 0x5a94
sub ebx, ebx
ror r12b, 0xe2
mov r14d, r8d
cmp sil, r12b
shl r12d, cl
movsxd r12, ecx
mov rdi, rdx
test r12b, spl
test r8d, r8d
jmp 0x1404da46e
je 0x1404da957
test rdx, rdx
jne 0x1404da4a6
call fcn.1404b47c1
mov dword [rax], ebx
call fcn.1404b4780
mov dword [rax], 0x16
jmp 0x1404da494
call fcn.1404b545c
or eax, 0xffffffff
jmp 0x1404da4a1
jmp 0x1404da95a
mov rax, r12
sbb sil, r8b
or sil, 0x52
rol si, 0xd
lea rcx, [0x1400ba940]
rcl r13w, 0xdd
rcr sil, 0xc9
and eax, 0x3f
mov r13, r12
mov esi, 0x240920cf
movzx r15d, di
shr esi, cl
sar r13, 6
cmp al, r15b
xor rsi, rbx
cmovae r15, rcx
lea r15, [rax + rax*8]
mov rcx, qword [rcx + r13*8]
movsx esi, byte [rcx + r15*8 + 0x39]
cmovae ax, bx
bts eax, r12d
lea eax, [rsi - 1]
cmp cl, sil
jmp 0x1404da504
cmp al, 1
jmp 0x1404da50b
ja 0x1404da523
mov eax, r14d
not eax
test al, 1
jmp 0x1404da51d
je 0x1404da47d
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404da52e
je 0x1404da54f
xor edx, edx
movsxd rcx, r11d
mov ecx, r12d
movsx r8w, sil
lea r8d, [rdx + 2]
jmp 0x1404da54a
call fcn.1402140b9
mov ecx, r12d
jmp 0x1404da557
mov qword [rbp - 0x20], rbx
jmp 0x1404da560
call fcn.1404e046f
test eax, eax
jmp 0x1404da56c
je 0x1404da758
lea rax, [0x1400ba940]
test rdx, rcx
mov rax, qword [rax + r13*8]
cmp byte [rax + r15*8 + 0x38], bl
jmp 0x1404da58a
jge 0x1404da758
call fcn.1404c8a90
mov rcx, qword [rax + 0x90]
jmp 0x1404da5a1
cmp qword [rcx + 0x138], rbx
jmp 0x1404da5ad
jne 0x1404da5c9
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
cmp byte [rax + r15*8 + 0x39], bl
je 0x1404da758
lea rax, [0x1400ba940]
seto dh
xchg rdx, rdx
bswap ecx
mov rcx, qword [rax + r13*8]
movsxd rdx, ecx
movzx dx, r13b
lea rdx, [rbp - 0x10]
jmp 0x1404da5ed
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404da5f7
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404da604
je 0x1404da758
test sil, sil
jmp 0x1404da612
je 0x1404da70d
dec sil
cmp sil, 1
jmp 0x1404da624
ja 0x1404da892
lea r12, [rdi + r14]
bt r14, 0xed
mov qword [rbp - 0x30], rbx
shl r14b, 0x1c
cmp edx, 0x60a77a13
and r14b, 0x4b
mov r14, rdi
cmc
cmp sil, bpl
test r15b, r10b
cmp rdi, r12
jmp 0x1404da657
jae 0x1404da87e
mov esi, dword [rbp - 0x2c]
movzx eax, word [r14]
movzx ecx, ax
jmp 0x1404da66c
mov word [rbp - 0x10], ax
call fcn.1404e4d54
movzx ecx, word [rbp - 0x10]
stc
cmp ax, cx
jmp 0x1404da682
jne 0x1404da6fa
add esi, 2
cmp r13b, 0x26
mov dword [rbp - 0x2c], esi
cmp cx, 0xa
jmp 0x1404da69b
jne 0x1404da6d7
mov ecx, 0xd
jmp 0x1404da6ab
call fcn.1404e4d54
mov ecx, 0xd
cmp ax, cx
jmp 0x1404da6bd
jne 0x1404da6fa
inc esi
jmp 0x1404da6ca
mov dword [rbp - 0x2c], esi
jmp 0x1404da6d2
inc ebx
cmp dh, 0x13
add r14, 2
test bpl, r8b
jmp 0x1404da6e7
cmp r14, r12
jmp 0x1404da6ef
jae 0x1404da87e
jmp 0x1404da660
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404da708
jmp 0x1404da87e
mov r9d, r14d
movzx r8, ax
mov r8b, 0x77
setbe cl
lea rcx, [rbp - 0x30]
setle dl
cmovg r8w, r14w
mov r8, rdi
movsx dx, dh
movsxd rdx, ebp
mov edx, r12d
jmp 0x1404da738
call fcn.1404da9a5
movsd xmm0, qword [rax]
mov ebx, esi
movzx bx, r13b
movsxd rbx, edi
mov ebx, dword [rax + 8]
jmp 0x1404da753
jmp 0x1404da88d
lea rax, [0x1400ba940]
mov rcx, qword [rax + r13*8]
test r14b, r12b
stc
cmp byte [rcx + r15*8 + 0x38], bl
jmp 0x1404da771
jge 0x1404da814
mov ecx, esi
cmc
cmp ah, bh
test sil, sil
jmp 0x1404da784
je 0x1404da7e5
sub ecx, 1
je 0x1404da7c8
cmp ecx, 1
jmp 0x1404da79b
jne 0x1404da892
mov r9d, r14d
setl cl
mov r8b, 0xb0
lea rcx, [rbp - 0x30]
cqo
xchg dl, r8b
mov r8, rdi
mov edx, r12d
jmp 0x1404da7be
call fcn.1404db657
jmp 0x1404da73d
mov r9d, r14d
movsxd rcx, r8d
lea rcx, [rbp - 0x30]
mov r8, rdi
movsxd rdx, eax
mov edx, r12d
call fcn.1404db8b6
jmp 0x1404da73d
mov r9d, r14d
movsx ecx, r13w
cmovg r8w, sp
lea rcx, [rbp - 0x30]
xchg r8b, r8b
mov r8, rdi
movsxd rdx, r13d
movsx dx, cl
mov edx, r12d
jmp 0x1404da80a
call fcn.1404db3ec
jmp 0x1404da73d
mov rcx, qword [rcx + r15*8 + 0x28]
bts dx, r10w
lea r9, [rbp - 0x2c]
sub eax, eax
shl rdx, 0x12
xor r8b, r9b
mov r8d, r14d
shr dl, cl
bsf dx, r14w
movzx dx, spl
and qword [rsp + 0x20], rax
not dh
mov rdx, rdi
jmp 0x1404da849
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], eax
jmp 0x1404da855
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404da862
jne 0x1404da87b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov rbx, rcx
movzx rbx, r12w
sub bl, r14b
mov ebx, dword [rbp - 0x28]
movsd xmm0, qword [rbp - 0x30]
sbb ah, 0xe0
mov ax, 0x223e
mov rax, r8
movsd qword [rbp - 0x20], xmm0
mov rax, qword [rbp - 0x20]
clc
shr rax, 0x20
test eax, eax
jmp 0x1404da8a2
jne 0x1404da943
mov eax, dword [rbp - 0x20]
test eax, eax
jmp 0x1404da8b2
je 0x1404da8f8
cmp eax, 5
jmp 0x1404da8c0
jne 0x1404da8e6
call fcn.1404b4780
mov dword [rax], 9
jmp 0x1404da8d6
call fcn.1404b47c1
mov dword [rax], 5
jmp 0x1404da499
mov ecx, dword [rbp - 0x20]
jmp 0x1404da8ee
call fcn.1404b47fd
jmp 0x1404da499
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
cmp cx, 0x3bd2
cmp r10w, cx
test byte [rax + r15*8 + 0x38], 0x40
je 0x1404da926
cmp byte [rdi], 0x1a
jmp 0x1404da920
je 0x1404da957
call fcn.1404b4780
mov dword [rax], 0x1c
call fcn.1404b47c1
and dword [rax], 0
jmp 0x1404da93e
jmp 0x1404da499
mov eax, dword [rbp - 0x1c]
test ch, 0x78
cmp r8, 0x10544495
sub eax, ebx
jmp 0x1404da95a
sub eax, eax
clc
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
movsx rdi, r12w
jmp 0x1404da978
pop r13
bswap r12d
movsxd r12, r8d
pop r12
mov rdi, r9
movzx si, sil
movsx rsi, bx
pop rdi
movsx ebp, di
pop rsi
cmovs ebp, ebp
movzx rbp, bx
movsx ebp, r13w
pop rbp
jmp 0x1404da9a4
ret