Function at 0x405af0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3b78de6
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x3b96124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, dword [ebp + 0x1c]
lea ebx, [ebp + 8]
mov ecx, dword [ebp + 8]
cmp eax, 0x10
mov edx, dword [ebp + 0x18]
cmovae ebx, ecx
mov dword [ebp - 0x24], 1
xor edi, edi
test edx, edx
je 0x405d4d
mov al, byte [ebx]
dec edx
mov byte [ebp + edi - 0x10], al
inc ebx
mov ah, byte [ebp - 0xe]
inc edi
mov ch, byte [ebp - 0xf]
mov cl, byte [ebp - 0x10]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x1f], ah
mov byte [ebp - 0x1d], ch
mov byte [ebp - 0x1e], cl
cmp edi, 3
jne 0x405c2b
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
and ah, 0x3f
mov cl, ch
shr al, 6
and cl, 0xf
mov byte [ebp - 0x15], ah
shl cl, 2
add cl, al
xor edi, edi
mov byte [ebp - 0x16], cl
cmp dword [0x3b96f50], 0x10
mov ecx, 0x3b96f3c
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x3b96f3c]
mov edx, dword [esi + 0x14]
mov bl, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x14], bl
cmp ecx, edx
jae 0x405c05
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x405bfb
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x405c17
push dword [ebp - 0x14]
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.00426180
inc edi
cmp edi, 4
jl 0x405bc4
mov edx, dword [ebp - 0x2c]
xor edi, edi
mov ebx, dword [ebp - 0x1c]
mov ch, byte [ebp - 0x1d]
mov cl, byte [ebp - 0x1e]
test edx, edx
jne 0x405b68
mov dword [ebp - 0x14], edi
test edi, edi
je 0x405d47
mov eax, edi
cmp edi, 3
jge 0x405c64
cmp eax, 3
jae 0x405d8d
mov byte [ebp + eax - 0x10], 0
inc eax
cmp eax, 3
jl 0x405c48
mov dl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
mov cl, byte [ebp - 0x10]
jmp 0x405c67
mov dl, byte [ebp - 0x1f]
mov al, cl
shr dl, 6
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
xor ebx, ebx
mov al, ch
shl cl, 4
shr al, 4
and ch, 0xf
add cl, al
shl ch, 2
lea eax, [edi + 1]
mov byte [ebp - 0x17], cl
add ch, dl
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x16], ch
test eax, eax
jle 0x405cfe
mov edi, eax
nop dword [eax + eax]
cmp dword [0x3b96f50], 0x10
mov ecx, 0x3b96f3c
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x3b96f3c]
mov edx, dword [esi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x10], al
cmp ecx, edx
jae 0x405ce4
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x405cd7
mov eax, dword [esi]
mov dl, byte [ebp - 0x10]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x405cf6
push dword [ebp - 0x10]
mov byte [ebp - 0x1c], 0
push dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.00426180
inc ebx
cmp ebx, edi
jl 0x405ca0
mov edi, dword [ebp - 0x14]
cmp edi, 3
jge 0x405d47
mov ebx, 3
sub ebx, edi
nop word [eax + eax]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x405d31
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x405d29
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x405d42
push 0x3d
mov byte [ebp - 0x1c], 0
push dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.00426180
sub ebx, 1
jne 0x405d10
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x405d79
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x405d6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d92
push edx
push ecx
call fcn.0042af96
add esp, 8
mov eax, esi
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.0042ac3a
call fcn.0042fca5
int3