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

Disassembly:
mov qword [rsp + 8], rbx
mov ax, 0x5670
xor ax, 0x6e3b
bt eax, 0x17
push rbp
and ah, 0x31
push rsi
or esi, 0x3a506a2d
push rdi
bts ax, bx
push r12
sbb rsi, rax
movsx r12, r12w
push r13
cmp r10b, 0x77
dec rbp
push r14
shr al, cl
bt ax, 0xb
mov r13w, 0x70ef
push r15
dec r12w
lea rbp, [rsp - 0x27]
sub rsp, 0x100
shr r15b, cl
sbb r14d, 0x4247317
ror r14w, 0x92
mov rax, qword [0x1400b7288]
cmp cx, r12w
btr r14w, dx
mov sil, r14b
xor rax, rsp
sar r13b, 0xae
mov r13, 0x584a0c63
mov qword [rbp + 0x17], rax
movzx r14w, spl
movsxd rsi, edx
mov r12b, 9
mov r15, r8
mov rax, rsi
sbb r12w, r10w
and r14b, 6
mov qword [rbp - 9], rcx
movsx r13w, r11b
mov qword [rbp - 0x11], rax
sal ecx, 0x78
lea rcx, [0x140000000]
sbb r14w, 0x2624
ror r13w, 0x97
and eax, 0x3f
cmp r12d, 0x687b6f3e
mov r13d, r9d
or r12b, spl
and r14, 0x2e4f0d3d
bt r12w, 0xba
add r13, r8
bts r12d, r10d
mov qword [rbp - 0x21], r8
shl r14b, 0xa5
setl r14b
movzx r12d, dx
mov r12, rsi
or r14b, 6
inc r14b
mov qword [rbp - 0x51], r13
shl r14b, 0x19
sar r12, 6
movzx r14d, bp
movzx r14w, r11b
movsx r14d, si
lea r14, [rax + rax*8]
movsx eax, sp
mov rax, qword [rcx + r12*8 + 0xba940]
jmp 0x1404d2a71
mov rax, qword [rax + r14*8 + 0x28]
jmp 0x1404d2a7b
mov qword [rbp - 0x49], rax
jmp 0x1404d2a84
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
xor edx, edx
jmp 0x1404d2a91
lea rcx, [rsp + 0x50]
jmp 0x1404d2a9b
mov dword [rbp - 0x59], eax
call fcn.14049b98c
mov rcx, qword [rsp + 0x58]
adc rdx, rsp
xor r11d, r11d
clc
ror dx, 0x6c
mov dword [rbp - 0x69], r11d
mov dl, spl
mov ebx, r11d
mov dword [rbp - 0x65], ebx
xchg dil, dil
sbb rdi, 0x21160433
cqo
mov rdi, r15
shr dh, cl
mov edx, dword [rcx + 0xc]
rol cl, 0xb4
adc cl, r15b
bt cx, 0xd8
mov ecx, r11d
mov dword [rsp + 0x40], ecx
jmp 0x1404d2af4
mov dword [rbp - 0x55], edx
cmp r13b, 0xd0
stc
jmp 0x1404d2b01
cmp r15, r13
jmp 0x1404d2b09
jae 0x1404d326f
mov rax, rsi
xor sil, 0x9f
and cl, dil
mov rsi, r15
sar rax, 6
movzx r15d, r10w
mov qword [rbp - 0x19], rax
sar cl, cl
shld r15w, cx, 0xfd
mov cl, byte [rdi]
mov r15d, 1
clc
mov byte [rsp + 0x44], cl
mov dword [rsp + 0x48], r11d
cmp bl, 0x1f
clc
cmp edx, 0xfde9
jmp 0x1404d2b51
jne 0x1404d2e50
lea r15, [0x140000000]
and si, 0x1ee1
not dl
cdq
mov edx, r11d
clc
sbb r9b, 0x46
mov r9, qword [r15 + rax*8 + 0xba940]
not rax
mov rsi, r11
sub eax, eax
lea rax, [r9 + r14*8]
stc
cmp byte [rax + rsi + 0x3e], r11b
jmp 0x1404d2b8d
je 0x1404d2bac
inc edx
jmp 0x1404d2b9a
inc rsi
cmp rsi, 5
jmp 0x1404d2ba6
jl 0x1404d2b83
test rsi, rsi
jmp 0x1404d2bb4
jle 0x1404d2d8d
mov rax, qword [r15 + r12*8 + 0xba940]
shr r13d, 0x2a
btr r13d, ebx
sbb r10b, al
mov r8, qword [rbp - 0x51]
shr ecx, 0x63
rcr r10b, 0x20
sub r8, rdi
not cx
movsx r13w, dl
jmp 0x1404d2be8
movzx ecx, byte [rax + r14*8 + 0x3e]
mov r13w, si
movsx r10, si
movsx r15d, byte [rcx + r15 + 0xb7d00]
movsx r10w, r14b
movsx r13, r9w
inc r15d
mov r13d, r15d
cmc
sub r13d, edx
xchg r10, r10
bsr r10d, eax
movsx r10, r13w
movsxd r10, r13d
cmp r10, r8
jmp 0x1404d2c28
jg 0x1404d30c0
lea rax, [rbp - 1]
mov r8w, 0x17a7
rcr rcx, 0xfe
cmp r8d, 0x4cfa3a68
mov rdx, r11
adc r8b, sil
btc r8, rdi
rcr cl, cl
sub r9, rax
sal cx, cl
rcr cl, cl
lea r8, [r9 + r14*8]
lea rcx, [rbp - 1]
neg al
add rcx, rdx
inc rdx
mov al, byte [rcx + r8 + 0x3e]
cmp rbx, rbp
mov byte [rcx], al
jmp 0x1404d2c79
cmp rdx, rsi
jmp 0x1404d2c81
jl 0x1404d2c5a
test r13d, r13d
jmp 0x1404d2c8f
jle 0x1404d2cbd
lea rcx, [rbp - 1]
movsxd rdx, r8d
mov r8, r10
shr dl, 0xc8
shl dh, 0x60
stc
add rcx, rsi
movzx edx, r15w
mov rdx, rdi
jmp 0x1404d2cb5
call fcn.14049a9c2
xor r11d, r11d
mov rdx, r11
xor r8w, 0x7c4f
sub r8w, r9w
rcl ch, cl
lea r8, [0x140000000]
stc
ror cl, 0xcb
mov rcx, qword [r8 + r12*8 + 0xba940]
test spl, r15b
add rcx, rdx
jmp 0x1404d2cea
inc rdx
mov byte [rcx + r14*8 + 0x3e], r11b
cmp rdx, rsi
jl 0x1404d2cd7
lea rax, [rbp - 1]
shl dl, cl
mov qword [rbp - 0x41], r11
movzx cx, bh
ror r9b, 0x59
mov qword [rbp - 0x39], rax
cmp bl, r13b
mov r9, r8
lea r9, [rbp - 0x41]
clc
mov eax, r11d
and dx, r14w
lea rdx, [rbp - 0x39]
cmp r15d, 4
lea rcx, [rsp + 0x48]
movsx r8w, r9b
sete al
cmovp r8d, eax
movzx r8w, sil
setno r15b
inc eax
mov r8d, eax
jmp 0x1404d2d57
mov r15d, eax
jmp 0x1404d2d5f
call fcn.1404d847d
cmp rax, 0xffffffffffffffff
jmp 0x1404d2d6d
je 0x1404d2efd
lea eax, [r13 - 1]
rcr r13, 0xa8
xchg r13, r13
mov r13, qword [rbp - 0x51]
movsxd rsi, eax
add rsi, rdi
jmp 0x1404d2f24
movzx eax, byte [rdi]
mov rdx, r13
sub rdx, rdi
sar cx, cl
cmp r8b, r9b
bsf si, ax
movsx rsi, byte [rax + r15 + 0xb7d00]
lea ecx, [rsi + 1]
movsxd rax, ecx
cmp dh, 0x8a
cmp rax, rdx
jmp 0x1404d2dba
jg 0x1404d3129
cmp ecx, 4
movzx edx, sp
mov qword [rbp - 0x31], r11
xchg bx, cx
setle al
movsx rax, r14w
mov eax, r11d
jmp 0x1404d2ddf
mov qword [rbp - 0x29], rdi
cqo
sete al
inc bh
cdq
lea r9, [rbp - 0x31]
movsx ebx, dx
inc eax
jmp 0x1404d2dfc
lea rdx, [rbp - 0x29]
movzx r8, r10w
mov r8d, edx
mov r8d, eax
mov ch, 0x57
cmova bx, r8w
lea rcx, [rsp + 0x48]
not bh
mov ebx, eax
jmp 0x1404d2e20
call fcn.1404d847d
cmp rax, 0xffffffffffffffff
jmp 0x1404d2e2e
je 0x1404d2efd
add rsi, rdi
xchg r15b, r15b
movzx r15w, cl
mov r15w, dx
mov r15d, ebx
jmp 0x1404d2e4b
jmp 0x1404d2f24
lea rax, [0x140000000]
mov rdx, qword [rax + r12*8 + 0xba940]
mov cl, byte [rdx + r14*8 + 0x3d]
cmc
jmp 0x1404d2e6a
test cl, 4
jmp 0x1404d2e72
je 0x1404d2ea3
mov al, byte [rdx + r14*8 + 0x3e]
and cl, 0xfb
jmp 0x1404d2e85
mov byte [rbp + 7], al
mov al, byte [rdi]
mov byte [rdx + r14*8 + 0x3d], cl
movsxd rdx, r15d
lea rdx, [rbp + 7]
jmp 0x1404d2e9b
mov byte [rbp + 8], al
jmp 0x1404d2ed5
call fcn.1404a209f
movzx ecx, byte [rdi]
cmp r15, r9
clc
xor edx, edx
test r10b, bl
cmp word [rax + rcx*2], dx
jge 0x1404d2f06
inc rsi
stc
cmp r15b, bl
cmp rsi, r13
jae 0x1404d31ee
mov rdx, rdi
setbe r8b
mov r8d, 2
cmovle cx, r12w
lea rcx, [rsp + 0x48]
jmp 0x1404d2eea
call fcn.1401c33d7
cmp eax, 0xffffffff
jmp 0x1404d2ef7
jne 0x1404d2f24
cmp byte [rbp - 0x71], 0
jmp 0x1404d31e0
mov r8, r15
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.1401c33d7
cmp eax, 0xffffffff
jmp 0x1404d2f1e
je 0x1404d3256
mov ecx, dword [rbp - 0x59]
add r9w, bp
shrd eax, esp, 0x83
lea rax, [rbp + 0xf]
shr di, 0x7f
bt r9d, 0x75
test r13b, al
sub ebx, ebx
lea r8, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
lea rdi, [rsi + 1]
sar r9, cl
mov qword [rsp + 0x30], rbx
ror r9b, 0x47
movsx r9d, ax
mov r9d, r15d
cmp rdx, r13
mov dword [rsp + 0x28], 5
cmc
test r12b, r15b
cmp r15b, 0xa6
sub edx, edx
jmp 0x1404d2f7c
mov qword [rsp + 0x20], rax
jmp 0x1404d2f86
call fcn.1404c0740
mov esi, eax
clc
test r12w, sp
jmp 0x1404d2f97
test eax, eax
jmp 0x1404d2f9e
je 0x1404d331c
mov rcx, qword [rbp - 0x49]
lea r9, [rsp + 0x4c]
movzx dx, r15b
jmp 0x1404d2fbb
mov r8d, eax
mov qword [rsp + 0x20], rbx
not dh
movsx edx, r11w
lea rdx, [rbp + 0xf]
jmp 0x1404d2fd2
call qword [sym.imp.KERNEL32.dll_WriteFile]
sub r11d, r11d
test eax, eax
je 0x1404d3310
mov r15d, dword [rsp + 0x40]
cmp r13b, 0x3d
neg bh
bt bx, 0x6e
mov ebx, edi
sub ebx, dword [rbp - 0x21]
clc
stc
add ebx, r15d
mov dword [rbp - 0x65], ebx
cmc
cmp dword [rsp + 0x4c], esi
jmp 0x1404d300a
jb 0x1404d31dc
cmp byte [rsp + 0x44], 0xa
jne 0x1404d309b
mov rcx, qword [rbp - 0x49]
lea eax, [r11 + 0xd]
lea r9, [rsp + 0x4c]
movzx r8d, r15w
mov word [rsp + 0x44], ax
lea r8d, [r11 + 1]
cdq
cqo
mov qword [rsp + 0x20], r11
movsx rdx, dx
jmp 0x1404d3048
lea rdx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r11d, r11d
cmc
jmp 0x1404d305c
test eax, eax
je 0x1404d324d
cmp dword [rsp + 0x4c], 1
jmp 0x1404d306e
jb 0x1404d31dc
inc r15d
dec sil
xchg rsi, rsi
mov rsi, 0x51d12069
inc ebx
mov dword [rsp + 0x40], r15d
dec sil
sub si, r8w
mov dword [rbp - 0x65], ebx
jmp 0x1404d309b
mov rsi, rdi
cmp bl, dil
cmp rdi, r13
jmp 0x1404d30a9
jae 0x1404d3264
mov rax, qword [rbp - 0x19]
setg dh
cwd
mov edx, dword [rbp - 0x55]
jmp 0x1404d2b30
mov edx, r11d
test r8, r8
jle 0x1404d311c
sub rdi, rsi
mov ch, 0xe9
lea rbx, [0x140000000]
xchg cx, cx
mov al, byte [rdi + rsi]
inc edx
bt ecx, r9d
shl cx, 0x8a
mov rcx, qword [rbx + r12*8 + 0xba940]
cmp spl, dil
stc
cmc
add rcx, rsi
inc rsi
mov byte [rcx + r14*8 + 0x3e], al
bsr eax, r13d
movsxd rax, edx
cmp rax, r8
jmp 0x1404d3110
jl 0x1404d30dc
mov ebx, dword [rbp - 0x65]
cmp r12b, spl
add ebx, r8d
jmp 0x1404d3124
jmp 0x1404d31ce
mov r9d, r11d
test r15b, 0x8c
test rdx, rdx
jmp 0x1404d3138
jle 0x1404d31cc
mov r13, qword [rbp - 0x11]
mov r8, r11
rol ch, cl
mov ch, 0xad
mov r10, r13
cmc
and r13d, 0x3f
rcl r11b, 0x22
sar r10, 6
jmp 0x1404d3161
lea r11, [r13*8]
sub cx, 0xce1
add r11, r13
mov al, byte [r8 + rdi]
not cl
movzx rcx, r8w
movsx ecx, di
inc r9d
neg cl
mov rcx, qword [r15 + r10*8 + 0xba940]
cmp rbp, rbx
add rcx, r8
jmp 0x1404d3196
inc r8
test r10, 0x689c0b69
clc
cmp r14w, sp
mov byte [rcx + r11*8 + 0x3e], al
movsxd rax, r9d
jmp 0x1404d31bb
cmp rax, rdx
jmp 0x1404d31c3
jl 0x1404d3171
sub r11d, r11d
add ebx, edx
mov dword [rbp - 0x65], ebx
bswap cx
mov cl, 0x56
shld cx, r12w, 0x20
cmp byte [rbp - 0x71], r11b
mov ecx, dword [rsp + 0x40]
jmp 0x1404d31e9
jmp 0x1404d3278
mov al, byte [rdi]
lea r8, [0x140000000]
movzx ecx, ax
movsx ecx, cx
xchg ch, cl
mov rcx, qword [r8 + r12*8 + 0xba940]
jmp 0x1404d320c
inc ebx
test r11, r11
test bpl, 7
cmp r14b, sil
mov dword [rbp - 0x65], ebx
test rsp, r11
mov byte [rcx + r14*8 + 0x3e], al
rcl ax, 0xcc
jmp 0x1404d322c
mov rax, qword [r8 + r12*8 + 0xba940]
or byte [rax + r14*8 + 0x3d], 4
cmp ebp, 0x66587a37
cmp byte [rbp - 0x71], dl
jmp 0x1404d3248
jmp 0x1404d31e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
mov ecx, dword [rsp + 0x40]
clc
cmp byte [rbp - 0x71], 0
jmp 0x1404d3278
mov ecx, dword [rsp + 0x40]
cmc
stc
jmp 0x1404d326f
cmp byte [rbp - 0x71], r11b
jmp 0x1404d3278
je 0x1404d329b
mov rax, qword [rsp + 0x50]
cmp r9w, 0x3aa9
test al, r15b
and dword [rax + 0x3a8], 0xfffffffd
cmp cx, r13w
bts ax, bx
mov rax, qword [rbp - 9]
test r15w, r12w
cmp r12w, bp
cmp r14b, 0xa4
movsd xmm0, qword [rbp - 0x69]
cmc
movsd qword [rax], xmm0
test sil, 0xfd
mov dword [rax + 8], ecx
movzx cx, dil
mov rcx, qword [rbp + 0x17]
cmp r12b, 0x34
xor rcx, rsp
jmp 0x1404d32d1
call fcn.140496cc6
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
movzx r13, sp
pop r15
movsx r12, bx
mov r14b, 0x14
xchg sil, r14b
pop r14
mov r13w, r15w
pop r13
pop r12
pop rdi
jmp 0x1404d3309
pop rsi
movsx rbp, r9w
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
sal ecx, 7
mov ecx, dword [rsp + 0x40]
cmp byte [rbp - 0x71], bl
jmp 0x1404d3328
jmp 0x1404d3278