Function at 0x1404d99b2
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
mov si, si
clc
push rdi
rcl sil, 0xd1
push r12
shr r12b, cl
not sil
shld si, sp, 0xb5
push r13
movsxd rbp, esi
push r14
sbb r12b, 0x73
shr r14, cl
cdqe
push r15
bt r15w, 0xf
dec si
or r13, 0x7e4b2b3f
lea rbp, [rsp - 0x27]
rcr rax, cl
xor r15b, 0x1a
rol ah, 0xf6
sub rsp, 0x100
add rax, r11
add r15w, 0x2c2c
movsxd rax, esp
mov rax, qword [0x1400b7288]
neg sil
cmc
sub r13b, 0xdd
xor rax, rsp
mov qword [rbp + 0x17], rax
cmova r14w, bx
movsxd rsi, edx
btr r12w, r11w
neg r13w
cdqe
mov r15, r8
add r14b, bl
sal r13, cl
bt rax, 0x30
mov rax, rsi
bts r13, rdi
test r11w, bp
clc
mov qword [rbp - 9], rcx
xadd cx, r12w
sbb r13, 0x303e072b
rcl r14b, cl
mov qword [rbp - 0x11], rax
lea rcx, [0x140000000]
and r14d, r13d
and eax, 0x3f
stc
mov r13d, r9d
ror r12b, 0xe8
sbb r14d, r9d
lea r13, [r13 + r8]
inc r12b
sal r12w, cl
mov qword [rbp - 0x21], r8
shrd r14d, eax, 0x8c
mov r12, rsi
mov qword [rbp - 0x51], r13
movzx r14, sp
cmp r14w, r15w
sar r12, 6
movsxd r14, edi
movsx r14d, r11w
lea r14, [rax + rax*8]
setns al
mov rax, qword [rcx + r12*8 + 0xba940]
jmp 0x1404d9ac8
mov rax, qword [rax + r14*8 + 0x28]
jmp 0x1404d9ad2
mov qword [rbp - 0x49], rax
jmp 0x1404d9adb
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
sub edx, edx
xchg cl, cl
lea rcx, [rsp + 0x50]
jmp 0x1404d9aef
mov dword [rbp - 0x59], eax
jmp 0x1404d9af7
call fcn.1404a2b89
mov rcx, qword [rsp + 0x58]
bt ebx, 0x39
xor r11d, r11d
bsr edx, r12d
xchg bx, dx
mov dword [rbp - 0x69], r11d
mov ebx, r11d
stc
shr edx, 0xcf
mov dword [rbp - 0x65], ebx
cmp r12b, 0x38
sbb edi, r12d
mov rdi, r15
mov edx, dword [rcx + 0xc]
rol ch, cl
and ch, 0xe9
mov ecx, r11d
clc
mov dword [rsp + 0x40], ecx
cmp r13, rbp
cmc
mov dword [rbp - 0x55], edx
test di, 0x603b
cmp r11w, 0x271a
cmc
cmp r15, r13
jae 0x1404da2e1
mov rax, rsi
btr si, r9w
mov cl, 0x24
shl cl, 0x95
mov rsi, r15
shl cl, 0xb1
xadd cl, r15b
sar rax, 6
jmp 0x1404d9b7a
mov qword [rbp - 0x19], rax
mov cl, byte [rdi]
mov r15d, 1
jmp 0x1404d9b8b
mov byte [rsp + 0x44], cl
mov dword [rsp + 0x48], r11d
test dil, sil
clc
cmp edx, 0xfde9
jmp 0x1404d9ba3
jne 0x1404d9e93
lea r15, [0x140000000]
mov edx, r11d
shld esi, ecx, 0xc9
test cl, ah
mov r9, qword [r15 + rax*8 + 0xba940]
rcl rax, cl
mov rsi, r11
cmovb ax, r9w
sal rax, 0xb0
btr rax, rbp
lea rax, [r9 + r14*8]
test ebp, 0x2b2e103e
jmp 0x1404d9be3
cmp byte [rax + rsi + 0x3e], r11b
jmp 0x1404d9bed
je 0x1404d9c0c
inc edx
jmp 0x1404d9bfa
inc rsi
cmp rsi, 5
jmp 0x1404d9c06
jl 0x1404d9be3
test rsi, rsi
jmp 0x1404d9c14
jle 0x1404d9dcb
mov rax, qword [r15 + r12*8 + 0xba940]
sbb rcx, r14
mov r8, qword [rbp - 0x51]
sub r8, rdi
mov r10b, r11b
setnp r10b
cmovl cx, cx
movzx ecx, byte [rax + r14*8 + 0x3e]
movsxd r13, ebp
movsx r15d, byte [rcx + r15 + 0xb7d00]
dec r10w
xchg r13w, r10w
movsx r10d, bp
inc r15d
shld r13w, bp, 2
bt r13w, cx
cmc
mov r13d, r15d
cmovp r10, r8
bt r10w, r9w
sub r13d, edx
rcr r10d, 0xd3
movsxd r10, r13d
test spl, al
clc
cmp r10, r8
jmp 0x1404d9c86
jg 0x1404da117
lea rax, [rbp - 1]
bsr cx, r11w
mov rdx, r11
sar cx, cl
inc ecx
sub r8, 0x2380518b
sub r9, rax
lea r8, [r9 + r14*8]
add rcx, 0x39880333
lea rcx, [rbp - 1]
adc al, r13b
add rcx, rdx
inc rdx
mov al, byte [rcx + r8 + 0x3e]
cmp r9b, r12b
mov byte [rcx], al
stc
cmp rdx, rsi
jmp 0x1404d9cd2
jl 0x1404d9cb2
test r13d, r13d
jle 0x1404d9d0d
lea rcx, [rbp - 1]
btc dx, r11w
rcl r8, 0x9d
mov r8, r10
movzx dx, r9b
add rcx, rsi
cdq
mov rdx, rdi
jmp 0x1404d9d02
call fcn.1404a1c3e
xor r11d, r11d
dec dh
cmc
mov rdx, r11
lea r8, [0x140000000]
test bpl, 0x53
shr cl, 0xc1
mov rcx, qword [r8 + r12*8 + 0xba940]
test sil, bpl
cmc
add rcx, rdx
jmp 0x1404d9d32
inc rdx
cmp r15, rbx
mov byte [rcx + r14*8 + 0x3e], r11b
cmp r14b, r11b
cmp rdx, rsi
jmp 0x1404d9d48
jl 0x1404d9d1e
lea rax, [rbp - 1]
xchg r8b, cl
cmc
ror dl, 0x6d
mov qword [rbp - 0x41], r11
btc r8w, r15w
mov qword [rbp - 0x39], rax
movsx r8, r11w
lea r9, [rbp - 0x41]
mov eax, r11d
lea rdx, [rbp - 0x39]
dec r8b
stc
cmp r15d, 4
movsx r15, bx
lea rcx, [rsp + 0x48]
sete al
movzx r8, di
inc eax
mov r8d, eax
mov r15d, eax
jmp 0x1404d9d9a
call fcn.1404df3ff
cmp rax, 0xffffffffffffffff
jmp 0x1404d9da8
je 0x1404d9f6e
lea eax, [r13 - 1]
xchg sil, sil
mov r13, qword [rbp - 0x51]
mov sil, 1
bt si, cx
movsxd rsi, eax
add rsi, rdi
jmp 0x1404d9f9f
movzx eax, byte [rdi]
cmp bl, r9b
jmp 0x1404d9dd6
mov rdx, r13
setg sil
shrd si, cx, 0xa6
clc
sub rdx, rdi
neg cl
mov ecx, 0x2bfe5a6e
and cx, 0x5026
movsx rsi, byte [rax + r15 + 0xb7d00]
lea ecx, [rsi + 1]
movsxd rax, ecx
stc
cmp rax, rdx
jmp 0x1404d9e0a
jg 0x1404da185
cmp ecx, 4
mov qword [rbp - 0x31], r11
movzx ax, r14b
rdtsc
mov eax, r11d
cdq
setle al
mov r8b, 0x88
mov qword [rbp - 0x29], rdi
sete al
movzx r9, r15w
movsx r8, bp
lea r9, [rbp - 0x31]
inc eax
movzx edx, di
lea rdx, [rbp - 0x29]
sete bh
jmp 0x1404d9e50
mov r8d, eax
movzx rbx, di
not cl
lea rcx, [rsp + 0x48]
movzx bx, r12b
movzx ebx, sp
not bl
mov ebx, eax
jmp 0x1404d9e6f
call fcn.1404df3ff
cmp rax, 0xffffffffffffffff
jmp 0x1404d9e7d
je 0x1404d9f6e
add rsi, rdi
mov r15d, ebx
jmp 0x1404d9e8e
jmp 0x1404d9f9f
lea rax, [0x140000000]
mov rdx, qword [rax + r12*8 + 0xba940]
sar cl, 0x4b
or cl, 0x1d
mov cl, byte [rdx + r14*8 + 0x3d]
test cl, 4
je 0x1404d9f01
mov al, byte [rdx + r14*8 + 0x3e]
cmp r8d, 0x41ca1adb
cmc
test r10b, cl
and cl, 0xfb
jmp 0x1404d9ece
mov byte [rbp + 7], al
not al
mov al, 0x4b
mov al, al
mov al, byte [rdi]
jmp 0x1404d9ede
mov byte [rdx + r14*8 + 0x3d], cl
bswap rdx
cdq
cmovnp dx, dx
lea rdx, [rbp + 7]
jmp 0x1404d9ef4
mov byte [rbp + 8], al
jmp 0x1404d9efc
jmp 0x1404d9f41
call fcn.1404a92c7
movzx ecx, byte [rdi]
test bpl, bpl
cmp eax, r12d
sub edx, edx
stc
test r14b, r12b
clc
cmp word [rax + rcx*2], dx
jmp 0x1404d9f1f
jge 0x1404d9f7c
inc rsi
test r11w, di
cmp rsi, r13
jae 0x1404da25f
mov rdx, rdi
movzx r8w, bl
movzx r8d, sp
mov r8d, 2
movsxd rcx, r15d
mov rcx, 0x2d894e87
lea rcx, [rsp + 0x48]
jmp 0x1404d9f5b
call fcn.1402013fe
cmp eax, 0xffffffff
jmp 0x1404d9f68
jne 0x1404d9f9f
cmp byte [rbp - 0x71], 0
jmp 0x1404d9f77
jmp 0x1404da256
mov r8, r15
lea rcx, [rsp + 0x48]
movsxd rdx, edi
not dl
mov rdx, rdi
jmp 0x1404d9f91
call fcn.1402013fe
cmp eax, 0xffffffff
je 0x1404da2c8
mov ecx, dword [rbp - 0x59]
lea rax, [rbp + 0xf]
shld r9w, r9w, 0x77
xor ebx, ebx
dec r9b
adc r9w, r10w
lea r8, [rsp + 0x48]
and rdi, rbp
mov qword [rsp + 0x38], rbx
lea rdi, [rsi + 1]
movsx r9, r15w
mov qword [rsp + 0x30], rbx
sal r9, 0x60
sar r9, cl
add r9d, ecx
mov r9d, r15d
test r8b, r13b
mov dword [rsp + 0x28], 5
cmp r10w, 0x75d
cmp esp, edi
sub edx, edx
jmp 0x1404d9ff6
mov qword [rsp + 0x20], rax
call fcn.1404c7748
mov esi, eax
test eax, eax
je 0x1404da388
mov rcx, qword [rbp - 0x49]
jmp 0x1404da013
lea r9, [rsp + 0x4c]
mov r8d, eax
jmp 0x1404da022
mov qword [rsp + 0x20], rbx
movsx edx, r9w
lea rdx, [rbp + 0xf]
jmp 0x1404da034
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r11d, r11d
test eax, eax
je 0x1404da37f
mov r15d, dword [rsp + 0x40]
xadd bx, bx
mov ebx, edi
test r10, 0x3e9000ed
sub ebx, dword [rbp - 0x21]
add ebx, r15d
mov dword [rbp - 0x65], ebx
cmp dword [rsp + 0x4c], esi
jmp 0x1404da069
jb 0x1404da24e
cmp byte [rsp + 0x44], 0xa
jne 0x1404da0ea
mov rcx, qword [rbp - 0x49]
lea eax, [r11 + 0xd]
lea r9, [rsp + 0x4c]
cwd
mov word [rsp + 0x44], ax
cdq
lea r8d, [r11 + 1]
cqo
movsxd rdx, r10d
mov qword [rsp + 0x20], r11
cqo
cdq
lea rdx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r11d, r11d
stc
test dil, 0x22
test eax, eax
je 0x1404da2b8
cmp dword [rsp + 0x4c], 1
jmp 0x1404da0c5
jb 0x1404da24e
inc r15d
xchg sil, sil
inc ebx
mov dword [rsp + 0x40], r15d
ror sil, 0x28
movzx si, sil
shld si, r10w, 0xa5
mov dword [rbp - 0x65], ebx
mov rsi, rdi
cmp sil, r12b
test dil, 0
cmp bpl, 0x79
cmp rdi, r13
jae 0x1404da2da
mov rax, qword [rbp - 0x19]
movsx dx, bpl
mov edx, dword [rbp - 0x55]
jmp 0x1404da112
jmp 0x1404d9b7e
mov edx, r11d
test si, 0x7038
cmc
test r8, r8
jmp 0x1404da128
jle 0x1404da178
sub rdi, rsi
inc al
lea rbx, [0x140000000]
setl al
mov al, 0x70
mov al, byte [rdi + rsi]
movsx ecx, dx
inc edx
mov rcx, qword [rbx + r12*8 + 0xba940]
add rcx, rsi
jmp 0x1404da157
inc rsi
test ch, bl
mov byte [rcx + r14*8 + 0x3e], al
movsxd rax, edx
stc
jmp 0x1404da16a
cmp rax, r8
jl 0x1404da13f
mov ebx, dword [rbp - 0x65]
cmc
stc
add ebx, r8d
jmp 0x1404da180
jmp 0x1404da241
mov r9d, r11d
cmc
cmp r11b, r11b
test rdx, rdx
jmp 0x1404da194
jle 0x1404da23a
mov r13, qword [rbp - 0x11]
btr r8d, 0x40
bsf r8d, r9d
cmp r10w, 0x6d8b
mov r8, r11
shl al, 9
dec al
mov r10, r13
adc r11w, 0x3b97
xchg r11, r11
and r13d, 0x3f
xor r11b, 0x1d
adc cx, r15w
sar r10, 6
rcl al, 0x21
lea r11, [r13*8]
inc ecx
add r11, r13
movzx ecx, r15w
mov cx, 0x1590
jmp 0x1404da1ee
mov al, byte [r8 + rdi]
movsx ecx, bp
setns ch
mov cl, 0xac
inc r9d
mov rcx, qword [r15 + r10*8 + 0xba940]
clc
test spl, dil
add rcx, r8
jmp 0x1404da211
inc r8
jmp 0x1404da219
mov byte [rcx + r11*8 + 0x3e], al
inc ah
movsxd rax, r9d
cmp rax, rdx
jl 0x1404da1ee
xor r11d, r11d
btr cx, 0x77
and cl, r15b
shl ecx, 0x88
add ebx, edx
mov cl, r8b
shl cl, cl
mov dword [rbp - 0x65], ebx
movzx rcx, r8w
sub ecx, 0x65200d8d
cmp byte [rbp - 0x71], r11b
movsx rcx, dx
mov ecx, dword [rsp + 0x40]
jmp 0x1404da2ea
mov al, byte [rdi]
inc r8b
cmovae r8w, r13w
mov r8b, r12b
lea r8, [0x140000000]
mov rcx, qword [r8 + r12*8 + 0xba940]
jmp 0x1404da280
inc ebx
clc
cmp rax, rsi
mov dword [rbp - 0x65], ebx
cmp r14b, 0x3f
test r8b, r9b
mov byte [rcx + r14*8 + 0x3e], al
movzx rax, dx
mov rax, qword [r8 + r12*8 + 0xba940]
test r12b, r13b
or byte [rax + r14*8 + 0x3d], 4
clc
cmp byte [rbp - 0x71], dl
jmp 0x1404da2b3
jmp 0x1404da256
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
neg ch
xor cx, 0x6fdf
mov ecx, dword [rsp + 0x40]
cmp byte [rbp - 0x71], 0
jmp 0x1404da2d5
jmp 0x1404da2ea
mov ecx, dword [rsp + 0x40]
cmp r12b, cl
cmp byte [rbp - 0x71], r11b
jmp 0x1404da2ea
je 0x1404da308
mov rax, qword [rsp + 0x50]
clc
jmp 0x1404da2fb
and dword [rax + 0x3a8], 0xfffffffd
cwde
add eax, eax
mov ax, di
mov rax, qword [rbp - 9]
stc
movsd xmm0, qword [rbp - 0x69]
test r9b, spl
jmp 0x1404da31a
movsd qword [rax], xmm0
cmc
cmp r12b, dil
mov dword [rax + 8], ecx
mov cl, r14b
or cl, 0x59
shr cl, 0x84
mov rcx, qword [rbp + 0x17]
clc
xor rcx, rsp
jmp 0x1404da33b
call fcn.14049e054
mov rbx, qword [rsp + 0x140]
rcl r12w, 0xfe
add rsp, 0x100
movsx ebp, ax
pop r15
movzx r14d, dx
pop r14
xchg r13b, dil
not r12b
mov si, r14w
pop r13
pop r12
movzx rbp, bp
pop rdi
pop rsi
movzx bp, r10b
movsx bp, r15b
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
mov ecx, dword [rsp + 0x40]
clc
cmp byte [rbp - 0x71], bl
jmp 0x1404da395
jmp 0x1404da2ea