Function at 0x1404d83d8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
test r9d, 0x6bda6c9f
push rbp
ror bp, 0x66
bt bp, 0x55
setnp bpl
push rsi
rcl bpl, cl
push rdi
ror bpl, cl
dec ebp
push r12
push r13
test r12b, bl
sar bpl, cl
push r14
not edi
push r15
sar dil, cl
stc
or r14, r14
mov rbp, rsp
rcr r12b, 0x1a
rcl dil, 0x2c
sub rsp, 0x60
sal r14w, cl
sets dil
sub dil, al
sub ebx, ebx
and r12d, edi
sar r14w, 0xa8
mov r14d, r8d
shld r12d, r8d, 0xdf
xchg dil, dil
movsxd r12, ecx
btr edi, r10d
mov rdi, rdx
test r8d, r8d
jmp 0x1404d8454
je 0x1404d8915
test rdx, rdx
jne 0x1404d8487
call fcn.1404b26ed
mov dword [rax], ebx
call fcn.1404b26aa
mov dword [rax], 0x16
jmp 0x1404d847a
call fcn.1404b331d
or eax, 0xffffffff
jmp 0x1404d891c
mov rax, r12
lea rcx, [0x1400ba940]
dec r15b
sar esi, cl
and eax, 0x3f
movsx r15w, al
mov r13, r12
movzx r15, r13w
sar r13, 6
shl sil, 0x6b
lea r15, [rax + rax*8]
cmovbe si, sp
btc ax, 0xd2
btc eax, esp
mov rcx, qword [rcx + r13*8]
add sil, r8b
movsx esi, byte [rcx + r15*8 + 0x39]
stc
xadd al, ah
neg ah
lea eax, [rsi - 1]
test al, r8b
cmp al, 1
ja 0x1404d84f0
mov eax, r14d
not eax
test al, 1
jmp 0x1404d84ea
je 0x1404d8463
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404d84fb
je 0x1404d8520
sub edx, edx
mov ecx, r12d
movsx r8w, r13b
mov r8b, r13b
bswap r8w
lea r8d, [rdx + 2]
jmp 0x1404d851b
call fcn.14028e284
mov ecx, r12d
jmp 0x1404d8528
mov qword [rbp - 0x20], rbx
jmp 0x1404d8531
call fcn.1404de4d9
test eax, eax
jmp 0x1404d853d
je 0x1404d8714
lea rax, [0x1400ba940]
cmp bpl, bl
jmp 0x1404d8552
mov rax, qword [rax + r13*8]
cmp byte [rax + r15*8 + 0x38], bl
jmp 0x1404d8560
jge 0x1404d8714
call fcn.1404c6930
mov rcx, qword [rax + 0x90]
jmp 0x1404d8577
cmp qword [rcx + 0x138], rbx
jmp 0x1404d8583
jne 0x1404d85b2
lea rax, [0x1400ba940]
cmp ecx, 0xa9f5d43
cmp r13b, dil
mov rax, qword [rax + r13*8]
jmp 0x1404d85a2
cmp byte [rax + r15*8 + 0x39], bl
jmp 0x1404d85ac
je 0x1404d8714
lea rax, [0x1400ba940]
mov rcx, qword [rax + r13*8]
movsx rdx, si
movzx edx, ax
cwd
lea rdx, [rbp - 0x10]
jmp 0x1404d85cf
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404d85d9
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404d85e6
je 0x1404d8714
test sil, sil
jmp 0x1404d85f4
je 0x1404d86ca
dec sil
cmp sil, 1
ja 0x1404d883c
lea r12, [rdi + r14]
movzx r14d, bp
movsx r14, bx
btc r14, 0xe8
mov qword [rbp - 0x30], rbx
test al, 0x94
mov r14, rdi
cmp rdi, r12
jmp 0x1404d8629
jae 0x1404d882a
mov esi, dword [rbp - 0x2c]
lahf
movzx eax, word [r14]
movzx rcx, r12w
movzx ecx, ax
jmp 0x1404d8643
mov word [rbp - 0x10], ax
jmp 0x1404d864c
call fcn.1404e2da3
movzx ecx, word [rbp - 0x10]
cmp dl, r8b
cmp ax, cx
jmp 0x1404d8660
jne 0x1404d86bc
add esi, 2
mov dword [rbp - 0x2c], esi
cmp cx, 0xa
jmp 0x1404d8675
jne 0x1404d86aa
mov ecx, 0xd
call fcn.1404e2da3
mov ecx, 0xd
clc
test bpl, r9b
cmp ax, cx
jne 0x1404d86bc
inc esi
jmp 0x1404d869e
mov dword [rbp - 0x2c], esi
jmp 0x1404d86a6
inc ebx
stc
clc
add r14, 2
cmp r14, r12
jae 0x1404d882a
jmp 0x1404d8633
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404d882a
mov r9d, r14d
not dx
xchg cx, r8w
movzx dx, r14b
lea rcx, [rbp - 0x30]
xchg r8b, r8b
setb dl
mov r8, rdi
jmp 0x1404d86ef
mov edx, r12d
call fcn.1404d895c
movsd xmm0, qword [rax]
mov rbx, 0x1f8a551f
xchg bl, bl
setae bl
mov ebx, dword [rax + 8]
jmp 0x1404d870f
jmp 0x1404d8831
lea rax, [0x1400ba940]
mov rcx, qword [rax + r13*8]
cmc
clc
cmp byte [rcx + r15*8 + 0x38], bl
jge 0x1404d87c1
mov ecx, esi
cmc
test sil, sil
jmp 0x1404d8737
je 0x1404d879e
sub ecx, 1
jmp 0x1404d8745
je 0x1404d8774
cmp ecx, 1
jne 0x1404d883c
mov r9d, r14d
lea rcx, [rbp - 0x30]
bswap edx
movzx rdx, r13w
cqo
mov r8, rdi
cdq
mov edx, r12d
call fcn.1404d95e0
jmp 0x1404d86f7
mov r9d, r14d
bswap cx
lea rcx, [rbp - 0x30]
cmove rdx, r15
mov r8, rdi
cmova edx, r13d
setbe dl
mov edx, r12d
jmp 0x1404d8794
call fcn.1404d986d
jmp 0x1404d86f7
mov r9d, r14d
jmp 0x1404d87a6
lea rcx, [rbp - 0x30]
movzx dx, r11b
cwd
mov r8, rdi
mov edx, r12d
call fcn.1404d9377
jmp 0x1404d86f7
mov rcx, qword [rcx + r15*8 + 0x28]
lea r9, [rbp - 0x2c]
mov r8d, r9d
sbb dx, r9w
sub eax, eax
cmovl dx, cx
mov r8d, r14d
and qword [rsp + 0x20], rax
movsxd rdx, r12d
not rdx
mov dx, r15w
mov rdx, rdi
mov qword [rbp - 0x30], rax
jmp 0x1404d87f5
mov dword [rbp - 0x28], eax
jmp 0x1404d87fd
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404d880a
jne 0x1404d881b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
stc
clc
mov ebx, dword [rbp - 0x28]
movsxd rax, r9d
cmp r10w, 0x4b31
ror al, 0xd4
movsd xmm0, qword [rbp - 0x30]
or ah, cl
movsd qword [rbp - 0x20], xmm0
xor ax, 0x70b
add ah, cl
mov rax, qword [rbp - 0x20]
clc
jmp 0x1404d8846
shr rax, 0x20
cmp r12b, bpl
cmc
test r9d, 0xfa47daa
test eax, eax
jmp 0x1404d885c
jne 0x1404d8900
mov eax, dword [rbp - 0x20]
clc
test eax, eax
je 0x1404d88ae
cmp eax, 5
jmp 0x1404d8876
jne 0x1404d889c
call fcn.1404b26aa
mov dword [rax], 9
call fcn.1404b26ed
mov dword [rax], 5
jmp 0x1404d8897
jmp 0x1404d847f
mov ecx, dword [rbp - 0x20]
jmp 0x1404d88a4
call fcn.1404b271e
jmp 0x1404d847f
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
test dx, 0x6b09
test r10b, bl
cmp r13b, r15b
test byte [rax + r15*8 + 0x38], 0x40
jmp 0x1404d88cf
je 0x1404d88de
cmp byte [rdi], 0x1a
je 0x1404d8915
call fcn.1404b26aa
mov dword [rax], 0x1c
jmp 0x1404d88ee
call fcn.1404b26ed
and dword [rax], 0
jmp 0x1404d88fb
jmp 0x1404d847f
mov eax, dword [rbp - 0x1c]
cmp edi, 0x6923592e
sub eax, ebx
jmp 0x1404d8910
jmp 0x1404d891c
sub eax, eax
jmp 0x1404d891c
mov rbx, qword [rsp + 0xb8]
btc r12w, dx
cmc
add rsp, 0x60
setno r13b
pop r15
pop r14
pop r13
sete sil
pop r12
not bp
sets dil
movsx rsi, r8w
pop rdi
movsx rsi, bp
movsx esi, cx
mov rsi, r11
pop rsi
pop rbp
jmp 0x1404d895b
ret