Function at 0x1801465b0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
cmp sil, r9b
jmp 0x1801465e3
push rbp
mov bpl, 0x69
and bpl, 0x54
push rsi
rcl rsi, 0xd4
push rdi
push r12
push r13
mov r13, r11
dec sil
and r12d, edi
push r14
movzx esi, ax
movzx r14, bp
xadd r14b, r13b
push r15
and r15b, r14b
cmc
mov bpl, r14b
lea rbp, [rax - 0x57]
bts r14w, cx
sub rsp, 0xd0
shr r12b, 0x71
mov qword [rbp - 9], 0xfffffffffffffffe
or r13b, r14b
sbb r12w, si
mov qword [rax + 8], rbx
cbw
shr si, cl
xadd sil, r14b
mov rax, qword [0x180086020]
bt r12d, 0x55
xor rax, rsp
rcr r12w, 0xf1
mov qword [rbp + 0x17], rax
movsxd rbx, ebx
mov rsi, r8
add r15b, 0x13
neg r13b
movzx rbx, r11w
mov qword [rbp - 0x41], r8
movsxd r14, edx
mov rbx, rcx
mov rax, qword [rbp + 0x7f]
sub ch, 0xb5
shr r13b, 0xec
xchg rcx, r13
mov qword [rbp - 0x59], rax
cmovnp r13d, ebp
movzx r13w, dil
mov cx, 0x4ba
mov rax, r14
bts r12w, r8w
mov cx, di
mov r13, r14
sar r13, 6
xadd ecx, ecx
mov qword [rbp - 0x39], r13
lea rcx, [0x180000000]
btr r12w, bp
adc r15w, si
or r12, 0x2b594870
and eax, 0x3f
rcr r12, cl
rcl r15b, 0x64
bt r15, rcx
lea r15, [rax + rax*8]
not r12w
mov rax, qword [rcx + r13*8 + 0x88750]
mov rax, qword [rax + r15*8 + 0x28]
mov r12d, 0x6fa44023
ror r12w, cl
mov qword [rbp - 0x19], rax
bsf r12w, r12w
bsr r12d, ebx
mov r12d, r9d
stc
test bpl, sil
clc
add r12, r8
jmp 0x180146710
mov qword [rbp - 0x61], r12
jmp 0x180146719
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov dword [rbp - 0x49], eax
or r10, r8
clc
cmc
sub edi, edi
stc
sub r10, r11
movzx r10d, si
mov r10, qword [rbp - 0x59]
cmp r12, rsp
cmp byte [r10 + 0x28], dil
jmp 0x180146741
jne 0x18014675b
mov rcx, r10
jmp 0x18014674f
call fcn.180122063
mov r10, qword [rbp - 0x59]
and ch, 0x86
mov rcx, qword [r10 + 0x18]
stc
mov ecx, dword [rcx + 0xc]
mov dword [rbp - 0x45], ecx
cmp r9b, 0xec
cmc
xor eax, eax
test dil, 0xfc
jmp 0x180146776
mov qword [rbx], rax
mov dword [rbx + 8], eax
stc
cmp qword [rbp - 0x41], r12
jae 0x180146e50
mov r9, r14
sar r11b, 8
shr dh, cl
adc r11b, dl
sar r9, 6
mov qword [rbp - 0x11], r9
mov edx, edi
mov al, r9b
mov al, byte [rsi]
mov byte [rbp - 0x71], al
btc r11d, ecx
movzx r12w, r8b
movsx r12w, r8b
mov dword [rbp - 0x6d], edi
mov r12d, 1
lea r11, [0x180000000]
cmp ecx, 0xfde9
jmp 0x1801467ce
jne 0x180146aae
mov edx, edi
rcl ch, 0xfa
bswap r14
btr cx, 4
mov r14, rdi
lea rcx, [r15*8 + 0x3e]
add rcx, qword [r11 + r9*8 + 0x88750]
cmp byte [rcx], dil
jmp 0x1801467fc
je 0x180146824
inc edx
jmp 0x180146809
inc r14
jmp 0x180146811
inc rcx
stc
cmp r14, 5
jmp 0x18014681e
jl 0x1801467f4
test r14, r14
jmp 0x18014682c
jle 0x1801469df
mov rax, qword [r11 + r13*8 + 0x88750]
movzx ecx, byte [rax + r15*8 + 0x3e]
movsx r12d, byte [rcx + r11 + 0x86ab0]
bswap ax
movsx r8w, r12b
inc r12d
mov eax, r12d
sub eax, edx
mov dword [rbp - 0x51], eax
movzx edx, dx
shrd dx, r8w, 0x44
xadd r8d, r8d
mov rdx, qword [rbp - 0x61]
xadd r8w, r8w
not r8d
add r8b, 0xc5
sub rdx, rsi
xchg r8b, r8b
or r8b, r8b
movsxd r8, eax
cmp r8, rdx
jmp 0x18014688d
jg 0x180146d50
mov rcx, rdi
mov dh, 0xc1
test r8b, r11b
lea rdx, [r15*8 + 0x3e]
cmc
add rdx, qword [r11 + r9*8 + 0x88750]
mov al, byte [rdx]
jmp 0x1801468b4
mov byte [rbp + rcx - 1], al
jmp 0x1801468bd
inc rcx
jmp 0x1801468c5
inc rdx
stc
cmp rcx, r14
jmp 0x1801468d1
jl 0x1801468ad
test r8, r8
jmp 0x1801468df
jle 0x180146915
lea rcx, [rbp - 1]
rol dx, 0x6b
shld dx, dx, 0x1a
add rcx, r14
mov rdx, rsi
jmp 0x1801468fd
call fcn.180118edf
mov r10, qword [rbp - 0x59]
shld edx, eax, 0x69
lea r11, [0x180000000]
movsx rcx, r8w
mov rdx, rdi
rol cx, 6
shl rcx, 0xc
movsx ecx, sp
mov rcx, qword [r11 + r13*8 + 0x88750]
cmp eax, 0x58d42b78
add rcx, rdx
jmp 0x180146938
mov byte [rcx + r15*8 + 0x3e], dil
inc rdx
test bp, r15w
cmp rdx, r14
jmp 0x18014694c
jl 0x180146923
mov qword [rbp - 0x31], rdi
sar cl, 0xa1
lea rax, [rbp - 1]
mov qword [rbp - 0x29], rax
sbb edx, 0x338322c8
xadd dl, ah
mov eax, edi
cmc
cmp r12d, 4
movsx r8w, dl
sete al
inc eax
movsx r8w, bl
jmp 0x180146985
mov r12d, eax
mov r8d, eax
movzx r9w, bl
not ecx
bswap cx
mov qword [rsp + 0x20], r10
lea r9, [rbp - 0x31]
mov ecx, esi
bswap dx
lea rdx, [rbp - 0x29]
movzx cx, r14b
lea rcx, [rbp - 0x6d]
jmp 0x1801469b5
call fcn.180143106
cmp rax, 0xffffffffffffffff
je 0x180146e50
mov eax, dword [rbp - 0x51]
sets ch
dec eax
dec cl
movsx cx, r14b
movsxd rcx, eax
cmc
add rsi, rcx
jmp 0x180146bc2
movzx eax, byte [rsi]
rcr r13b, 0x7e
rol ch, cl
sal cx, cl
movsx r13, byte [rax + r11 + 0x86ab0]
lea ecx, [r13 + 1]
mov r8, qword [rbp - 0x61]
sub r8, rsi
setle ah
btc ax, 0x3f
movsxd rax, ecx
stc
cmp rax, r8
jmp 0x180146a13
jg 0x180146db7
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x21], rsi
cqo
mov eax, edi
stc
setge al
cmp ecx, 4
movsx ecx, bp
movzx r9w, dil
mov dl, spl
sete al
inc eax
movzx rcx, r8w
cmovs r14w, dx
movzx r9d, ax
mov r14d, eax
movzx r8w, sil
movzx rcx, sp
mov r8d, eax
mov qword [rsp + 0x20], r10
movsx cx, spl
lea r9, [rbp - 0x51]
cwd
jmp 0x180146a6d
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x6d]
jmp 0x180146a7a
call fcn.180143106
cmp rax, 0xffffffffffffffff
jmp 0x180146a88
je 0x180146e50
add rsi, r13
movzx r13w, spl
movzx r13, sp
mov r13, rdx
mov r12d, r14d
mov r13, qword [rbp - 0x39]
jmp 0x180146aa9
jmp 0x180146bc2
mov r8, qword [r11 + r13*8 + 0x88750]
mov cl, byte [r8 + r15*8 + 0x3d]
test cl, 4
jmp 0x180146ac3
je 0x180146b14
mov al, byte [r8 + r15*8 + 0x3e]
mov dl, r13b
bts rdx, r9
stc
mov byte [rbp + 7], al
mov edx, 0x2e294a27
mov dl, r10b
movsx rdx, ax
mov al, byte [rsi]
inc dx
mov byte [rbp + 8], al
sal dx, cl
and cl, 0xfb
bswap rdx
jmp 0x180146afb
mov byte [r8 + r15*8 + 0x3d], cl
mov r8d, 2
lea rdx, [rbp + 7]
jmp 0x180146b0f
jmp 0x180146b97
movzx r9d, byte [rsi]
sal cx, 0xbf
setb cl
mov rax, qword [r10 + 0x18]
mov rcx, qword [rax]
cmp word [rcx + r9*2], di
jmp 0x180146b30
jge 0x180146b89
lea r14, [rsi + 1]
test r14b, dl
test ah, 0x7f
cmp r12b, 0x43
cmp r14, qword [rbp - 0x61]
jmp 0x180146b4d
jae 0x180146e10
mov r9, r10
movsxd rdx, ebx
mov r8d, 2
movsx edx, si
mov rdx, rsi
lea rcx, [rbp - 0x6d]
jmp 0x180146b6e
call fcn.1801321f7
cmp eax, 0xffffffff
je 0x180146e50
mov rsi, r14
jmp 0x180146b84
jmp 0x180146bc2
mov r8, r12
mov rdx, rsi
not r9w
movzx rcx, bp
mov r9, r10
movzx rcx, r9w
jmp 0x180146ba6
lea rcx, [rbp - 0x6d]
jmp 0x180146baf
call fcn.1801321f7
cmp eax, 0xffffffff
jmp 0x180146bbc
je 0x180146e50
inc rsi
ror ah, 0x2f
clc
add r8w, 0x6382
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
setae al
shr r8b, cl
add r8d, r15d
mov dword [rsp + 0x28], 5
lea rax, [rbp + 0xf]
bswap r8
btc r9d, 0xf1
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, [rbp - 0x6d]
shr ch, cl
shld cx, di, 0xd8
bsf cx, r10w
sub edx, edx
movsx rcx, ax
bswap ecx
movzx ecx, r11w
mov ecx, dword [rbp - 0x49]
jmp 0x180146c22
call fcn.180137abc
mov r14d, eax
test eax, eax
je 0x180146e50
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x69]
movsx ecx, dx
mov r8d, eax
bswap r12d
lea rdx, [rbp + 0xf]
mov r12w, di
movsx r12d, sp
mov r12, qword [rbp - 0x19]
movzx ecx, sp
xchg ecx, ecx
mov rcx, r12
jmp 0x180146c61
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x180146c6e
je 0x180146e43
mov edx, esi
cmp r10w, sp
jmp 0x180146c7f
sub edx, dword [rbp - 0x41]
add edx, dword [rbx + 8]
test r9b, 0x67
clc
stc
mov dword [rbx + 4], edx
clc
cmp r9b, 0x5c
cmp dword [rbp - 0x69], r14d
jmp 0x180146c9c
jb 0x180146e50
cmp byte [rbp - 0x71], 0xa
jmp 0x180146cab
jne 0x180146d2c
mov eax, 0xd
movzx r8w, r9b
mov r8w, cx
movsx ecx, r11w
mov word [rbp - 0x71], ax
mov qword [rsp + 0x20], rdi
movsx dx, r10b
movzx r9, r13w
jmp 0x180146cda
lea r9, [rbp - 0x69]
mov ecx, r12d
lea r8d, [rax - 0xc]
seta ch
lea rdx, [rbp - 0x71]
mov rcx, r12
jmp 0x180146cf4
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x180146d01
je 0x180146e43
cmp dword [rbp - 0x69], 1
jmp 0x180146d10
jb 0x180146e50
inc dword [rbx + 8]
xchg dx, dx
movsx rdx, si
bswap rdx
inc dword [rbx + 4]
mov edx, dword [rbx + 4]
cmp r9b, dil
cmp rsi, qword [rbp - 0x61]
jmp 0x180146d35
jae 0x180146e50
mov r10, qword [rbp - 0x59]
mov r9, qword [rbp - 0x11]
mov ecx, dword [rbp - 0x45]
jmp 0x180146d4b
jmp 0x1801467a0
test rdx, rdx
jmp 0x180146d58
jle 0x180146daf
sub rsi, r14
mov rcx, qword [r11 + r13*8 + 0x88750]
mov al, dl
add rcx, r14
mov al, bpl
mov al, byte [rsi + r14]
jmp 0x180146d7a
mov byte [rcx + r15*8 + 0x3e], al
movzx eax, r9w
cmovnp ax, r13w
inc edi
movzx rax, sp
cwde
movsxd rax, r9d
inc r14
sbb ah, 0x49
movsxd rax, edi
test sp, 0x4bdc
cmc
cmp rax, rdx
jmp 0x180146da9
jl 0x180146d61
add dword [rbx + 4], edx
jmp 0x180146e50
test r8, r8
jmp 0x180146dbf
jle 0x180146e02
mov rdx, rdi
not cx
ror r9, 0xfd
mov r9, qword [rbp - 0x39]
mov rcx, qword [r11 + r9*8 + 0x88750]
add rcx, rdx
mov al, byte [rdx + rsi]
jmp 0x180146de6
mov byte [rcx + r15*8 + 0x3e], al
inc edi
inc rdx
shld eax, ecx, 0x1e
clc
movsxd rax, edi
stc
cmp rax, r8
jl 0x180146dd3
add dword [rbx + 4], r8d
jmp 0x180146e0b
jmp 0x180146e50
mov byte [r8 + r15*8 + 0x3e], r9b
btc rax, r13
setb al
mov rax, qword [r11 + r13*8 + 0x88750]
or byte [rax + r15*8 + 0x3d], 4
movsx rax, r12w
lea eax, [rdx + 1]
jmp 0x180146e36
mov dword [rbx + 4], eax
jmp 0x180146e3e
jmp 0x180146e50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
bt rax, 0x3f
mov rax, rbx
shr cl, cl
dec cx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
jmp 0x180146e64
call fcn.1801152b0
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
bswap r12w
jmp 0x180146e85
pop r13
mov dil, 0xf7
movsx rbp, ax
movsx bp, sil
pop r12
jmp 0x180146e9e
pop rdi
jmp 0x180146eab
pop rsi
cmovo rbp, rdx
movsx rbp, cx
pop rbp
ret