Function at 0x140121280
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x58
mov rbp, qword [rsp + 0xb0]
xor r15d, r15d
mov rsi, qword [rcx + 0x20]
add rbp, r9
mov r14, r9
mov r13, r9
mov rdi, rcx
mov qword [rsp + 0x20], rsi
cmp byte [rcx + 0x3c], r15b
je 0x1401212d9
mov eax, 0xfffffdf5
add rsp, 0x58
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rdi + 0xb0]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], r12
call fcn.140126d10
mov rcx, qword [rdi + 0xa8]
call fcn.140126d10
mov r12, qword [rsp + 0xa0]
lea r10, [0x140000000]
xor r11d, r11d
mov ebx, 0xffffffff
mov qword [rdi + 0xb0], r11
mov qword [rdi + 0xa8], r11
mov dword [r12], r11d
mov r8d, 0x3f
nop word [rax + rax]
cmp r14, rbp
jne 0x14012133e
test r15d, r15d
je 0x140121b36
movsxd rdx, dword [rdi + 0xe4]
mov r15d, r11d
cmp edx, 0xc
ja case.default.0x140121358
mov ecx, dword [r10 + rdx*4 + 0x121cbc]
add rcx, r10
jmp rcx
movzx eax, byte [r14]
and al, 0xe0
cmp al, 0x20
jne 0x140121c8b
movzx ecx, byte [r14]
movzx eax, cl
and al, 0xe0
cmp al, 0x20
jne 0x1401213a2
cmp edx, 2
je 0x140121c8b
mov dword [rdi + 0xe0], 1
mov dword [rdi + 0xe4], 3
mov qword [rdi + 0xb8], r11
mov qword [rdi + 0xd8], r11
jmp case.default.0x140121358
test cl, cl
jns 0x1401213cd
mov dword [rdi + 0xe0], 1
mov dword [rdi + 0xe4], 4
mov qword [rdi + 0xb8], r11
mov qword [rdi + 0xd8], r11
jmp case.default.0x140121358
test cl, 0xaf
jne 0x1401213e1
cmp cl, 0x50
je 0x1401213e1
mov eax, 5
lea ecx, [rax - 3]
jmp 0x1401213eb
mov eax, 4
mov ecx, 3
mov dword [rdi + 0xe0], ecx
mov dword [rdi + 0xe4], eax
movzx eax, byte [r14]
shr al, 6
and al, 1
mov byte [rdi + 0xe9], al
movzx eax, byte [r14]
and al, 0xf0
cmp al, 0x10
sete al
cmp dword [rdi + 0xe0], 2
mov byte [rdi + 0xea], al
jne 0x140121423
inc r14
mov qword [rdi + 0xb8], r11
mov qword [rdi + 0xd8], r11
jmp case.default.0x140121358
mov rax, qword [rdi + 0xc8]
mov esi, r11d
mov rbx, qword [rdi + 0xd0]
mov r10d, dword [rdi + 0xb8]
cmp rbx, rax
mov r9, qword [rdi + 0xd8]
cmovae rbx, rax
mov qword [rdi + 0xd8], r11
mov rax, r14
test r10d, r10d
jne 0x14012149f
movzx ecx, byte [r14]
movzx eax, cl
and al, 0x1f
cmp al, 0x1f
je 0x14012148b
mov r10d, ecx
mov esi, 1
and r10d, 0x1f
mov eax, esi
jmp 0x140121521
lea rax, [r14 + 1]
mov r10d, 0x1f
cmp rax, rbp
jne 0x1401214b0
sub eax, r14d
jmp 0x140121518
cmp r14, rbp
je 0x1401214fd
nop dword [rax]
nop dword [rax + rax]
movzx r11d, byte [rax]
mov r8d, r11d
and r8d, 0x7f
cmp r9, 0x20
jae 0x140121c8b
mov edx, 0xffffffff
mov rcx, r9
shr edx, cl
cmp edx, r8d
jb 0x140121c8b
shl r8d, cl
mov ecx, r8d
not ecx
cmp ecx, r10d
jb 0x140121c8b
add r10d, r8d
test r11b, r11b
jns 0x1401214fd
inc rax
add r9, 7
cmp rax, rbp
jne 0x1401214b0
mov qword [rdi + 0xd8], r9
cmp rax, rbp
jne 0x14012150e
sub eax, r14d
jmp 0x140121518
sub eax, r14d
mov esi, 1
inc eax
cmp eax, 0xffffffff
je 0x140121c8b
mov edx, r10d
cmp rdx, rbx
ja 0x140121c8b
mov qword [rdi + 0xb8], rdx
test eax, eax
js 0x140121c9f
movsxd rcx, eax
add r14, rcx
test esi, esi
je 0x140121c7d
mov rsi, qword [rdi + 0x20]
mov ebx, 0xffffffff
mov qword [rdi + 0xd0], rbx
mov qword [rdi + 0x30], rdx
cmp qword [rdi + 0x28], rdx
jbe 0x1401215cf
mov rdx, qword [rdi + 0x18]
test rdx, rdx
je 0x1401215ca
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x10]
dec rcx
add rcx, rdx
and rcx, qword [rdi + 8]
mov rbx, qword [rax + rcx*8]
mov rcx, 0xffffffffffffffe0
mov rax, qword [rbx + 8]
sub rcx, qword [rax + 0x18]
mov rax, qword [rbx]
sub rcx, qword [rax + 0x18]
lea rax, [rdx - 1]
add qword [rdi + 0x28], rcx
mov qword [rdi + 0x18], rax
mov rcx, qword [rbx + 8]
call fcn.140126d10
mov rcx, qword [rbx]
call fcn.140126d10
mov rdx, rbx
mov rcx, rsi
call fcn.1401220c0
mov rax, qword [rdi + 0x30]
cmp qword [rdi + 0x28], rax
ja 0x140121564
mov ebx, 0xffffffff
mov rsi, qword [rsp + 0x20]
lea r10, [0x140000000]
mov dword [rdi + 0xe4], 1
xor r11d, r11d
jmp 0x140121324
cmp dword [rdi + 0xe0], 1
jne 0x1401215fd
mov eax, 0x7f
jmp 0x14012160d
cmp byte [rdi + 0xe9], 0
mov eax, reloc.WS2_32.dll_ntohs
cmovne eax, r8d
mov rbx, qword [rdi + 0x18]
mov r8, r14
mov r9d, dword [rdi + 0xb8]
add rbx, 0x3d
mov rcx, qword [rdi + 0xd8]
mov qword [rdi + 0xd8], r11
test r9d, r9d
jne 0x14012165d
movzx r9d, byte [r14]
and r9d, eax
cmp r9d, eax
je 0x14012164c
mov r11d, 1
mov r8d, r11d
jmp 0x1401216d6
lea r8, [r14 + 1]
mov r9d, eax
cmp r8, rbp
jne 0x140121662
sub r8d, r14d
jmp 0x1401216cc
cmp r14, rbp
je 0x1401216af
movzx r10d, byte [r8]
mov edx, r10d
and edx, 0x7f
cmp rcx, 0x20
jae 0x140121c8b
mov eax, 0xffffffff
shr eax, cl
cmp eax, edx
jb 0x140121c8b
shl edx, cl
mov eax, edx
not eax
cmp eax, r9d
jb 0x140121c8b
add r9d, edx
test r10b, r10b
jns 0x1401216a8
inc r8
add rcx, 7
cmp r8, rbp
jne 0x140121662
lea r10, [0x140000000]
mov qword [rdi + 0xd8], rcx
cmp r8, rbp
jne 0x1401216c0
sub r8d, r14d
jmp 0x1401216cc
sub r8d, r14d
mov r11d, 1
inc r8d
cmp r8d, 0xffffffff
je 0x140121c8b
mov ecx, r9d
cmp rcx, rbx
ja 0x140121c8b
mov qword [rdi + 0xb8], rcx
mov eax, r8d
test r8d, r8d
js 0x140121c9f
movsxd rax, r8d
add r14, rax
test r11d, r11d
je 0x140121c7d
test r9d, r9d
je 0x140121c8b
dec rcx
mov qword [rdi + 0xc0], rcx
cmp dword [rdi + 0xe0], 1
je 0x140121b61
mov dword [rdi + 0xe4], 9
mov ebx, 0xffffffff
xor r11d, r11d
jmp 0x140121324
movzx eax, byte [r14]
shr al, 7
mov byte [rdi + 0xe8], al
mov dword [rdi + 0xe4], 6
mov qword [rdi + 0xb8], r11
mov qword [rdi + 0xd8], r11
mov r9d, dword [rdi + 0xb8]
mov r8, r14
mov rcx, qword [rdi + 0xd8]
mov qword [rdi + 0xd8], r11
test r9d, r9d
jne 0x1401217b3
movzx edx, byte [r14]
movzx eax, dl
and al, 0x7f
cmp al, 0x7f
je 0x14012179f
mov r9d, edx
mov r11d, 1
and r9d, 0x7f
mov r8d, r11d
jmp 0x14012182a
lea r8, [r14 + 1]
mov r9d, 0x7f
cmp r8, rbp
jne 0x1401217c0
sub r8d, r14d
jmp 0x140121820
cmp r14, rbp
je 0x140121803
nop dword [rax + rax]
movzx r10d, byte [r8]
mov edx, r10d
and edx, 0x7f
cmp rcx, 0x20
jae 0x140121c8b
mov eax, ebx
shr eax, cl
cmp eax, edx
jb 0x140121c8b
shl edx, cl
mov eax, edx
not eax
cmp eax, r9d
jb 0x140121c8b
add r9d, edx
test r10b, r10b
jns 0x140121803
inc r8
add rcx, 7
cmp r8, rbp
jne 0x1401217c0
mov qword [rdi + 0xd8], rcx
cmp r8, rbp
jne 0x140121814
sub r8d, r14d
jmp 0x140121820
sub r8d, r14d
mov r11d, 1
inc r8d
cmp r8d, 0xffffffff
je 0x140121c8b
cmp r9d, 0x10000
ja 0x140121c8b
mov edx, r9d
mov eax, r8d
mov qword [rdi + 0xb8], rdx
test r8d, r8d
js 0x140121c9f
movsxd rax, r8d
add r14, rax
test r11d, r11d
je 0x140121c7d
cmp byte [rdi + 0xe8], 0
je 0x14012187f
lea rcx, [rdi + 0x40]
call fcn.140126fb0
mov rdx, qword [rdi + 0xb8]
mov eax, 7
add rdx, rdx
jmp 0x140121884
mov eax, 8
inc rdx
mov dword [rdi + 0xe4], eax
mov r8, rsi
lea rcx, [rdi + 0x98]
call fcn.140126d70
test eax, eax
jne 0x140121c9f
mov rdx, qword [rdi + 0x98]
lea rcx, [rdi + 0x48]
mov r8, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x10]
call fcn.1401228d0
jmp 0x140121b22
lea rdx, [rdi + 0x48]
mov r9, rbp
mov r8, r14
mov rcx, rdi
call fcn.140120060
test eax, eax
js 0x140121c9f
movsxd rcx, eax
add r14, rcx
cmp qword [rdi + 0xb8], 0
jne 0x140121c7d
mov rax, qword [rdi + 0x60]
lea r10, [0x140000000]
mov byte [rax], 0
mov rcx, qword [rdi + 0x60]
sub rcx, qword [rdi + 0x58]
mov rax, qword [rdi + 0x98]
xor r11d, r11d
mov qword [rax + 0x18], rcx
mov dword [rdi + 0xe4], 9
jmp 0x140121324
mov rax, qword [rdi + 0xb8]
mov rbx, rbp
mov rcx, qword [rdi + 0x60]
sub rbx, r14
cmp rbx, rax
mov rdx, r14
cmovae rbx, rax
mov r8, rbx
call fcn.14011ec80
mov qword [rdi + 0x60], rax
mov rdx, qword [rdi + 0xb8]
sub rdx, rbx
movsxd rax, ebx
mov qword [rdi + 0xb8], rdx
test ebx, ebx
js 0x140121c9f
add r14, rax
test rdx, rdx
jne 0x140121c7d
mov rax, qword [rdi + 0x60]
mov byte [rax], dl
mov rcx, qword [rdi + 0x60]
mov rax, qword [rdi + 0x98]
sub rcx, qword [rdi + 0x58]
mov qword [rax + 0x18], rcx
mov dword [rdi + 0xe4], 9
jmp 0x140121b22
movzx eax, byte [r14]
shr al, 7
mov byte [rdi + 0xe8], al
mov dword [rdi + 0xe4], 0xa
mov qword [rdi + 0xb8], r11
mov qword [rdi + 0xd8], r11
mov r9d, dword [rdi + 0xb8]
mov r8, r14
mov rcx, qword [rdi + 0xd8]
mov qword [rdi + 0xd8], r11
test r9d, r9d
jne 0x140121a11
movzx edx, byte [r14]
movzx eax, dl
and al, 0x7f
cmp al, 0x7f
je 0x1401219fd
mov r9d, edx
mov r11d, 1
and r9d, 0x7f
mov r8d, r11d
jmp 0x140121a8a
lea r8, [r14 + 1]
mov r9d, 0x7f
cmp r8, rbp
jne 0x140121a20
sub r8d, r14d
jmp 0x140121a80
cmp r14, rbp
je 0x140121a63
nop word [rax + rax]
movzx r10d, byte [r8]
mov edx, r10d
and edx, 0x7f
cmp rcx, 0x20
jae 0x140121c8b
mov eax, ebx
shr eax, cl
cmp eax, edx
jb 0x140121c8b
shl edx, cl
mov eax, edx
not eax
cmp eax, r9d
jb 0x140121c8b
add r9d, edx
test r10b, r10b
jns 0x140121a63
inc r8
add rcx, 7
cmp r8, rbp
jne 0x140121a20
mov qword [rdi + 0xd8], rcx
cmp r8, rbp
jne 0x140121a74
sub r8d, r14d
jmp 0x140121a80
sub r8d, r14d
mov r11d, 1
inc r8d
cmp r8d, 0xffffffff
je 0x140121c8b
cmp r9d, 0x10000
ja 0x140121c8b
mov edx, r9d
mov eax, r8d
mov qword [rdi + 0xb8], rdx
test r8d, r8d
js 0x140121c9f
movsxd rax, r8d
add r14, rax
test r11d, r11d
je 0x140121c7d
cmp byte [rdi + 0xe8], 0
je 0x140121adf
lea rcx, [rdi + 0x40]
call fcn.140126fb0
mov rdx, qword [rdi + 0xb8]
mov eax, ntohs
add rdx, rdx
jmp 0x140121ae4
mov eax, ntohs
inc rdx
mov dword [rdi + 0xe4], eax
mov r8, rsi
lea rcx, [rdi + 0xa0]
call fcn.140126d70
test eax, eax
jne 0x140121c9f
mov rdx, qword [rdi + 0xa0]
lea rcx, [rdi + 0x70]
mov r8, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x10]
call fcn.1401228d0
mov r15d, 1
mov ebx, 0xffffffff
lea r10, [0x140000000]
xor r11d, r11d
jmp 0x140121324
cmp dword [rsp + 0xb8], 0
je 0x140121b56
mov eax, dword [rdi + 0xe4]
dec eax
cmp eax, 1
ja 0x140121c8b
or dword [r12], 1
sub r14d, r13d
mov eax, r14d
jmp 0x140121ca3
cmp rcx, 0x3d
jb 0x140121b87
mov rax, qword [rdi + 0x10]
add rax, 0xffffffffffffffc3
add rcx, rax
mov rax, qword [rdi]
and rcx, qword [rdi + 8]
mov rdx, qword [rax + rcx*8]
movups xmm0, xmmword [rdx]
movsd xmm1, qword [rdx + 0x10]
jmp 0x140121bc5
shl rcx, 7
lea rax, [r10 + 0x1cba00]
add rax, rcx
mov byte [rsp + 0x3c], 0
mov qword [rsp + 0x28], rax
lea rax, [r10 + 0x1cba28]
add rax, rcx
mov qword [rsp + 0x30], rax
mov eax, dword [rcx + r10 + 0x1cba78]
movups xmm0, xmmword [rsp + 0x28]
mov dword [rsp + 0x38], eax
movsd xmm1, qword [rsp + 0x38]
mov rax, qword [rsp + 0x98]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
mov dword [rdi + 0xe4], 2
or dword [r12], 2
sub r14d, r13d
mov eax, r14d
jmp 0x140121ca3
lea rdx, [rdi + 0x70]
mov r9, rbp
mov r8, r14
mov rcx, rdi
call fcn.140120060
test eax, eax
js 0x140121c9f
movsxd rcx, eax
add r14, rcx
cmp qword [rdi + 0xb8], 0
jne 0x140121c7d
mov rax, qword [rdi + 0x88]
mov rdx, qword [rsp + 0x98]
mov byte [rax], 0
mov rcx, qword [rdi + 0x88]
sub rcx, qword [rdi + 0x80]
mov rax, qword [rdi + 0xa0]
mov qword [rax + 0x18], rcx
mov rcx, rdi
cmp dword [rdi + 0xe0], 2
jne 0x140121c92
call fcn.14011ff40
jmp 0x140121c97
lea rdx, [rdi + 0x70]
mov r9, rbp
mov r8, r14
mov rcx, rdi
call fcn.140120000
test eax, eax
js 0x140121c9f
movsxd rcx, eax
add r14, rcx
cmp qword [rdi + 0xb8], 0
je 0x140121c19
cmp dword [rsp + 0xb8], 0
je 0x140121be4
mov eax, 0xfffffdf5
jmp 0x140121c9f
call fcn.14011fe00
test eax, eax
je 0x140121bd5
mov byte [rdi + 0x3c], 1
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
add rsp, 0x58
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret