Function at 0x405990
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d1be
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x43a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
xor esi, esi
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], eax
cmp eax, ecx
je 0x405bd7
mov al, byte [eax]
mov byte [ebp + esi - 0x18], al
inc esi
mov dl, byte [ebp - 0x16]
mov cl, byte [ebp - 0x18]
mov bh, byte [ebp - 0x17]
mov byte [ebp - 0x22], dl
mov byte [ebp - 0x21], cl
cmp esi, 3
jne 0x405ab4
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x1c], al
mov al, bh
shl cl, 4
shr al, 4
add cl, al
mov al, dl
mov byte [ebp - 0x1b], cl
mov cl, bh
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, dl
and al, 0x3f
mov byte [ebp - 0x1a], cl
mov byte [ebp - 0x19], al
xor esi, esi
cmp dword [0x43aa34], 0x10
mov ecx, 0x43aa20
movzx eax, byte [ebp + esi - 0x1c]
cmovae ecx, dword [0x43aa20]
mov edx, dword [edi + 0x14]
mov bl, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0x14], bl
cmp ecx, edx
jae 0x405a94
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x405a8a
mov eax, dword [edi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x405aa6
push dword [ebp - 0x14]
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push ecx
mov ecx, edi
call fcn.0040b0e0
inc esi
cmp esi, 4
jl 0x405a53
mov cl, byte [ebp - 0x21]
xor esi, esi
mov dl, byte [ebp - 0x22]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x20]
jne 0x405a01
mov dword [ebp - 0x14], esi
test esi, esi
je 0x405bd7
mov eax, esi
cmp esi, 3
jge 0x405af3
cmp eax, 3
jae 0x405beb
mov byte [ebp + eax - 0x18], 0
inc eax
cmp eax, 3
jl 0x405ad9
mov dl, byte [ebp - 0x16]
mov bh, byte [ebp - 0x17]
mov cl, byte [ebp - 0x18]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x1c], al
mov al, bh
shr al, 4
and bh, 0xf
shl cl, 4
add cl, al
shl bh, 2
mov al, dl
mov byte [ebp - 0x1b], cl
shr al, 6
and dl, 0x3f
add bh, al
mov byte [ebp - 0x19], dl
lea eax, [esi + 1]
mov byte [ebp - 0x1a], bh
xor ebx, ebx
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x405b8e
mov esi, eax
nop
cmp dword [0x43aa34], 0x10
mov ecx, 0x43aa20
movzx eax, byte [ebp + ebx - 0x1c]
cmovae ecx, dword [0x43aa20]
mov edx, dword [edi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0x10], al
cmp ecx, edx
jae 0x405b74
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x405b67
mov eax, dword [edi]
mov dl, byte [ebp - 0x10]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x405b86
push dword [ebp - 0x10]
mov byte [ebp - 0x20], 0
push dword [ebp - 0x20]
push ecx
mov ecx, edi
call fcn.0040b0e0
inc ebx
cmp ebx, esi
jl 0x405b30
mov esi, dword [ebp - 0x14]
cmp esi, 3
jge 0x405bd7
mov ebx, 3
sub ebx, esi
nop word [eax + eax]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, edx
jae 0x405bc1
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x405bb9
mov eax, dword [edi]
mov word [eax + ecx], 0x3d
jmp 0x405bd2
push 0x3d
mov byte [ebp - 0x20], 0
push dword [ebp - 0x20]
push ecx
mov ecx, edi
call fcn.0040b0e0
sub ebx, 1
jne 0x405ba0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00417bdb
int3