Function at 0x477c50
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3e8
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x50], r8
mov r8, qword [rdx]
test r8, r8
je 0x478388
mov qword [rsp + 0x70], rcx
mov rax, r8
shr rax, 0x3d
jne 0x478388
movzx ebx, word [rsp + 0x450]
mov qword [rsp + 0x68], rdx
movzx edx, word [rdx + 0x18]
mov qword [rsp + 0x80], r8
mov rcx, r8
mov word [rsp + 0x5e], dx
call fcn.004771f2
mov rsi, rax
mov ebp, edx
mov edx, 0xffffffa0
sub edx, ebp
lea r12, [rsp + 0x1f0]
mov rcx, r12
call fcn.004771ab
movzx edi, word [r12]
mov r8, qword [r12 + 8]
movzx r9d, word [r12 + 0x10]
mov rcx, rsi
mov edx, ebp
call fcn.00477290
mov rbp, rax
neg edx
movzx r13d, dx
mov r12d, r13d
and r12d, 0x3f
mov rsi, rax
mov ecx, r12d
shr rsi, cl
mov edx, 1
shl rdx, cl
lea r14, [rdx - 1]
mov r15, r14
movsx rax, bx
mov qword [rsp + 0x78], rax
and r15, rbp
je 0x477f0e
mov qword [rsp + 0x60], rdx
mov ecx, esi
call fcn.004772e3
mov r8d, edx
movzx ecx, al
mov r10d, ecx
sub r10d, edi
inc r10d
movzx r9d, word [rsp + 0x450]
cmp r10w, r9w
jle 0x477dc9
movsx rax, r10w
mov edx, r10d
sub edx, r9d
sub rax, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x48]
cmp rax, rbp
movsx r9, dx
cmovae r9, rbp
neg rcx
neg rbp
mov r11d, 1
mov edi, 0xa
test r8d, r8d
je 0x478388
lea rbx, [r11 + rbp]
mov eax, esi
xor edx, edx
div r8d
cmp rbx, 1
je 0x478388
mov esi, edx
add al, 0x30
mov rdx, qword [rsp + 0x50]
mov byte [rdx + r11 - 1], al
cmp r9, r11
je 0x477e19
lea rax, [rcx + r11]
cmp rax, 1
je 0x477e53
mov eax, r8d
xor edx, edx
div edi
inc r11
mov r8d, eax
jmp 0x477d7b
mov ecx, 0xa
mov rax, rbp
xor edx, edx
div rcx
mov edx, r8d
mov ecx, r12d
shl rdx, cl
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov word [rsp + 0x28], r9w
mov word [rsp + 0x20], r10w
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
lea rcx, [rsp + 0x88]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
xor r9d, r9d
jmp 0x477edd
mov eax, esi
mov ecx, r12d
shl rax, cl
add rax, r15
mov edx, r8d
shl rdx, cl
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x40], rcx
movzx ecx, word [rsp + 0x450]
mov word [rsp + 0x28], cx
mov word [rsp + 0x20], r10w
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rax
jmp 0x477ecb
dec r13d
and r13d, 0x3f
mov eax, 1
mov r8, qword [rsp + 0x60]
mov rdx, rax
mov ecx, r13d
shr rdx, cl
test rdx, rdx
jne 0x477f0e
cmp r11, qword [rsp + 0x48]
jae 0x478388
imul rdx, r15, 0xa
mov r15, rdx
and r15, r14
imul rax, rax, 0xa
mov ecx, r12d
shr rdx, cl
add dl, 0x30
mov rcx, qword [rsp + 0x50]
mov byte [rcx + r11], dl
inc r11
cmp r9, r11
jne 0x477e64
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r15
movzx eax, word [rsp + 0x450]
mov word [rsp + 0x28], ax
mov word [rsp + 0x20], r10w
lea rcx, [rsp + 0x88]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
call fcn.00477b99
cmp qword [rsp + 0x88], 0
je 0x477f0e
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx], xmm0
jmp 0x47836c
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + 8]
test rax, rax
je 0x478388
mov rcx, qword [rcx + 0x10]
test rcx, rcx
movzx edi, word [rsp + 0x5e]
mov rdx, qword [rsp + 0x80]
je 0x478388
add rcx, rdx
jb 0x478388
cmp rdx, rax
jb 0x478388
movzx esi, di
movsx rax, si
mov rcx, rdx
dec rcx
je 0x477f65
bsr rcx, rcx
xor rcx, 0x3f
jmp 0x477f6a
mov ecx, 0x40
sub rax, rcx
imul rax, rax, 0x4d104d42
movabs r13, 0x1344135080
add r13, rax
shr r13, 0x20
lea r15, [rsp + 0xa0]
mov rcx, r15
call fcn.004768a1
lea r14, [rsp + 0x14c]
mov r8d, 0x9c
mov rcx, r14
xor edx, edx
call sub.ntdll.dll_memset
mov qword [r14 + 0x9c], 1
mov dword [r14 - 4], 1
test di, di
js 0x477fd2
lea rcx, [rsp + 0xa0]
mov rdx, rsi
jmp 0x477fe0
neg esi
movsx rdx, si
lea rcx, [rsp + 0x148]
call fcn.00476a24
mov eax, r13d
neg eax
test r13w, r13w
cmovns rax, r13
lea r14, [rsp + 0x148]
cmovns r15, r14
movzx edx, ax
mov rcx, r15
call fcn.0047706b
mov rax, qword [r14 + 0xa0]
lea rsi, [rsp + 0x1f0]
mov qword [rsi + 0xa0], rax
mov r8d, 0xa0
mov rcx, rsi
mov rdx, r14
call sub.ntdll.dll_memcpy
mov rdi, qword [rsp + 0x48]
cmp rdi, 0xa
jb 0x47804e
mov rcx, rsi
mov edx, 0x3b9aca00
call fcn.00476c82
add rdi, 0xfffffffffffffff7
jmp 0x478035
lea rax, [0x006c2b1c]
mov edx, dword [rax + rdi*4]
lea rsi, [rsp + 0x1f0]
mov rcx, rsi
call fcn.00476c82
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.00476906
lea rdx, [rsp + 0x148]
mov rcx, rsi
call fcn.00477135
test al, al
je 0x478091
inc r13d
jmp 0x4780a3
lea rcx, [rsp + 0xa0]
mov edx, 0xa
call fcn.004769c5
movzx edx, word [rsp + 0x450]
cmp r13w, dx
jl 0x47828a
movsx rax, r13w
mov ecx, r13d
sub ecx, edx
sub rax, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x48]
cmp rax, rdx
movsx r14, cx
cmovae r14, rdx
test r14, r14
je 0x47828a
lea r15, [rsp + 0x148]
mov rax, qword [r15 + 0xa0]
lea rdi, [rsp + 0x340]
mov qword [rdi + 0xa0], rax
mov r8d, 0xa0
mov rcx, rdi
mov rdx, r15
call sub.ntdll.dll_memcpy
mov edx, 1
mov rcx, rdi
call fcn.00476a24
mov rax, qword [r15 + 0xa0]
lea rsi, [rsp + 0x298]
mov qword [rsi + 0xa0], rax
mov r8d, 0xa0
mov rcx, rsi
mov rdx, r15
call sub.ntdll.dll_memcpy
mov edx, 2
mov rcx, rsi
call fcn.00476a24
mov rax, qword [r15 + 0xa0]
lea rbp, [rsp + 0x1f0]
mov qword [rbp + 0xa0], rax
mov r8d, 0xa0
mov rcx, rbp
mov rdx, r15
call sub.ntdll.dll_memcpy
mov edx, 3
mov rcx, rbp
call fcn.00476a24
xor ebx, ebx
lea r12, [rsp + 0xa0]
cmp rbx, r14
je 0x478380
mov rax, qword [rsp + 0x140]
cmp rax, 0x29
jae 0x478388
lea rdx, [rbx + 1]
shl rax, 2
xor ecx, ecx
cmp rax, rcx
je 0x47833c
cmp dword [rsp + rcx + 0xa0], 0
lea rcx, [rcx + 4]
je 0x4781af
mov qword [rsp + 0x68], rdx
mov rsi, rdi
mov rcx, r12
mov rdx, rbp
call fcn.00477135
test al, al
je 0x4781ed
mov rcx, r12
mov rdx, rbp
call fcn.0047696c
mov bpl, 8
jmp 0x4781ef
xor ebp, ebp
lea rdi, [rsp + 0x298]
mov rcx, r12
mov rdx, rdi
call fcn.00477135
test al, al
je 0x478215
mov rcx, r12
mov rdx, rdi
call fcn.0047696c
or bpl, 4
mov rcx, r12
mov rdi, rsi
mov rdx, rsi
call fcn.00477135
test al, al
je 0x478236
mov rcx, r12
mov rdx, rdi
call fcn.0047696c
add bpl, 2
mov rcx, r12
mov rdx, r15
call fcn.00477135
test al, al
je 0x478253
mov rcx, r12
mov rdx, r15
call fcn.0047696c
inc bpl
cmp rbx, qword [rsp + 0x48]
je 0x478388
add bpl, 0x30
mov rax, qword [rsp + 0x50]
mov byte [rax + rbx], bpl
mov rcx, r12
mov edx, 0xa
call fcn.004769c5
mov rbx, qword [rsp + 0x68]
lea rbp, [rsp + 0x1f0]
jmp 0x47818a
xor edi, edi
xor r14d, r14d
lea rsi, [rsp + 0x148]
mov rcx, rsi
mov edx, 5
call fcn.004769c5
lea rcx, [rsp + 0xa0]
mov rdx, rsi
call fcn.00476cc5
cmp al, 1
jne 0x4782fb
cmp r14, qword [rsp + 0x48]
ja 0x478388
mov rcx, qword [rsp + 0x50]
mov rdx, r14
call fcn.00477148
test al, 1
movzx ecx, word [rsp + 0x450]
je 0x47831b
lea eax, [r13 + 1]
cmp r13w, cx
jl 0x47831e
cmp r14, qword [rsp + 0x48]
jae 0x47831e
mov rcx, qword [rsp + 0x50]
mov byte [rcx + r14], dl
inc r14
jmp 0x47831e
test al, al
sete al
test dil, al
je 0x47831b
lea rax, [r14 - 1]
cmp rax, qword [rsp + 0x48]
jae 0x478388
mov rcx, qword [rsp + 0x50]
test byte [rcx + rax], 1
jne 0x4782b8
mov eax, r13d
cmp r14, qword [rsp + 0x48]
ja 0x478388
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x50]
mov qword [rcx], rdx
mov qword [rcx + 8], r14
mov word [rcx + 0x10], ax
jmp 0x47836c
cmp r14, qword [rsp + 0x48]
ja 0x478388
mov rax, qword [rsp + 0x50]
cmp r14, rbx
je 0x478356
mov byte [rax + rbx], 0x30
inc rbx
jmp 0x478348
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov qword [rax + 8], r14
mov word [rax + 0x10], r13w
add rsp, 0x3e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dil, 1
jmp 0x47828f
ud2