Function at 0x4051d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f7d1
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x482024]
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 + 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 0x40542d
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 0x405307
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
mov cl, ch
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor edi, edi
nop
cmp dword [0x482d60], 0x10
mov ecx, 0x482d4c
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x482d4c]
mov edx, dword [esi + 0x14]
mov bl, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x14], bl
cmp ecx, edx
jae 0x4052e1
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x4052d7
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x4052f3
push dword [ebp - 0x14]
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.004258a0
inc edi
cmp edi, 4
jl 0x4052a0
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 0x405242
mov dword [ebp - 0x14], edi
test edi, edi
je 0x405427
mov eax, edi
cmp edi, 3
jge 0x405340
cmp eax, 3
jae 0x40546d
mov byte [ebp + eax - 0x10], 0
inc eax
cmp eax, 3
jl 0x405324
mov dl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
mov cl, byte [ebp - 0x10]
jmp 0x405343
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 0x4053de
mov edi, eax
nop word [eax + eax]
cmp dword [0x482d60], 0x10
mov ecx, 0x482d4c
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x482d4c]
mov edx, dword [esi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x10], al
cmp ecx, edx
jae 0x4053c4
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x4053b7
mov eax, dword [esi]
mov dl, byte [ebp - 0x10]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x4053d6
push dword [ebp - 0x10]
mov byte [ebp - 0x1c], 0
push dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.004258a0
inc ebx
cmp ebx, edi
jl 0x405380
mov edi, dword [ebp - 0x14]
cmp edi, 3
jge 0x405427
mov ebx, 3
sub ebx, edi
nop word [eax + eax]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x405411
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x405409
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x405422
push 0x3d
mov byte [ebp - 0x1c], 0
push dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.004258a0
sub ebx, 1
jne 0x4053f0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x405459
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x40544f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405472
push edx
push ecx
call fcn.0042aeba
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.0042ab5f
call fcn.00445cee
int3