Function at 0x1404d47e3
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
xadd ah, ah
push rbp
neg ah
push rsi
sar bp, cl
push rdi
push r12
movzx r12, r11w
test al, 0x7e
cmc
push r13
push r14
sar r12b, 0x26
shl r12w, 0x21
push r15
lea rbp, [rsp - 0x27]
btr r13w, cx
movzx si, cl
btc r15d, 0x57
sub rsp, 0x100
movzx r13w, r11b
mov rax, qword [0x1400b7288]
neg r14d
and r12w, si
shl sil, cl
xor rax, rsp
mov qword [rbp + 0x17], rax
add si, r12w
inc sil
movsxd rsi, edx
cmp r11, 0x5702a68
cbw
movsx r15w, bpl
mov r15, r8
btr r14w, 0x64
mov rax, rsi
sar r13w, cl
mov qword [rbp - 9], rcx
mov qword [rbp - 0x11], rax
bt r14, 0xb2
movzx r14w, r10b
xor cx, r13w
lea rcx, [0x140000000]
and eax, 0x3f
sbb r13b, 0x5c
test r14, 0x7200376b
mov r13d, r9d
ror r12w, cl
xor r12b, r12b
sar r14w, cl
lea r13, [r13 + r8]
movzx r14w, dl
mov qword [rbp - 0x21], r8
rcr r14b, cl
bswap r12w
mov r12, rsi
movsx r14w, r8b
rcr r14b, cl
add r14b, 0xe1
mov qword [rbp - 0x51], r13
btc r14d, r9d
movsx r14, r11w
bts r14d, ebx
sar r12, 6
bswap r14d
not r14d
lea r14, [rax + rax*8]
lahf
bswap ax
jmp 0x1404d48ee
mov rax, qword [rcx + r12*8 + 0xba940]
jmp 0x1404d48fb
mov rax, qword [rax + r14*8 + 0x28]
jmp 0x1404d4905
mov qword [rbp - 0x49], rax
jmp 0x1404d490e
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
xor edx, edx
lea rcx, [rsp + 0x50]
jmp 0x1404d4920
mov dword [rbp - 0x59], eax
jmp 0x1404d4928
call fcn.14049d54e
mov rcx, qword [rsp + 0x58]
rcl dl, 0xa5
rol dl, cl
movzx edi, di
xor r11d, r11d
rcr dh, 0x7e
mov dword [rbp - 0x69], r11d
movzx rdi, r10w
sar dl, 0x6a
mov ebx, r11d
shrd edx, esi, 0x5e
mov dword [rbp - 0x65], ebx
rol dh, cl
cmovns di, di
mov rdi, r15
sar dl, 0x50
rol dh, cl
mov edx, dword [rcx + 0xc]
setae cl
cmp r14, 0x348069a
movzx cx, spl
mov ecx, r11d
cmp ch, 0x9f
jmp 0x1404d4983
mov dword [rsp + 0x40], ecx
test edi, esi
cmp spl, r9b
mov dword [rbp - 0x55], edx
cmc
cmp r15, r13
jmp 0x1404d4998
jae 0x1404d5153
mov rax, rsi
cmp r13b, r15b
not cl
rcl cl, 0x9c
mov rsi, r15
sar rax, 6
mov qword [rbp - 0x19], rax
rcr r15b, 0x60
adc cl, r11b
mov cl, byte [rdi]
ror r15w, cl
xchg r15b, r15b
jmp 0x1404d49c9
mov r15d, 1
test si, si
mov byte [rsp + 0x44], cl
mov dword [rsp + 0x48], r11d
cmp edx, 0xfde9
jmp 0x1404d49e6
jne 0x1404d4cff
lea r15, [0x140000000]
sar r9b, cl
mov edx, r11d
mov esi, 0xe96fa4
mov r9, qword [r15 + rax*8 + 0xba940]
neg esi
mov rsi, r11
ror al, 0x3b
cmc
dec eax
lea rax, [r9 + r14*8]
cmp dil, r11b
cmp byte [rax + rsi + 0x3e], r11b
jmp 0x1404d4a22
je 0x1404d4a45
inc edx
jmp 0x1404d4a2f
inc rsi
test ch, 0xbc
stc
cmp rsi, 5
jmp 0x1404d4a3f
jl 0x1404d4a18
test rsi, rsi
jle 0x1404d4c24
mov rax, qword [r15 + r12*8 + 0xba940]
jmp 0x1404d4a64
mov r8, qword [rbp - 0x51]
bts r13, r13
and r13w, 0x3fea
sub r8, rdi
movzx rcx, bp
movzx r10d, r9w
not r13d
movzx ecx, byte [rax + r14*8 + 0x3e]
cmovns r13w, bx
jmp 0x1404d4a90
movsx r15d, byte [rcx + r15 + 0xb7d00]
cmovbe r10, r11
inc r13b
inc r15d
ror r13w, 0x31
and r13b, 0x91
test r12b, 0xa3
mov r13d, r15d
setae r10b
shl r10w, cl
shr r10b, cl
sub r13d, edx
sal r10b, cl
movsxd r10, r13d
test r15d, 0x39466654
cmp r10, r8
jg 0x1404d4f93
lea rax, [rbp - 1]
mov rdx, r11
cmp rdi, rsp
rcr ch, 0x15
ror r8b, 0x93
sub r9, rax
adc r8b, 0x6b
add al, 0x27
lea r8, [r9 + r14*8]
lea rcx, [rbp - 1]
sbb al, r13b
shr al, cl
add rcx, rdx
inc al
inc rdx
neg al
mov al, byte [rcx + r8 + 0x3e]
mov byte [rcx], al
cmp rdx, rsi
jl 0x1404d4af5
test r13d, r13d
jle 0x1404d4b55
lea rcx, [rbp - 1]
stc
mov r8, r10
test sil, 0x6e
mov dh, 0x64
rcl rdx, 0x41
add rcx, rsi
movsx rdx, bx
mov rdx, rdi
jmp 0x1404d4b43
call fcn.14049c53b
sub r11d, r11d
sbb ch, 0x71
and r8, 0x16bc7b4a
mov rdx, r11
and r8w, 0x52b7
test cl, r11b
ror cl, cl
lea r8, [0x140000000]
jmp 0x1404d4b74
mov rcx, qword [r8 + r12*8 + 0xba940]
add rcx, rdx
jmp 0x1404d4b84
inc rdx
clc
mov byte [rcx + r14*8 + 0x3e], r11b
cmp r9d, 0x6fc7256a
jmp 0x1404d4b99
cmp rdx, rsi
jmp 0x1404d4ba1
jl 0x1404d4b74
lea rax, [rbp - 1]
mov qword [rbp - 0x41], r11
sar cl, cl
xadd r8b, r9b
mov qword [rbp - 0x39], rax
lea r9, [rbp - 0x41]
mov eax, r11d
bswap cx
bt dx, si
rol al, cl
lea rdx, [rbp - 0x39]
adc ch, 0xcc
cmp r15d, 4
lea rcx, [rsp + 0x48]
sete al
setp r15b
movsx r8d, r9w
inc eax
mov r8d, eax
not r15b
mov r15d, eax
jmp 0x1404d4bf4
call fcn.1404da32c
cmp rax, 0xffffffffffffffff
je 0x1404d4dab
lea eax, [r13 - 1]
mov r13, qword [rbp - 0x51]
movsxd rsi, eax
cmc
test al, r14b
jmp 0x1404d4c17
add rsi, rdi
jmp 0x1404d4c1f
jmp 0x1404d4ddb
movzx eax, byte [rdi]
mov rdx, r13
dec ch
sub rdx, rdi
or cx, 0x60b6
inc cl
rcr cl, cl
movsx rsi, byte [rax + r15 + 0xb7d00]
rcr cx, cl
movsxd rax, r8d
lea ecx, [rsi + 1]
xor eax, r13d
cmp rax, 0x4bd33901
or al, r9b
movsxd rax, ecx
jmp 0x1404d4c60
cmp rax, rdx
jg 0x1404d4ff5
cmp ecx, 4
mov qword [rbp - 0x31], r11
rdtsc
jmp 0x1404d4c7a
mov eax, r11d
movsx rbx, ax
mov qword [rbp - 0x29], rdi
movsxd rdx, r15d
cqo
movzx r9, ax
sete al
movsx ebx, r8w
xchg r8b, r8b
lea r9, [rbp - 0x31]
inc eax
movsx ecx, r12w
movzx r8w, r14b
movsx cx, r13b
lea rdx, [rbp - 0x29]
jmp 0x1404d4cbb
mov r8d, eax
lea rcx, [rsp + 0x48]
mov bx, r14w
cmovae bx, r11w
mov ebx, eax
jmp 0x1404d4cd3
call fcn.1404da32c
cmp rax, 0xffffffffffffffff
jmp 0x1404d4ce1
je 0x1404d4dab
add rsi, rdi
mov r15d, r12d
movzx r15w, r9b
mov r15d, ebx
jmp 0x1404d4cfa
jmp 0x1404d4ddb
lea rax, [0x140000000]
mov rdx, qword [rax + r12*8 + 0xba940]
xor cl, 0
mov cl, byte [rdx + r14*8 + 0x3d]
cmp dl, r10b
test cl, 4
jmp 0x1404d4d21
je 0x1404d4d56
mov al, byte [rdx + r14*8 + 0x3e]
cmc
clc
and cl, 0xfb
jmp 0x1404d4d36
mov byte [rbp + 7], al
mov al, byte [rdi]
jmp 0x1404d4d40
mov byte [rdx + r14*8 + 0x3d], cl
lea rdx, [rbp + 7]
jmp 0x1404d4d4e
mov byte [rbp + 8], al
jmp 0x1404d4d83
call fcn.1404a3c79
movzx ecx, byte [rdi]
sub edx, edx
cmp word [rax + rcx*2], dx
jmp 0x1404d4d69
jge 0x1404d4db9
inc rsi
cmp rsi, r13
jmp 0x1404d4d7a
jae 0x1404d50cd
mov rdx, rdi
mov r8d, 2
xchg cl, ch
mov ch, 0x1b
lea rcx, [rsp + 0x48]
jmp 0x1404d4d98
call fcn.14020a13c
cmp eax, 0xffffffff
jmp 0x1404d4da5
jne 0x1404d4ddb
cmp byte [rbp - 0x71], 0
jmp 0x1404d4db4
jmp 0x1404d50bf
mov r8, r15
movsx edx, r12w
lea rcx, [rsp + 0x48]
mov rdx, rdi
jmp 0x1404d4dcd
call fcn.14020a13c
cmp eax, 0xffffffff
je 0x1404d5138
mov ecx, dword [rbp - 0x59]
movsx r8, r13w
lea rax, [rbp + 0xf]
rol r9d, 0xd0
shrd r8, r13, 0x77
rcl dil, cl
xor ebx, ebx
rol dil, cl
btc r8w, 0x96
bsf r8w, bp
lea r8, [rsp + 0x48]
rcl dil, 0x65
rcl r9w, cl
mov qword [rsp + 0x38], rbx
clc
rcr edi, 0x11
lea rdi, [rsi + 1]
movsx r9w, dl
sub r9, 0xd831f6d
mov qword [rsp + 0x30], rbx
mov r9d, r15d
cmp r11d, ebp
cmp r15, 0x3e4e13d8
stc
mov dword [rsp + 0x28], 5
test r14b, 0x33
xor edx, edx
jmp 0x1404d4e4e
mov qword [rsp + 0x20], rax
jmp 0x1404d4e58
call fcn.1404c235c
mov esi, eax
clc
test eax, eax
je 0x1404d51fe
mov rcx, qword [rbp - 0x49]
lea r9, [rsp + 0x4c]
movsx r8w, r15b
mov r8d, eax
sete dl
cmovno rdx, rbx
movsx edx, r15w
mov qword [rsp + 0x20], rbx
lea rdx, [rbp + 0xf]
jmp 0x1404d4e92
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r11d, r11d
stc
test eax, eax
jmp 0x1404d4ea3
je 0x1404d51f1
mov r15d, dword [rsp + 0x40]
xor bx, di
sar bl, cl
mov ebx, edi
cmp r10b, 0xc0
clc
sub ebx, dword [rbp - 0x21]
jmp 0x1404d4ec2
add ebx, r15d
mov dword [rbp - 0x65], ebx
cmp cl, 0x55
cmp dword [rsp + 0x4c], esi
jmp 0x1404d4ed4
jb 0x1404d50b0
cmp byte [rsp + 0x44], 0xa
jmp 0x1404d4ee4
jne 0x1404d4f6d
mov rcx, qword [rbp - 0x49]
lea eax, [r11 + 0xd]
movsxd r8, r13d
movsx rdx, dx
lea r9, [rsp + 0x4c]
movzx edx, ax
mov r8b, 0xa5
mov word [rsp + 0x44], ax
cqo
lea r8d, [r11 + 1]
movsx edx, r9w
mov qword [rsp + 0x20], r11
xchg dl, dh
cqo
lea rdx, [rsp + 0x44]
jmp 0x1404d4f26
call qword [sym.imp.KERNEL32.dll_WriteFile]
sub r11d, r11d
clc
test r12w, dx
cmc
test eax, eax
je 0x1404d5127
cmp dword [rsp + 0x4c], 1
jmp 0x1404d4f47
jb 0x1404d50b0
inc r15d
inc ebx
ror rsi, 0x27
neg sil
dec si
mov dword [rsp + 0x40], r15d
neg si
mov dword [rbp - 0x65], ebx
inc si
neg sil
mov rsi, rdi
test r10b, 0x6d
cmp rdi, r13
jmp 0x1404d4f7c
jae 0x1404d514a
mov rax, qword [rbp - 0x19]
movsx edx, bp
cwd
mov edx, dword [rbp - 0x55]
jmp 0x1404d49bb
mov edx, r11d
test r8, r8
jmp 0x1404d4f9e
jle 0x1404d4fed
sub rdi, rsi
lea rbx, [0x140000000]
mov al, byte [rdi + rsi]
xchg ecx, ecx
inc edx
sar cl, 0xe7
mov rcx, qword [rbx + r12*8 + 0xba940]
add rcx, rsi
inc rsi
cmp dil, r15b
mov byte [rcx + r14*8 + 0x3e], al
movsxd rax, edx
test al, spl
cmp rax, r8
jmp 0x1404d4fdc
jl 0x1404d4fae
mov ebx, dword [rbp - 0x65]
cmp r14b, bpl
stc
cmp r14b, 0xec
add ebx, r8d
jmp 0x1404d50ad
mov r9d, r11d
test rdx, rdx
jmp 0x1404d5000
jle 0x1404d50a5
mov r13, qword [rbp - 0x11]
xor r10d, 0x5664474c
movsx r10w, dl
movsxd r10, r10d
mov r8, r11
movsx rcx, di
mov r10, r13
and r13d, 0x3f
test r9b, 0x4c
sar r10, 6
lea r11, [r13*8]
clc
cmp r15b, r14b
bsf ecx, r11d
add r11, r13
mov rcx, 0x62784e13
mov al, byte [r8 + rdi]
inc r9d
ror cx, 0x71
xor cl, r15b
rol rcx, 0x2d
mov rcx, qword [r15 + r10*8 + 0xba940]
jmp 0x1404d506b
add rcx, r8
jmp 0x1404d5073
inc r8
cmp bpl, 0x77
cmp rbp, rbp
mov byte [rcx + r11*8 + 0x3e], al
clc
movsxd rax, r9d
cmc
jmp 0x1404d508c
cmp rax, rdx
jmp 0x1404d5094
jl 0x1404d5049
sub r11d, r11d
add cx, r10w
adc cl, r10b
stc
add ebx, edx
sal cx, cl
cmc
mov cl, 0xb8
mov dword [rbp - 0x65], ebx
cmp byte [rbp - 0x71], r11b
movsx rcx, r13w
movsx cx, bh
bswap rcx
mov ecx, dword [rsp + 0x40]
jmp 0x1404d50c8
jmp 0x1404d515c
mov al, byte [rdi]
mov r8b, 0xeb
movsx cx, dh
movsx r8d, r10w
lea r8, [0x140000000]
movsx ecx, r11w
xchg rcx, rcx
mov rcx, qword [r8 + r12*8 + 0xba940]
inc ebx
stc
test r15w, 0x145b
cmp dl, r11b
mov dword [rbp - 0x65], ebx
mov byte [rcx + r14*8 + 0x3e], al
mov rax, qword [r8 + r12*8 + 0xba940]
or byte [rax + r14*8 + 0x3d], 4
clc
test rbx, 0x65857f65
cmp byte [rbp - 0x71], dl
jmp 0x1404d5122
jmp 0x1404d50bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
sbb cx, 0x5309
rcr ecx, 0xd2
mov ecx, dword [rsp + 0x40]
stc
cmc
cmp r10b, r14b
cmp byte [rbp - 0x71], 0
jmp 0x1404d515c
mov ecx, dword [rsp + 0x40]
test r13b, 0x50
stc
cmp byte [rbp - 0x71], r11b
jmp 0x1404d515c
je 0x1404d5176
mov rax, qword [rsp + 0x50]
test r12w, r11w
and dword [rax + 0x3a8], 0xfffffffd
shr ah, 0x29
clc
mov rax, qword [rbp - 9]
movsd xmm0, qword [rbp - 0x69]
cmc
test r10, rsi
movsd qword [rax], xmm0
test al, 0x65
cmp r9d, 0x15c2322
stc
mov dword [rax + 8], ecx
jmp 0x1404d519c
mov rcx, qword [rbp + 0x17]
clc
test r11w, r11w
jmp 0x1404d51aa
xor rcx, rsp
call fcn.140498899
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
cmovnp rdi, r8
bswap r12
pop r15
xchg r14b, sil
movsx ebp, bx
mov di, 0x7996
pop r14
jmp 0x1404d51e1
pop r13
pop r12
mov dil, cl
pop rdi
pop rsi
pop rbp
jmp 0x1404d51f0
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
shr rcx, 0x6d
mov ecx, dword [rsp + 0x40]
test r13w, 0x20db
cmc
cmp byte [rbp - 0x71], bl
jmp 0x1404d5211
jmp 0x1404d515c