Function at 0x40edb1
Capabilities:
Encode data using base64

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.addInt
mov qword [rbp - 0x68], rax
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], 0
mov word [rbp - 0x50], 0
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.0041153a
mov qword [rbp - 0x60], 0x33
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
test rax, rax
je 0x40ee1f
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rax, qword [rax]
jmp 0x40ee24
mov eax, 0
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x60], 0x34
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x20]
lea rdx, [rax + 0x20]
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rcx, rax
call fcn.0040ec67
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.0040e9d2
mov qword [rbp - 0x60], 0x35
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x60], 0x36
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x60], 0x37
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], 0x38
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov rcx, qword [rbp - 0x10]
movabs rdx, 0x6666666666666667
mov rax, rcx
imul rdx
sar rdx, 2
mov rax, rcx
sar rax, 0x3f
sub rdx, rax
mov rax, rdx
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x60], 0x39
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
lea r8, [rdx + rax]
mov rdx, qword [rbp - 0x28]
mov eax, 0
sub rax, rdx
shl rax, 2
sub rax, rdx
add rax, rax
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
test rax, rax
jle 0x40ef4f
mov rax, qword [rbp - 0x10]
mov r9d, eax
mov rax, qword [rbp - 0x28]
mov edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub r9d, eax
mov eax, r9d
add eax, 0x30
jmp 0x40ef6b
mov rax, qword [rbp - 0x28]
mov edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
mov edx, eax
mov rax, qword [rbp - 0x10]
sub edx, eax
mov eax, edx
add eax, 0x30
mov byte [rcx + r8 + 0x10], al
mov qword [rbp - 0x60], 0x3a
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
add qword [rbp - 8], 1
mov qword [rbp - 0x60], 0x3b
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x60], 0x3c
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
cmp qword [rbp - 0x10], 0
je 0x40efc3
nop
jmp 0x40eea7
nop
mov qword [rbp - 0x60], 0x3d
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
cmp qword [rbp + 0x18], 0
jns 0x40f022
mov qword [rbp - 0x60], 0x3e
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 8]
add rdx, rcx
mov byte [rax + rdx + 0x10], 0x2d
mov qword [rbp - 0x60], 0x3f
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
add qword [rbp - 8], 1
jmp 0x40f023
nop
mov qword [rbp - 0x60], 0x40
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
add rdx, rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rcx, rax
call fcn.0040ec67
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.0040e9d2
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x60], 0x42
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 8]
mov rdx, rax
shr rdx, 0x3f
add rax, rdx
sar rax, 1
sub rax, 1
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x60], 0x4d
lea rax, [0x0042f2c8]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x60], 0x4e
lea rax, [0x0042f2c8]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x18]
cmp rax, qword [rbp - 0x38]
jg 0x40f195
mov qword [rbp - 0x60], 0x42
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x60], 0x43
lea rax, str.C:_nimlib_system_strmantle.nim
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x39], 0
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x30]
add rdx, rcx
movzx eax, byte [rax + rdx + 0x10]
mov byte [rbp - 0x39], al
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x30]
add rcx, rdx
mov rdx, qword [rbp + 0x10]
mov rdx, qword [rdx]
mov r9, qword [rbp - 0x20]
mov r8, qword [rbp - 8]
add r8, r9
sub r8, qword [rbp - 0x30]
sub r8, 1
movzx edx, byte [rdx + r8 + 0x10]
mov byte [rax + rcx + 0x10], dl
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 8]
add rdx, rcx
sub rdx, qword [rbp - 0x30]
lea rcx, [rdx - 1]
movzx edx, byte [rbp - 0x39]
mov byte [rax + rcx + 0x10], dl
mov qword [rbp - 0x60], 0x50
lea rax, [0x0042f2c8]
mov qword [rbp - 0x58], rax
add qword [rbp - 0x18], 1
jmp 0x40f0c6
nop
call fcn.004054f9
nop
add rsp, 0x90
pop rbp
ret