Function at 0x180140759
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
sal bpl, cl
btc rbp, rax
shld rbp, r9, 0x9c
push rsi
xor si, 0x48cf
sal sil, 0x9b
push rdi
not si
shl si, 0xff
movzx esi, r12w
push r12
adc r12d, 0x2a005edc
rol r12w, 0xbc
push r13
xchg r12, rsi
adc esi, 0x7cb86124
xadd r13, r13
push r14
or r12, r8
btc r12w, di
push r15
lea rbp, [rax - 0x57]
xchg si, r12w
or r14d, 0x3bcb7aa5
bt r13d, r11d
sub rsp, 0xd0
mov qword [rbp - 9], 0xfffffffffffffffe
bt r13w, ax
mov qword [rax + 8], rbx
mov rax, qword [0x180085010]
jmp 0x1801407df
xor rax, rsp
xchg bl, r13b
clc
shrd r13w, dx, 0x5e
mov qword [rbp + 0x17], rax
mov rsi, r8
cmovbe ax, dx
sal al, cl
mov qword [rbp - 0x41], r8
movsxd r14, edx
mov rbx, rcx
rcr cl, cl
mov rax, qword [rbp + 0x7f]
and r12, 0xc4364b2
dec r12b
movsxd r15, ebp
mov qword [rbp - 0x59], rax
rcl r12d, cl
mov rax, r14
mov cl, 1
shl r12b, cl
btr r15w, 0xc1
mov r13, r14
sar r13, 6
mov qword [rbp - 0x39], r13
lea rcx, [0x180000000]
rcr r12w, cl
shl r15w, cl
and eax, 0x3f
jmp 0x18014084d
lea r15, [rax + rax*8]
mov rax, qword [rcx + r13*8 + 0x87a10]
movsx r12, ax
jmp 0x180140862
mov rax, qword [rax + r15*8 + 0x28]
adc r12d, r13d
mov qword [rbp - 0x19], rax
rcl r12b, cl
xor r12, rsi
bsf r12, rdi
mov r12d, r9d
test r13w, 0x33c5
add r12, r8
mov qword [rbp - 0x61], r12
jmp 0x18014088d
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov dword [rbp - 0x49], eax
movsx r10, dx
rcl r10b, 0x59
xor edi, edi
xor r10d, r14d
bt r10d, 8
jmp 0x1801408ad
mov r10, qword [rbp - 0x59]
cmc
cmp byte [r10 + 0x28], dil
jne 0x1801408d1
mov rcx, r10
jmp 0x1801408c4
call fcn.180136266
mov r10, qword [rbp - 0x59]
rcr cx, 0xcc
mov rcx, qword [r10 + 0x18]
test r8d, 0x1b63fca
mov ecx, dword [rcx + 0xc]
mov dword [rbp - 0x45], ecx
cmc
xor eax, eax
jmp 0x1801408ea
mov qword [rbx], rax
test cl, r9b
mov dword [rbx + 8], eax
cmp qword [rbp - 0x41], r12
jmp 0x1801408fc
jae 0x18014101f
mov r9, r14
xor al, r14b
sar r9, 6
sar r11b, 0x73
sal r12, 0xe4
mov qword [rbp - 0x11], r9
mov r12w, r12w
and dx, 0x2cc6
mov edx, edi
movsx r12d, bp
rol al, 0x16
sar al, 0xd9
mov al, byte [rsi]
rcl r11w, cl
shl r11b, 0xf
sub r11b, 0xb4
mov byte [rbp - 0x71], al
not r11w
xadd r12b, r12b
mov dword [rbp - 0x6d], edi
and r11w, 0x13a6
shl r11d, cl
mov r12d, 1
cmovl r11, r13
add r11b, dl
lea r11, [0x180000000]
cmp ecx, 0xfde9
jmp 0x180140971
jne 0x180140c84
mov edx, edi
sal r14b, cl
mov r14, rdi
movzx rcx, bp
btc rcx, 3
ror cl, cl
lea rcx, [r15*8 + 0x3e]
stc
clc
add rcx, qword [r11 + r9*8 + 0x87a10]
test rbx, rsi
cmp byte [rcx], dil
jmp 0x1801409a7
je 0x1801409d2
inc edx
jmp 0x1801409b4
inc r14
jmp 0x1801409bc
inc rcx
cmp bpl, spl
clc
cmp r14, 5
jmp 0x1801409cc
jl 0x18014099f
test r14, r14
jle 0x180140bb3
mov rax, qword [r11 + r13*8 + 0x87a10]
inc ch
movsx r12, bx
movzx r12w, bpl
movzx ecx, byte [rax + r15*8 + 0x3e]
movsx r12d, byte [rcx + r11 + 0x858e0]
cmovae ax, sp
inc r12d
movzx r8, r9w
test bpl, 0xee
xor al, 0xf7
mov eax, r12d
rcr r8b, 0x79
sub eax, edx
shr r8w, cl
btc r8w, 0xca
movsx r8d, r11w
mov dword [rbp - 0x51], eax
mov rdx, qword [rbp - 0x61]
sub rdx, rsi
sal r8b, 0xcd
movsxd r8, eax
cmp r8, rdx
jmp 0x180140a3e
jg 0x180140f25
mov rcx, rdi
shr rdx, 0xc9
add rdx, 0x2ab40586
sbb al, bpl
lea rdx, [r15*8 + 0x3e]
sal al, 0x9c
add rdx, qword [r11 + r9*8 + 0x87a10]
jmp 0x180140a6d
mov al, byte [rdx]
jmp 0x180140a74
mov byte [rbp + rcx - 1], al
jmp 0x180140a7d
inc rcx
jmp 0x180140a85
inc rdx
cmp rcx, r14
jl 0x180140a6d
test r8, r8
jle 0x180140ac3
lea rcx, [rbp - 1]
xchg edx, edx
add rcx, r14
mov rdx, rsi
jmp 0x180140aab
call fcn.180132c20
mov r10, qword [rbp - 0x59]
lea r11, [0x180000000]
add cl, sil
xchg dl, dl
sar cx, cl
mov rdx, rdi
sbb cx, r13w
mov rcx, qword [r11 + r13*8 + 0x87a10]
test r8, 0x5e73721b
cmp rcx, 0x6cf71163
add rcx, rdx
jmp 0x180140ae8
mov byte [rcx + r15*8 + 0x3e], dil
jmp 0x180140af2
inc rdx
cmp rdx, r14
jmp 0x180140afd
jl 0x180140aca
mov qword [rbp - 0x31], rdi
lea rax, [rbp - 1]
add cx, 0x1a19
xadd r9b, r9b
btr r9, rdx
mov qword [rbp - 0x29], rax
sub ax, bp
cdqe
xchg cl, r9b
mov eax, edi
cmp r12d, 4
cmova ecx, r12d
sete al
movsx r12d, r15w
movzx r8d, r14w
inc eax
mov r12d, eax
cqo
not r9w
cmovg r8d, r11d
mov r8d, eax
movsxd rcx, edi
cwd
xchg r9b, cl
mov qword [rsp + 0x20], r10
seta dl
lea r9, [rbp - 0x31]
movsxd rdx, r9d
jmp 0x180140b69
lea rdx, [rbp - 0x29]
movsx rcx, r14w
jmp 0x180140b7a
lea rcx, [rbp - 0x6d]
jmp 0x180140b83
call fcn.180142403
cmp rax, 0xffffffffffffffff
je 0x18014101f
mov eax, dword [rbp - 0x51]
setl ch
dec eax
bsf ecx, r13d
movsxd rcx, eax
cmp rdi, 0x15a1422c
test dil, cl
add rsi, rcx
jmp 0x180140d80
movzx eax, byte [rsi]
jmp 0x180140bbe
movsx r13, byte [rax + r11 + 0x858e0]
rcl r8w, 0x24
jmp 0x180140bd4
lea ecx, [r13 + 1]
mov r8, qword [rbp - 0x61]
sub r8, rsi
rcr al, 0xf4
movsxd rax, ecx
clc
cmp rax, r8
jmp 0x180140bee
jg 0x180140f7c
mov qword [rbp - 0x51], rdi
bsr r9w, si
neg r9d
mov qword [rbp - 0x21], rsi
mov eax, edi
add al, bl
xadd r14b, dl
cmp ecx, 4
cmovnp r9w, r14w
movsxd rdx, r12d
sete al
not r9b
inc eax
cmove r8w, r10w
cdq
mov cl, 0x34
mov r14d, eax
mov r8d, eax
mov qword [rsp + 0x20], r10
lea r9, [rbp - 0x51]
movsx rdx, si
mov dl, r14b
movzx rdx, r9w
lea rdx, [rbp - 0x21]
movsx ecx, r10w
mov cx, 0x719f
lea rcx, [rbp - 0x6d]
call fcn.180142403
cmp rax, 0xffffffffffffffff
jmp 0x180140c5f
je 0x18014101f
add rsi, r13
movsx r13, di
setne r13b
mov r13b, 0xe1
mov r12d, r14d
mov r13, qword [rbp - 0x39]
jmp 0x180140c7f
jmp 0x180140d80
mov r8, qword [r11 + r13*8 + 0x87a10]
mov cl, byte [r8 + r15*8 + 0x3d]
clc
test cl, 4
jmp 0x180140c9a
je 0x180140ce1
mov al, byte [r8 + r15*8 + 0x3e]
mov byte [rbp + 7], al
rcl dl, cl
mov al, byte [rsi]
cmc
ror dl, cl
mov byte [rbp + 8], al
mov dx, 0x4efd
and cl, 0xfb
mov dh, 0x33
mov byte [r8 + r15*8 + 0x3d], cl
mov dl, r14b
not r8w
mov r8d, 2
jmp 0x180140cd3
lea rdx, [rbp + 7]
jmp 0x180140cdc
jmp 0x180140d67
movzx r9d, byte [rsi]
movzx ecx, sp
bt eax, r12d
rcl rax, 0x54
mov rax, qword [r10 + 0x18]
cmovbe cx, r8w
mov rcx, qword [rax]
cmp word [rcx + r9*2], di
jmp 0x180140d06
jge 0x180140d53
lea r14, [rsi + 1]
cmp r14, qword [rbp - 0x61]
jae 0x180140fd4
mov r9, r10
cmovns ecx, ecx
cwd
mov r8d, 2
cwd
xchg dx, cx
mov rdx, rsi
cmove rcx, r10
lea rcx, [rbp - 0x6d]
call fcn.18013d050
cmp eax, 0xffffffff
je 0x18014101f
mov rsi, r14
jmp 0x180140d4e
jmp 0x180140d80
mov r8, r12
seta r9b
cdq
mov rdx, rsi
not ecx
movsx r9d, r15w
mov r9b, r11b
mov r9, r10
mov cx, 0x271e
lea rcx, [rbp - 0x6d]
call fcn.18013d050
cmp eax, 0xffffffff
je 0x18014101f
inc rsi
mov qword [rsp + 0x38], rdi
adc r8w, 0xf70
and eax, esi
sbb eax, r9d
mov qword [rsp + 0x30], rdi
ror cx, 0xc5
bsr r9w, r9w
or al, spl
mov dword [rsp + 0x28], 5
test r13b, 0xc4
lea rax, [rbp + 0xf]
rol ch, cl
movsx r8, ax
mov qword [rsp + 0x20], rax
rol r8d, 0xdf
shr rcx, cl
mov r9d, r12d
bswap cx
xor r8, r14
cmc
lea r8, [rbp - 0x6d]
rol cl, cl
xor edx, edx
movsx cx, bh
mov ecx, dword [rbp - 0x49]
call fcn.18013a97f
mov r14d, eax
test eax, eax
jmp 0x180140dee
je 0x18014101f
mov qword [rsp + 0x20], rdi
cmovb r8w, r12w
movzx ecx, r8w
cqo
lea r9, [rbp - 0x69]
movzx r12d, r15w
mov r8d, eax
movzx rcx, r12w
mov cl, r8b
lea rdx, [rbp + 0xf]
not r12w
xchg ch, cl
mov r12w, si
mov r12, qword [rbp - 0x19]
not cx
mov ch, 0x1b
jmp 0x180140e33
mov rcx, r12
jmp 0x180140e3b
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x180140e48
je 0x180141017
mov edx, esi
sub edx, dword [rbp - 0x41]
stc
jmp 0x180140e59
add edx, dword [rbx + 8]
mov dword [rbx + 4], edx
jmp 0x180140e65
cmp dword [rbp - 0x69], r14d
jb 0x18014101f
cmp byte [rbp - 0x71], 0xa
jne 0x180140efa
mov eax, 0xd
mov cl, 0x50
bswap r8w
mov word [rbp - 0x71], ax
movsx edx, r8w
movsxd r8, esi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x69]
bswap ecx
not rcx
movzx r8w, cl
lea r8d, [rax - 0xc]
movzx dx, r13b
cqo
movsxd rdx, esp
lea rdx, [rbp - 0x71]
cmovp rcx, rdi
mov rcx, r12
jmp 0x180140ec0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180141017
cmp dword [rbp - 0x69], 1
jb 0x18014101f
inc dword [rbx + 8]
setg dl
movsxd rdx, ebx
inc dword [rbx + 4]
inc dx
shld edx, r12d, 0x46
or rdx, rcx
mov edx, dword [rbx + 4]
clc
cmp sil, cl
test r10w, cx
cmp rsi, qword [rbp - 0x61]
jae 0x18014101f
mov r10, qword [rbp - 0x59]
setbe r9b
movzx r9w, bl
mov r9, qword [rbp - 0x11]
setnp cl
mov ecx, dword [rbp - 0x45]
jmp 0x180140f20
jmp 0x18014092d
test rdx, rdx
jle 0x180140f74
sub rsi, r14
mov rcx, qword [r11 + r13*8 + 0x87a10]
xor al, 0x20
rcr al, 0xc0
add rcx, r14
mov al, byte [rsi + r14]
mov byte [rcx + r15*8 + 0x3e], al
not al
lahf
movsx eax, bp
inc edi
jmp 0x180140f5a
inc r14
sar rax, cl
movsxd rax, edi
test rax, rsp
cmp rax, rdx
jmp 0x180140f6e
jl 0x180140f31
add dword [rbx + 4], edx
jmp 0x18014101f
test r8, r8
jmp 0x180140f84
jle 0x180140fcb
mov rdx, rdi
mov r9, qword [rbp - 0x39]
stc
mov rcx, qword [r11 + r9*8 + 0x87a10]
stc
add rcx, rdx
mov al, byte [rdx + rsi]
jmp 0x180140fa6
mov byte [rcx + r15*8 + 0x3e], al
inc edi
movzx eax, dx
inc rdx
dec ax
sub ax, 0x6bfa
movsxd rax, edi
cmp rax, r8
jmp 0x180140fc5
jl 0x180140f92
add dword [rbx + 4], r8d
jmp 0x18014101f
mov byte [r8 + r15*8 + 0x3e], r9b
movsx ax, r11b
cmova ax, r11w
mov rax, qword [r11 + r13*8 + 0x87a10]
test r12w, 0x120f
or byte [rax + r15*8 + 0x3d], 4
nop
movzx rax, bp
jmp 0x180141002
lea eax, [rdx + 1]
jmp 0x18014100a
mov dword [rbx + 4], eax
jmp 0x180141012
jmp 0x18014101f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rax, rbx
xor rcx, r9
sar ch, 0xc3
mov rcx, qword [rbp + 0x17]
jmp 0x180141038
xor rcx, rsp
jmp 0x180141040
call fcn.18012808d
mov rbx, qword [rsp + 0x110]
test r9b, bpl
sub dil, 0x59
add rsp, 0xd0
movzx r12d, r13w
pop r15
seto r13b
movsx si, bpl
pop r14
xchg r13b, r13b
mov rdi, 0x42476682
movsx di, r9b
pop r13
setge r12b
movzx bp, al
mov r12w, di
pop r12
movsx rbp, ax
pop rdi
xchg sil, bpl
movsx rbp, r12w
movsx bp, dl
pop rsi
not bp
xchg bpl, bpl
pop rbp
ret