Function at 0x180134c3f
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
jmp 0x180134c72
push rbp
bt rbp, r14
neg bp
shl bp, cl
push rsi
bsf rbp, r11
and sil, bpl
setbe bpl
push rdi
ror si, 0xfa
add sil, 0x2f
sar si, cl
push r12
bt si, 0x91
stc
xor bpl, 0x87
push r13
sal sil, cl
push r14
shl bpl, cl
push r15
test r14b, 0xcc
lea rbp, [rax - 0x57]
sub rsp, 0xd0
movzx r15, cx
sub r13d, ebx
rcl si, cl
mov qword [rbp - 9], 0xfffffffffffffffe
or r14b, dil
shrd r13w, r13w, 0x78
not r14d
mov qword [rax + 8], rbx
mov rax, qword [0x180080010]
rcr r14b, 0x34
or r12, 0x62b11f45
rcl r14, cl
xor rax, rsp
bt r13d, 0x8b
bts r15d, eax
mov qword [rbp + 0x17], rax
mov rsi, r8
mov qword [rbp - 0x41], r8
cmc
ror bx, cl
rcr ebx, cl
movsxd r14, edx
mov rbx, rcx
cmp r12b, 0xec
cmovnp cx, si
movsxd r13, ecx
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x59], rax
bts cx, r10w
mov rax, r14
mov r13, r14
sar r13, 6
btr r15w, r8w
mov qword [rbp - 0x39], r13
lea rcx, [0x180000000]
and eax, 0x3f
movsx r12, r11w
lea r15, [rax + rax*8]
sete ah
movzx r12w, dil
and al, 0x9e
mov rax, qword [rcx + r13*8 + 0x82980]
test ecx, 0x558e539a
mov rax, qword [rax + r15*8 + 0x28]
rcr r12w, cl
shl r12b, 0xf5
mov qword [rbp - 0x19], rax
sbb r12b, 0x8e
btc r12d, ebx
mov r12d, r9d
test cl, r13b
clc
add r12, r8
mov qword [rbp - 0x61], r12
jmp 0x180134d97
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov dword [rbp - 0x49], eax
xor edi, edi
rol r10b, 0xd4
sar r10w, 0xbb
mov r10, qword [rbp - 0x59]
jmp 0x180134db4
cmp byte [r10 + 0x28], dil
jmp 0x180134dbd
jne 0x180134dd6
mov rcx, r10
jmp 0x180134dcb
call fcn.18012a622
mov r10, qword [rbp - 0x59]
xor ch, al
mov rcx, qword [r10 + 0x18]
mov ecx, dword [rcx + 0xc]
cmp ax, r10w
mov dword [rbp - 0x45], ecx
xor eax, eax
mov qword [rbx], rax
clc
test spl, sil
mov dword [rbx + 8], eax
cmp r14d, r14d
stc
cmp qword [rbp - 0x41], r12
jae 0x18013553b
mov r9, r14
inc r12b
sar r9, 6
mov qword [rbp - 0x11], r9
movzx edx, r15w
movzx r11w, r9b
mov edx, edi
test r15w, r8w
sbb r11d, 0x4f9265bf
mov al, byte [rsi]
movsx r12d, r15w
bsr r11, rbx
test r9b, bpl
mov byte [rbp - 0x71], al
xchg r11w, r12w
mov dword [rbp - 0x6d], edi
inc r12d
cmovns r11w, r13w
mov r12d, 1
lea r11, [0x180000000]
test rsp, rsi
cmp ecx, 0xfde9
jmp 0x180134e5c
jne 0x180135160
mov edx, edi
neg cx
add cl, 0xfa
mov r14, rdi
ror cl, cl
lea rcx, [r15*8 + 0x3e]
add rcx, qword [r11 + r9*8 + 0x82980]
cmc
cmp byte [rcx], dil
je 0x180134ead
inc edx
jmp 0x180134e90
inc r14
jmp 0x180134e98
inc rcx
cmp dil, bpl
cmp r14, 5
jmp 0x180134ea7
jl 0x180134e80
test r14, r14
jmp 0x180134eb5
jle 0x180135090
mov rax, qword [r11 + r13*8 + 0x82980]
dec r8b
sets cl
movzx ecx, byte [rax + r15*8 + 0x3e]
movzx r8w, dl
movzx rax, bx
inc r12b
movsx r12d, byte [rcx + r11 + 0x808e0]
inc r12d
movzx r8, r12w
jmp 0x180134ef6
mov eax, r12d
sub eax, edx
adc dh, 0x33
movzx r8d, di
sal dx, 0xa0
mov dword [rbp - 0x51], eax
cwd
test ch, ch
shld r8w, si, 0x13
mov rdx, qword [rbp - 0x61]
movzx r8w, r13b
not r8d
sub rdx, rsi
bswap r8d
rol r8w, cl
shl r8b, 0x96
movsxd r8, eax
cmp r8b, bl
test r8b, r13b
cmp r8, rdx
jmp 0x180134f3e
jg 0x180135431
mov rcx, rdi
lea rdx, [r15*8 + 0x3e]
dec al
add rdx, qword [r11 + r9*8 + 0x82980]
mov al, byte [rdx]
jmp 0x180134f60
mov byte [rbp + rcx - 1], al
jmp 0x180134f69
inc rcx
inc rdx
cmp cl, r11b
cmp rcx, r14
jmp 0x180134f7a
jl 0x180134f59
test r8, r8
jle 0x180134fc6
lea rcx, [rbp - 1]
clc
add dl, r14b
add rcx, r14
cqo
movsx rdx, r9w
mov rdx, rsi
jmp 0x180134fa2
call fcn.180126f7e
mov r10, qword [rbp - 0x59]
test bl, r9b
shl cx, 0xe2
stc
lea r11, [0x180000000]
jmp 0x180134fc6
mov rdx, rdi
mov cx, 0x2042
neg rcx
mov rcx, qword [r11 + r13*8 + 0x82980]
add rcx, rdx
mov byte [rcx + r15*8 + 0x3e], dil
jmp 0x180134fe5
inc rdx
cmp rdx, r14
jmp 0x180134ff0
jl 0x180134fd0
mov qword [rbp - 0x31], rdi
cmp bpl, r15b
lea rax, [rbp - 1]
test r12w, dx
mov qword [rbp - 0x29], rax
inc r8b
sbb eax, ebx
movzx r9, r15w
mov eax, edi
cmp r12d, 4
cmovb cx, bx
cwd
sete al
setle ch
inc eax
cqo
mov r12d, eax
mov cx, 0x30c1
movzx dx, r14b
mov r8d, ecx
mov r8d, eax
mov qword [rsp + 0x20], r10
not rdx
jmp 0x180135047
lea r9, [rbp - 0x31]
lea rdx, [rbp - 0x29]
movsx cx, dil
jmp 0x180135059
lea rcx, [rbp - 0x6d]
jmp 0x180135062
call fcn.180136928
cmp rax, 0xffffffffffffffff
jmp 0x180135070
je 0x18013553b
mov eax, dword [rbp - 0x51]
setns ch
dec eax
movsxd rcx, eax
test bh, ah
add rsi, rcx
jmp 0x18013508b
jmp 0x18013528b
movzx eax, byte [rsi]
bt cx, r10w
sbb r8w, r10w
btr r13w, bx
movsx r13, byte [rax + r11 + 0x808e0]
rol r8b, 0xcc
ror ax, 0x31
lea ecx, [r13 + 1]
btr r8, 0x2d
mov ah, ah
test bl, bpl
mov r8, qword [rbp - 0x61]
sub r8, rsi
bswap rax
movsxd rax, ecx
stc
cmp ah, 7
cmp rax, r8
jg 0x180135494
mov qword [rbp - 0x51], rdi
sar ax, 0xea
dec dh
sal r8d, cl
mov qword [rbp - 0x21], rsi
cwde
rol dl, 0x44
mov eax, edi
cqo
btr r14d, eax
and r14b, 0xc3
cmp ecx, 4
sete al
mov r14d, r8d
inc eax
movsxd rcx, r10d
cqo
mov r14d, eax
movsx r9w, r8b
mov dl, r10b
bswap r9d
mov r8d, eax
jmp 0x180135121
mov qword [rsp + 0x20], r10
setae dl
lea r9, [rbp - 0x51]
lea rdx, [rbp - 0x21]
movsx ecx, dx
lea rcx, [rbp - 0x6d]
jmp 0x18013513d
call fcn.180136928
cmp rax, 0xffffffffffffffff
jmp 0x18013514b
je 0x18013553b
add rsi, r13
mov r12d, r14d
mov r13, qword [rbp - 0x39]
jmp 0x18013528b
mov r8, qword [r11 + r13*8 + 0x82980]
mov cl, byte [r8 + r15*8 + 0x3d]
cmp r11b, al
test r15b, r12b
test r13d, 0x6f04102
test cl, 4
jmp 0x180135182
je 0x1801351d2
mov al, byte [r8 + r15*8 + 0x3e]
neg dh
mov dl, r9b
sal dx, 0x9f
mov byte [rbp + 7], al
mov al, byte [rsi]
clc
shr dl, 0x80
mov byte [rbp + 8], al
and cl, 0xfb
mov rdx, r11
movsx dx, sil
cdq
mov byte [r8 + r15*8 + 0x3d], cl
mov r8d, 2
cmova rdx, r9
mov rdx, 0x7a994165
lea rdx, [rbp + 7]
jmp 0x1801351cd
jmp 0x180135268
movzx r9d, byte [rsi]
xadd al, ah
bswap cx
mov rax, qword [r10 + 0x18]
bts rcx, rcx
cmovb ecx, r8d
rol ch, cl
mov rcx, qword [rax]
stc
test sp, si
cmc
cmp word [rcx + r9*2], di
jmp 0x1801351fc
jge 0x180135253
lea r14, [rsi + 1]
cmp r14, qword [rbp - 0x61]
jae 0x1801354fd
mov r9, r10
mov r8d, 2
mov dh, 0x14
movzx rcx, bx
cqo
mov rdx, rsi
mov ch, 0xc7
not cl
lea rcx, [rbp - 0x6d]
jmp 0x180135233
call fcn.18013142e
cmp eax, 0xffffffff
jmp 0x180135240
je 0x18013553b
mov rsi, r14
jmp 0x18013524e
jmp 0x18013528b
mov r8, r12
movzx r9d, bx
movzx dx, r12b
mov rdx, rsi
xchg rcx, rcx
bswap r9
mov r9, r10
movsx rcx, r11w
lea rcx, [rbp - 0x6d]
jmp 0x180135278
call fcn.18013142e
cmp eax, 0xffffffff
jmp 0x180135285
je 0x18013553b
inc rsi
lahf
xor r9w, cx
mov qword [rsp + 0x38], rdi
shl cl, 0x85
cmp r11w, 0x5f32
rcl r9b, 0xb9
mov qword [rsp + 0x30], rdi
bt ecx, r11d
btc rax, 0x92
shr ax, 0xcf
mov dword [rsp + 0x28], 5
btc r8d, edi
jmp 0x1801352cc
lea rax, [rbp + 0xf]
adc r8b, 0xb3
neg r8w
clc
mov qword [rsp + 0x20], rax
mov r8b, 0x48
sal ecx, cl
mov r9d, r12d
cmp ch, 0x9d
cmovae ecx, edi
lea r8, [rbp - 0x6d]
mov ch, 0x90
xor edx, edx
mov ecx, dword [rbp - 0x49]
call fcn.18012ecfc
mov r14d, eax
jmp 0x180135305
test eax, eax
jmp 0x18013530c
je 0x18013553b
mov qword [rsp + 0x20], rdi
cdq
cmovl cx, cx
lea r9, [rbp - 0x69]
cqo
mov r12b, 0xd7
mov r8d, eax
lea rdx, [rbp + 0xf]
bswap cx
xchg r12b, r12b
mov r12, qword [rbp - 0x19]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18013552e
mov edx, esi
sub edx, dword [rbp - 0x41]
test r11b, 0xbf
add edx, dword [rbx + 8]
mov dword [rbx + 4], edx
stc
cmc
cmp dword [rbp - 0x69], r14d
jb 0x18013553b
cmp byte [rbp - 0x71], 0xa
jmp 0x18013536b
jne 0x1801353fe
mov eax, 0xd
xchg r9w, cx
movzx edx, bp
movsx ecx, r14w
mov word [rbp - 0x71], ax
movzx r9, r14w
movsx r8w, r13b
cmovg rdx, r12
mov qword [rsp + 0x20], rdi
movzx r8, r8w
movsxd r9, eax
xchg r9b, cl
lea r9, [rbp - 0x69]
lea r8d, [rax - 0xc]
jmp 0x1801353b0
lea rdx, [rbp - 0x71]
mov cx, r8w
mov rcx, r12
jmp 0x1801353c0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1801353cd
je 0x18013552e
cmp dword [rbp - 0x69], 1
jmp 0x1801353dc
jb 0x18013553b
inc dword [rbx + 8]
movsx rdx, r14w
inc dword [rbx + 4]
movzx rdx, bp
sub dx, r15w
not rdx
mov edx, dword [rbx + 4]
cmc
cmp dl, 0xab
cmp rsi, qword [rbp - 0x61]
jmp 0x180135407
jae 0x18013553b
mov r10, qword [rbp - 0x59]
movsx r9d, di
mov r9, qword [rbp - 0x11]
jmp 0x180135424
mov ecx, dword [rbp - 0x45]
jmp 0x18013542c
jmp 0x180134e22
test rdx, rdx
jle 0x180135487
sub rsi, r14
mov rcx, qword [r11 + r13*8 + 0x82980]
add rcx, r14
inc al
mov al, byte [rsi + r14]
mov byte [rcx + r15*8 + 0x3e], al
bswap rax
xchg ah, ah
seta al
inc edi
movsx eax, r11w
movsx ax, r12b
inc r14
movsx rax, r13w
and al, spl
shr ah, 0x99
movsxd rax, edi
cmp r15d, eax
cmp rax, rdx
jmp 0x180135481
jl 0x18013543d
add dword [rbx + 4], edx
jmp 0x18013548f
jmp 0x18013553b
test r8, r8
jmp 0x18013549c
jle 0x1801354ef
mov rdx, rdi
or al, r9b
mov r9, qword [rbp - 0x39]
setp al
rcl al, cl
neg cx
mov rcx, qword [r11 + r9*8 + 0x82980]
add rcx, rdx
mov al, 0x45
mov al, byte [rdx + rsi]
mov byte [rcx + r15*8 + 0x3e], al
inc edi
not ah
mov ah, 0x18
inc rdx
cmovne rax, r8
xchg ah, ah
movzx ax, r9b
movsxd rax, edi
cmp rax, r8
jmp 0x1801354e9
jl 0x1801354b4
add dword [rbx + 4], r8d
jmp 0x1801354f8
jmp 0x18013553b
mov byte [r8 + r15*8 + 0x3e], r9b
bts ax, bp
mov rax, qword [r11 + r13*8 + 0x82980]
cmc
cmp sp, r12w
or byte [rax + r15*8 + 0x3d], 4
lea eax, [rdx + 1]
jmp 0x180135521
mov dword [rbx + 4], eax
jmp 0x180135529
jmp 0x18013553b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
bts cx, r11w
mov rax, rbx
mov rcx, qword [rbp + 0x17]
test esi, 0x7ce49ad
xor rcx, rsp
jmp 0x180135550
call fcn.18011c3a9
mov rbx, qword [rsp + 0x110]
test r14d, 0x19333fb0
cmovns r13w, r10w
shr bp, 0x92
add rsp, 0xd0
movsxd r14, eax
bswap r13
movsx rdi, r11w
pop r15
movzx rbp, bx
cmovs di, r13w
pop r14
mov si, 0x4c71
mov bpl, bpl
movsxd rsi, r13d
pop r13
xchg dil, dil
pop r12
movzx bp, r13b
pop rdi
movzx rbp, bp
pop rsi
pop rbp
jmp 0x1801355ad
ret