Function at 0x1801646f2
Capabilities:
Encode data using base64
Write file on windows

Disassembly:
mov rax, rsp
cmc
test r12b, bpl
push rbp
sar rbp, cl
adc bpl, 0x9f
movsx bp, al
push rsi
bswap bp
btr ebp, 0x98
push rdi
bsf bp, r14w
shl rsi, cl
push r12
push r13
shl ebp, 0xdc
mov rbp, r14
adc r13d, r12d
push r14
rol r13b, cl
setp r14b
movzx bp, r12b
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xd0
xor r13w, si
mov qword [rbp - 9], 0xfffffffffffffffe
xchg r15b, r15b
cmp r13b, r14b
add r12w, 0x456a
mov qword [rax + 8], rbx
or ebx, 0x341264c3
test r14b, 0x99
shr r13d, 9
mov rax, qword [0x180094010]
cmove r14w, r8w
btc r14d, r14d
xor rax, rsp
sub sil, r15b
rol r12b, 8
test r12b, r13b
mov qword [rbp + 0x17], rax
btc bx, 0xa0
rcr r15b, cl
mov rsi, r8
sbb r13b, r11b
mov qword [rbp - 0x41], r8
movsxd r14, edx
cmove r13d, r13d
mov rbx, rcx
mov rax, qword [rbp + 0x7f]
sal cx, 0xb8
rcr cx, cl
mov qword [rbp - 0x59], rax
movsx r12w, r8b
movzx ecx, di
stc
mov rax, r14
add r12, r15
movzx ecx, dx
mov r13, r14
btr r15w, 3
sar r13, 6
movzx ecx, r14w
sar r12b, 0xe9
btr ecx, r14d
mov qword [rbp - 0x39], r13
bsr r15w, r11w
lea rcx, [0x180000000]
ror r12d, cl
and eax, 0x3f
xchg r12b, r15b
rol r12b, 0xcc
lea r15, [rax + rax*8]
setne ah
mov rax, qword [rcx + r13*8 + 0x96a40]
rcr r12w, cl
bt r12d, ecx
mov rax, qword [rax + r15*8 + 0x28]
movsxd r12, esp
add r12b, 0x46
movzx r12w, r15b
mov qword [rbp - 0x19], rax
mov r12d, r9d
add r12, r8
jmp 0x180164833
mov qword [rbp - 0x61], r12
jmp 0x18016483c
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov dword [rbp - 0x49], eax
btc r10w, 0x9b
test dx, r12w
movzx r10d, dx
xor edi, edi
sbb r10b, 0xa0
and r10b, 0xd6
mov r10, qword [rbp - 0x59]
test r13b, dil
cmp byte [r10 + 0x28], dil
jne 0x180164889
mov rcx, r10
jmp 0x180164876
call fcn.18015a2de
mov r10, qword [rbp - 0x59]
sbb cl, r9b
movzx rcx, sp
sar cl, 0x48
mov rcx, qword [r10 + 0x18]
test r8b, spl
mov ecx, dword [rcx + 0xc]
mov dword [rbp - 0x45], ecx
stc
sub eax, eax
mov qword [rbx], rax
jmp 0x1801648a1
mov dword [rbx + 8], eax
cmp dil, r11b
cmp qword [rbp - 0x41], r12
jmp 0x1801648b0
jae 0x180164f68
mov r9, r14
sar r9, 6
shl r11b, cl
mov qword [rbp - 0x11], r9
xchg al, al
add r11b, 0xf5
mov edx, edi
cmc
mov al, byte [rsi]
btc r12w, r14w
sbb r12d, 0x1a9b4306
and r12w, r15w
mov byte [rbp - 0x71], al
adc r12d, 0x445b3b3a
inc r12w
mov dword [rbp - 0x6d], edi
mov r12d, 1
lea r11, [0x180000000]
cmp r14b, r15b
cmp ecx, 0xfde9
jmp 0x18016490b
jne 0x180164bbd
mov edx, edi
movzx r14d, ax
cmp di, ax
mov r14, rdi
movsx cx, dh
lea rcx, [r15*8 + 0x3e]
add rcx, qword [r11 + r9*8 + 0x96a40]
cmp byte [rcx], dil
jmp 0x180164939
je 0x180164961
inc edx
jmp 0x180164946
inc r14
jmp 0x18016494e
inc rcx
clc
cmp r14, 5
jmp 0x18016495b
jl 0x180164931
test r14, r14
jmp 0x180164969
jle 0x180164afd
mov rax, qword [r11 + r13*8 + 0x96a40]
cmovb cx, r14w
movzx ecx, byte [rax + r15*8 + 0x3e]
mov r8b, bl
movsx r12d, byte [rcx + r11 + 0x948e0]
inc r12d
mov r8d, r15d
test bp, di
mov eax, r12d
sub eax, edx
add r8b, dil
mov dword [rbp - 0x51], eax
rcr r8b, 0xaf
mov rdx, qword [rbp - 0x61]
sub rdx, rsi
movsxd r8, eax
cmp r8, rdx
jg 0x180164e69
mov rcx, rdi
movsx dx, r10b
lea rdx, [r15*8 + 0x3e]
adc al, r13b
add rdx, qword [r11 + r9*8 + 0x96a40]
mov al, r11b
mov al, byte [rdx]
jmp 0x1801649de
mov byte [rbp + rcx - 1], al
jmp 0x1801649e7
inc rcx
jmp 0x1801649ef
inc rdx
cmc
cmp rcx, r14
jmp 0x1801649fb
jl 0x1801649d7
test r8, r8
jle 0x180164a47
lea rcx, [rbp - 1]
add dx, r15w
add rcx, r14
movzx dx, bpl
mov dl, r13b
movzx rdx, bp
mov rdx, rsi
jmp 0x180164a29
call fcn.180156c18
mov r10, qword [rbp - 0x59]
add r11b, 0x5b
adc r11b, 0xc
test spl, r13b
lea r11, [0x180000000]
sbb dh, 0xa0
mov rdx, rdi
mov rcx, qword [r11 + r13*8 + 0x96a40]
add rcx, rdx
mov byte [rcx + r15*8 + 0x3e], dil
jmp 0x180164a5f
inc rdx
cmp rdx, r14
jmp 0x180164a6a
jl 0x180164a4a
mov qword [rbp - 0x31], rdi
and r9d, 0x777c03ac
rdtsc
lea rax, [rbp - 1]
adc r8w, 0x1880
cdq
rcr cx, 0xef
mov qword [rbp - 0x29], rax
sal dh, 0xc
bswap ecx
shl dh, cl
mov eax, edi
cmp r12d, 4
sete al
inc eax
mov r12d, eax
mov r8d, eax
jmp 0x180164ab1
mov qword [rsp + 0x20], r10
lea r9, [rbp - 0x31]
movsx dx, r11b
not ch
lea rdx, [rbp - 0x29]
bswap cx
movsxd rcx, r12d
cmovne rcx, r15
lea rcx, [rbp - 0x6d]
call fcn.180166387
cmp rax, 0xffffffffffffffff
jmp 0x180164ae1
je 0x180164f68
mov eax, dword [rbp - 0x51]
dec eax
movsxd rcx, eax
test sp, 0x6670
stc
add rsi, rcx
jmp 0x180164cd4
movzx eax, byte [rsi]
movsx r13, byte [rax + r11 + 0x948e0]
and ah, 0x36
lea ecx, [r13 + 1]
shr r8b, cl
sar al, cl
mov r8, qword [rbp - 0x61]
sub r8, rsi
movsxd rax, ecx
clc
stc
cmp r10b, 0xc9
cmp rax, r8
jmp 0x180164b2d
jg 0x180164ecb
mov qword [rbp - 0x51], rdi
sal eax, 0x8e
mov qword [rbp - 0x21], rsi
btr ax, 0x50
cdqe
mov eax, edi
cmp ecx, 4
sete al
cmovg r8, r12
inc eax
mov r14d, eax
movsx r8d, r14w
mov r8d, eax
cmovp rdx, rdi
not dh
mov qword [rsp + 0x20], r10
not r9w
bswap dx
movsx dx, dil
lea r9, [rbp - 0x51]
cdq
movzx ecx, sp
movsx rdx, r9w
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x6d]
jmp 0x180164b8d
call fcn.180166387
cmp rax, 0xffffffffffffffff
jmp 0x180164b9b
je 0x180164f68
add rsi, r13
mov r12d, r14d
movzx r13, bx
movsx r13, si
mov r13, qword [rbp - 0x39]
jmp 0x180164bb8
jmp 0x180164cd4
mov r8, qword [r11 + r13*8 + 0x96a40]
mov cl, byte [r8 + r15*8 + 0x3d]
clc
test r11b, 0x27
stc
test cl, 4
jmp 0x180164bd8
je 0x180164c27
mov al, byte [r8 + r15*8 + 0x3e]
xadd dh, dh
mov byte [rbp + 7], al
setne al
cmc
xor al, r13b
mov al, byte [rsi]
movsx rdx, r15w
mov byte [rbp + 8], al
cwd
shrd edx, ebp, 4
dec dl
and cl, 0xfb
movsxd rdx, r10d
movzx edx, r9w
movsx edx, cx
mov byte [r8 + r15*8 + 0x3d], cl
mov r8d, 2
lea rdx, [rbp + 7]
jmp 0x180164c22
jmp 0x180164cab
movzx r9d, byte [rsi]
sbb ax, 0x5a1b
dec al
mov rax, qword [r10 + 0x18]
adc cl, r10b
xchg rcx, rcx
sub cx, r11w
mov rcx, qword [rax]
cmp word [rcx + r9*2], di
jmp 0x180164c4c
jge 0x180164c9f
lea r14, [rsi + 1]
clc
cmp r15w, 0x5a8e
cmp r14, qword [rbp - 0x61]
jmp 0x180164c66
jae 0x180164f2f
mov r9, r10
mov r8d, 2
mov rdx, rsi
bswap cx
lea rcx, [rbp - 0x6d]
call fcn.180161041
cmp eax, 0xffffffff
jmp 0x180164c8c
je 0x180164f68
mov rsi, r14
jmp 0x180164c9a
jmp 0x180164cd4
mov r8, r12
cdq
mov rdx, rsi
not cl
mov ch, 0xa5
mov r9, r10
movzx rcx, dx
setle cl
mov cl, r12b
lea rcx, [rbp - 0x6d]
jmp 0x180164cc1
call fcn.180161041
cmp eax, 0xffffffff
jmp 0x180164cce
je 0x180164f68
inc rsi
shl r8b, 0x6d
and cx, dx
rcr r8w, cl
mov qword [rsp + 0x38], rdi
btc eax, ecx
shr r9b, 0x6e
rcr ah, 0xd9
mov qword [rsp + 0x30], rdi
rcr r9w, cl
mov dword [rsp + 0x28], 5
nop
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
xor r9b, 0xac
mov r9d, r12d
sal r8b, cl
movsxd rcx, r11d
bt r8w, si
lea r8, [rbp - 0x6d]
movsxd rcx, esp
adc cl, 0x3c
rcl ch, 0xf7
sub edx, edx
movsxd rcx, esi
movzx rcx, ax
mov ecx, dword [rbp - 0x49]
jmp 0x180164d3d
call fcn.18015e9d2
mov r14d, eax
test eax, eax
jmp 0x180164d4c
je 0x180164f68
mov qword [rsp + 0x20], rdi
setge dl
lea r9, [rbp - 0x69]
movsx r8, dx
movzx r12w, r15b
mov ch, 0x60
mov r8d, eax
cwd
bswap edx
movzx cx, dil
lea rdx, [rbp + 0xf]
movsxd r12, edx
mov r12, qword [rbp - 0x19]
movsxd rcx, r10d
xchg rcx, rcx
mov rcx, r12
jmp 0x180164d8f
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x180164d9c
je 0x180164f5c
mov edx, esi
stc
cmc
cmp r10, 0x7636514b
sub edx, dword [rbp - 0x41]
cmp r15w, 0x31dd
jmp 0x180164dbb
add edx, dword [rbx + 8]
jmp 0x180164dc4
mov dword [rbx + 4], edx
clc
stc
cmc
cmp dword [rbp - 0x69], r14d
jb 0x180164f68
cmp byte [rbp - 0x71], 0xa
jne 0x180164e42
mov eax, 0xd
movsxd rcx, edx
cdq
movsx ecx, r11w
mov word [rbp - 0x71], ax
mov dl, r11b
bswap rcx
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x69]
movzx rdx, r11w
lea r8d, [rax - 0xc]
xchg dx, cx
movzx cx, cl
lea rdx, [rbp - 0x71]
mov rcx, r12
jmp 0x180164e19
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x180164e26
je 0x180164f5c
cmp dword [rbp - 0x69], 1
jb 0x180164f68
inc dword [rbx + 8]
mov dl, r13b
inc dword [rbx + 4]
mov edx, dword [rbx + 4]
cmp rsi, qword [rbp - 0x61]
jmp 0x180164e4b
jae 0x180164f68
mov r10, qword [rbp - 0x59]
bswap r9w
cmovne r9, r12
mov r9, qword [rbp - 0x11]
mov ecx, dword [rbp - 0x45]
jmp 0x1801648cd
test rdx, rdx
jmp 0x180164e71
jle 0x180164ebe
sub rsi, r14
cmc
stc
mov rcx, qword [r11 + r13*8 + 0x96a40]
neg al
add rcx, r14
xchg al, al
mov al, 0xfd
mov al, byte [rsi + r14]
jmp 0x180164e96
mov byte [rcx + r15*8 + 0x3e], al
movzx rax, r11w
movsx rax, r9w
xchg al, al
inc edi
inc r14
and ax, 0x726d
movsxd rax, edi
cmp r15w, r9w
cmp rax, rdx
jl 0x180164e7c
add dword [rbx + 4], edx
jmp 0x180164ec6
jmp 0x180164f68
test r8, r8
jmp 0x180164ed3
jle 0x180164f26
mov rdx, rdi
adc cx, 0x496d
mov r9, qword [rbp - 0x39]
add ecx, r8d
cmp r10w, 0x335
dec ch
mov rcx, qword [r11 + r9*8 + 0x96a40]
mov al, 0x97
rcr al, cl
add rcx, rdx
mov al, byte [rdx + rsi]
jmp 0x180164f07
mov byte [rcx + r15*8 + 0x3e], al
mov ax, 0x6890
inc edi
inc rdx
movsxd rax, edi
cmp rax, r8
jmp 0x180164f20
jl 0x180164ef0
add dword [rbx + 4], r8d
jmp 0x180164f68
mov byte [r8 + r15*8 + 0x3e], r9b
add al, bpl
mov rax, qword [r11 + r13*8 + 0x96a40]
cmc
or byte [rax + r15*8 + 0x3d], 4
bswap rax
jmp 0x180164f51
lea eax, [rdx + 1]
mov dword [rbx + 4], eax
jmp 0x180164f68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
and cx, r8w
mov rax, rbx
mov rcx, qword [rbp + 0x17]
cmc
xor rcx, rsp
jmp 0x180164f78
call fcn.18014c161
mov rbx, qword [rsp + 0x110]
movzx r15w, r8b
not sil
mov r15w, 0x320
add rsp, 0xd0
pop r15
mov bpl, 0x3d
mov di, r12w
pop r14
mov sil, r8b
jmp 0x180164fb0
pop r13
cmovge di, r8w
movsx si, cl
movzx esi, r8w
pop r12
bswap rsi
pop rdi
movsx si, r13b
xchg rsi, rsi
movsxd rsi, edi
pop rsi
pop rbp
jmp 0x180164fd7
ret