Function at 0x40fa50
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a611
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x47802c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], 0
push 0x40
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.004314f0
mov dword [ebp - 4], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, dword [ebp + 8]
xor edi, edi
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x40], 1
test eax, eax
je 0x40fcbb
dec eax
mov dword [ebp + 8], eax
mov al, byte [ebx]
inc ebx
mov byte [ebp + edi - 0x14], al
inc edi
mov ah, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x3b], ah
mov byte [ebp - 0x39], ch
mov byte [ebp - 0x3a], cl
cmp edi, 3
jne 0x40fb9e
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x34], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x33], 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 - 0x32], cl
mov byte [ebp - 0x31], al
xor edi, edi
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
movzx eax, byte [ebp + edi - 0x34]
cmovae ecx, edx
mov edx, dword [esi + 0x14]
mov bl, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x18], bl
cmp ecx, edx
jae 0x40fb78
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x40fb6e
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x40fb8a
push dword [ebp - 0x18]
mov byte [ebp - 0x44], 0
push dword [ebp - 0x44]
push ecx
mov ecx, esi
call fcn.00433cf0
mov edx, dword [ebp - 0x30]
inc edi
cmp edi, 4
jl 0x40fb40
mov ebx, dword [ebp - 0x38]
xor edi, edi
mov ch, byte [ebp - 0x39]
mov cl, byte [ebp - 0x3a]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40fae3
mov dword [ebp - 0x18], edi
test edi, edi
je 0x40fcbb
mov eax, edi
cmp edi, 3
jge 0x40fbda
cmp eax, 3
jae 0x40fd0b
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x40fbbe
mov bl, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
jmp 0x40fbdd
mov bl, byte [ebp - 0x3b]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x34], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, bl
mov byte [ebp - 0x33], cl
shr al, 6
and bl, 0x3f
add ch, al
mov byte [ebp - 0x31], bl
lea eax, [edi + 1]
mov byte [ebp - 0x32], ch
xor ebx, ebx
mov dword [ebp - 0x38], eax
test eax, eax
jle 0x40fc78
mov edi, eax
nop dword [eax]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
movzx eax, byte [ebp + ebx - 0x34]
cmovae ecx, edx
mov edx, dword [esi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x14], al
cmp ecx, edx
jae 0x40fc5b
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x40fc4e
mov eax, dword [esi]
mov dl, byte [ebp - 0x14]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x40fc6d
push dword [ebp - 0x14]
mov byte [ebp - 0x38], 0
push dword [ebp - 0x38]
push ecx
mov ecx, esi
call fcn.00433cf0
mov edx, dword [ebp - 0x30]
inc ebx
cmp ebx, edi
jl 0x40fc20
mov edi, dword [ebp - 0x18]
cmp edi, 3
jge 0x40fcbb
mov ebx, 3
sub ebx, edi
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x40fca5
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x40fc9d
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x40fcb6
push 0x3d
mov byte [ebp - 0x38], 0
push dword [ebp - 0x38]
push ecx
mov ecx, esi
call fcn.00433cf0
sub ebx, 1
jne 0x40fc84
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x40fced
mov edx, dword [ebp - 0x30]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fce3
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd10
push ecx
push edx
call fcn.0043a86a
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a313
mov esp, ebp
pop ebp
ret
call fcn.0043a50f
call fcn.0044532a
int3