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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
shrd ebp, edi, 0xca
push rdi
push r12
sar bp, cl
inc rdi
push r13
rcl r12b, cl
inc bp
push r14
push r15
sal bpl, cl
mov rbp, rsp
mov dil, dl
sbb dil, 0x4e
inc dil
sub rsp, 0x60
mov dil, spl
and dil, 0x13
sub ebx, ebx
bt di, 0xf9
mov r14d, r8d
adc r12b, bl
movsxd r12, ecx
jmp 0x1404d2401
mov rdi, rdx
stc
test r8d, r8d
jmp 0x1404d240d
je 0x1404d28ef
test rdx, rdx
jmp 0x1404d241b
jne 0x1404d2445
call fcn.1404ac6e9
mov dword [rax], ebx
jmp 0x1404d242d
call fcn.1404ac6b8
mov dword [rax], 0x16
call fcn.1404ad32a
or eax, 0xffffffff
jmp 0x1404d28f1
mov rax, r12
adc r15d, ebx
ror r15b, 0x7d
bts r13, rcx
lea rcx, [0x1400ba940]
xor r15b, r8b
and eax, 0x3f
sar r13w, cl
jmp 0x1404d2469
mov r13, r12
movsx esi, dx
sar r13, 6
lea r15, [rax + rax*8]
btr ax, 0x33
mov rcx, qword [rcx + r13*8]
cdqe
and al, r14b
movsx esi, byte [rcx + r15*8 + 0x39]
sub eax, r10d
lea eax, [rsi - 1]
cmp r13b, 0xe1
jmp 0x1404d249b
cmp al, 1
jmp 0x1404d24a2
ja 0x1404d24c3
mov eax, r14d
jmp 0x1404d24b4
not eax
test al, 1
jmp 0x1404d24bd
je 0x1404d2421
test byte [rcx + r15*8 + 0x38], 0x20
jmp 0x1404d24ce
je 0x1404d24fc
sub edx, edx
cmovle cx, bp
movzx cx, bpl
mov ecx, r12d
mov r8b, 0x7c
jmp 0x1404d24ee
lea r8d, [rdx + 2]
jmp 0x1404d24f7
call fcn.1401e9f47
mov ecx, r12d
jmp 0x1404d2504
mov qword [rbp - 0x20], rbx
jmp 0x1404d250d
call fcn.1404d8355
test eax, eax
je 0x1404d26e3
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
cmc
cmp byte [rax + r15*8 + 0x38], bl
jmp 0x1404d2530
jge 0x1404d26e3
call fcn.1404c095d
mov rcx, qword [rax + 0x90]
cmc
test sp, 0x3d7c
cmp qword [rcx + 0x138], rbx
jmp 0x1404d2554
jne 0x1404d257b
lea rax, [0x1400ba940]
cmp bx, r12w
cmp r12, 0xebf36db
mov rax, qword [rax + r13*8]
cmp byte [rax + r15*8 + 0x39], bl
je 0x1404d26e3
lea rax, [0x1400ba940]
xchg ecx, edx
mov rcx, qword [rax + r13*8]
movsxd rdx, esp
cqo
lea rdx, [rbp - 0x10]
mov rcx, qword [rcx + r15*8 + 0x28]
jmp 0x1404d259b
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x1404d25a8
je 0x1404d26e3
test sil, sil
jmp 0x1404d25b6
je 0x1404d26a4
dec sil
jmp 0x1404d25c5
cmp sil, 1
ja 0x1404d2820
lea r12, [rdi + r14]
sal r14w, cl
mov qword [rbp - 0x30], rbx
sets r14b
btc r14d, 0x15
mov r14, rdi
cmp r14, 0x699213b1
clc
cmp rdi, r12
jmp 0x1404d25f7
jae 0x1404d2814
mov esi, dword [rbp - 0x2c]
bswap rcx
movzx eax, word [r14]
movsx ecx, di
bswap ecx
movzx ecx, ax
mov word [rbp - 0x10], ax
call fcn.1404dcb39
movzx ecx, word [rbp - 0x10]
cmp rdx, r8
test eax, edi
clc
cmp ax, cx
jmp 0x1404d262a
jne 0x1404d2691
add esi, 2
clc
mov dword [rbp - 0x2c], esi
clc
cmp cx, 0xa
jne 0x1404d267f
mov ecx, 0xd
jmp 0x1404d264c
call fcn.1404dcb39
mov ecx, 0xd
cmp r15, 0x6bcf3c84
cmc
cmp ax, cx
jmp 0x1404d2666
jne 0x1404d2691
inc esi
jmp 0x1404d2673
mov dword [rbp - 0x2c], esi
jmp 0x1404d267b
inc ebx
clc
stc
add r14, 2
cmp r14, r12
jae 0x1404d2814
jmp 0x1404d2603
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x1404d269f
jmp 0x1404d2814
mov r9d, r14d
setbe cl
movsx rdx, di
lea rcx, [rbp - 0x30]
movsx edx, dx
mov r8, rdi
jmp 0x1404d26c0
mov edx, r12d
jmp 0x1404d26c8
call fcn.1404d2944
movsd xmm0, qword [rax]
jmp 0x1404d26d6
mov ebx, dword [rax + 8]
jmp 0x1404d26de
jmp 0x1404d281b
lea rax, [0x1400ba940]
bt ecx, 0
sbb cl, dl
shr cl, cl
mov rcx, qword [rax + r13*8]
cmp spl, r10b
cmp byte [rcx + r15*8 + 0x38], bl
jge 0x1404d279c
mov ecx, esi
cmp cl, 0xe7
test sil, sil
jmp 0x1404d2711
je 0x1404d276e
sub ecx, 1
je 0x1404d2746
cmp ecx, 1
jne 0x1404d2820
mov r9d, r14d
not r8b
lea rcx, [rbp - 0x30]
mov r8, rdi
movsx edx, si
mov edx, r12d
call fcn.1404d3567
jmp 0x1404d26cd
mov r9d, r14d
lea rcx, [rbp - 0x30]
bswap edx
mov r8, rdi
not dx
movzx dx, dil
cwd
mov edx, r12d
jmp 0x1404d2764
call fcn.1404d37c6
jmp 0x1404d26cd
mov r9d, r14d
movsx r8w, r11b
cqo
setp r8b
lea rcx, [rbp - 0x30]
mov r8, rdi
cmove dx, r8w
not dh
mov edx, r12d
jmp 0x1404d2792
call fcn.1404d332d
jmp 0x1404d26cd
mov rcx, qword [rcx + r15*8 + 0x28]
add r8b, bl
lea r9, [rbp - 0x2c]
shl dh, cl
cmp r11d, edi
rcr rdx, cl
sub eax, eax
sar dx, cl
mov r8d, r14d
cmp r11b, bl
shrd dx, r15w, 2
and qword [rsp + 0x20], rax
cwd
xchg dx, dx
mov rdx, rdi
jmp 0x1404d27d3
mov qword [rbp - 0x30], rax
jmp 0x1404d27dc
mov dword [rbp - 0x28], eax
jmp 0x1404d27e4
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404d27f1
jne 0x1404d2806
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
movsx rbx, bp
cbw
mov ebx, dword [rbp - 0x28]
shrd ax, bx, 0x3d
rcr al, cl
bts ax, ax
movsd xmm0, qword [rbp - 0x30]
mov al, 0x51
movsd qword [rbp - 0x20], xmm0
mov rax, qword [rbp - 0x20]
stc
cmp dx, 0x4e49
shr rax, 0x20
test eax, eax
jne 0x1404d28da
mov eax, dword [rbp - 0x20]
test eax, eax
jmp 0x1404d2840
je 0x1404d288b
cmp eax, 5
jmp 0x1404d284e
jne 0x1404d2879
call fcn.1404ac6b8
mov dword [rax], 9
jmp 0x1404d2864
call fcn.1404ac6e9
mov dword [rax], 5
jmp 0x1404d2874
jmp 0x1404d243d
mov ecx, dword [rbp - 0x20]
jmp 0x1404d2881
call fcn.1404ac729
jmp 0x1404d243d
lea rax, [0x1400ba940]
mov rax, qword [rax + r13*8]
cmp r10w, dx
test di, r15w
test byte [rax + r15*8 + 0x38], 0x40
je 0x1404d28b8
cmp byte [rdi], 0x1a
jmp 0x1404d28b2
je 0x1404d28ef
call fcn.1404ac6b8
mov dword [rax], 0x1c
jmp 0x1404d28c8
call fcn.1404ac6e9
and dword [rax], 0
jmp 0x1404d28d5
jmp 0x1404d243d
mov eax, dword [rbp - 0x1c]
test sil, r11b
cmp cl, 0xd2
sub eax, ebx
jmp 0x1404d28ea
jmp 0x1404d28f1
xor eax, eax
mov rbx, qword [rsp + 0xb8]
sal r12b, cl
and r15b, r14b
jmp 0x1404d2904
add rsp, 0x60
pop r15
cmovge di, r15w
bswap bp
not r14d
pop r14
movzx rbp, bx
movsx di, bpl
cmova r13, rbp
pop r13
xchg bp, bp
cmovnp bp, bx
pop r12
pop rdi
mov sil, 0xff
xchg rsi, rbp
pop rsi
xchg bpl, bpl
movsxd rbp, ebp
pop rbp
jmp 0x1404d2943
ret