Function at 0x402930
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7fbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push edi
mov ecx, 0x510030
mov dword [ebp - 0x28], 0
call fcn.004b532d
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 1
test eax, eax
je 0x402dc6
push esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + ebx - 0x14], al
inc ebx
mov dl, byte [ebp - 0x13]
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0x10], ch
mov byte [ebp - 0xe], dl
mov byte [ebp - 0xf], cl
cmp ebx, 3
jne 0x402b27
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
and ch, 0x3f
mov cl, dl
shr al, 6
and cl, 0xf
mov byte [ebp - 0x15], ch
shl cl, 2
add cl, al
xor eax, eax
mov byte [ebp - 0x16], cl
mov dword [ebp - 0x24], eax
nop word [eax + eax]
cmp dword [0x50e22c], 0x10
mov ecx, 0x50e218
movzx eax, byte [ebp + eax - 0x18]
cmovae ecx, dword [0x50e218]
mov ebx, dword [edi + 0x10]
mov dl, byte [eax + ecx]
mov ecx, dword [edi + 0x14]
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x1c], ecx
cmp ebx, ecx
jae 0x402a47
lea eax, [ebx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp ecx, 0x10
jb 0x402a3a
mov eax, dword [edi]
mov byte [eax + ebx], dl
mov byte [eax + ebx + 1], 0
jmp 0x402b0c
mov eax, SysReAllocString
sub eax, ebx
cmp eax, 1
jb 0x402dd8
lea esi, [ebx + 1]
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x402a6c
mov esi, SysReAllocString
jmp 0x402a8a
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x402a82
mov esi, SysReAllocString
jmp 0x402a8a
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00402800
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebx + 1]
mov dword [edi + 0x14], esi
mov dword [ebp - 0x20], eax
lea esi, [eax + ebx]
mov dword [edi + 0x10], ecx
mov dword [ebp - 0x2c], esi
push ebx
jb 0x402af4
mov esi, dword [edi]
push esi
push eax
call fcn.004b7e80
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
mov ecx, dword [ebp - 0x1c]
inc ecx
mov byte [eax + 1], 0
cmp ecx, 0x1000
jb 0x402ae8
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x402ddd
mov esi, edx
push ecx
push esi
call fcn.004b531f
add esp, 8
jmp 0x402b07
push edi
push eax
call fcn.004b7e80
mov cl, byte [ebp - 0xd]
add esp, 0xc
mov byte [esi], cl
mov byte [esi + 1], 0
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 4
jl 0x402a00
mov dl, byte [ebp - 0xe]
xor ebx, ebx
mov cl, byte [ebp - 0xf]
mov ch, byte [ebp - 0x10]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x402994
test ebx, ebx
je 0x402dc5
cmp ebx, 3
jge 0x402b60
mov eax, 3
sub eax, ebx
push eax
lea eax, [ebp - 0x14]
add eax, ebx
push 0
push eax
call fcn.004b8400
mov ch, byte [ebp - 0x12]
add esp, 0xc
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
and ch, 0x3f
shr al, 6
add dl, al
mov byte [ebp - 0x15], ch
xor eax, eax
mov byte [ebp - 0x16], dl
lea ecx, [ebx + 1]
mov dword [ebp - 0x1c], eax
test ecx, ecx
jle 0x402ccc
nop
cmp dword [0x50e22c], 0x10
mov ecx, 0x50e218
movzx eax, byte [ebp + eax - 0x18]
cmovae ecx, dword [0x50e218]
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x24], edx
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp + 0x13], al
mov dword [ebp - 0x14], ecx
cmp ecx, edx
jae 0x402bed
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x402bdd
mov eax, dword [edi]
mov dl, byte [ebp + 0x13]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x402cba
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x402dd8
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x2c], eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x402c17
mov esi, SysReAllocString
jmp 0x402c35
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x402c2d
mov esi, SysReAllocString
jmp 0x402c35
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00402800
cmp dword [ebp - 0x24], 0x10
mov ecx, dword [ebp - 0x2c]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x14], esi
mov dword [ebp - 0x20], eax
push ecx
lea esi, [eax + ecx]
mov dword [ebp - 0x2c], esi
jb 0x402ca2
mov esi, dword [edi]
push esi
push eax
call fcn.004b7e80
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov dl, byte [ebp + 0x13]
inc ecx
mov byte [eax], dl
mov byte [eax + 1], 0
cmp ecx, 0x1000
jb 0x402c96
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x402ddd
mov esi, edx
push ecx
push esi
call fcn.004b531f
add esp, 8
jmp 0x402cb5
push edi
push eax
call fcn.004b7e80
mov dl, byte [ebp + 0x13]
add esp, 0xc
mov byte [esi], dl
mov byte [esi + 1], 0
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebx + 1]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, ecx
jl 0x402ba0
cmp ebx, 3
jge 0x402dc5
mov ecx, dword [edi + 0x14]
inc ebx
mov dword [ebp - 0x20], ebx
mov ebx, dword [edi + 0x10]
mov dword [ebp + 0x10], ecx
cmp ebx, ecx
jae 0x402d00
lea eax, [ebx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp ecx, 0x10
jb 0x402cf5
mov eax, dword [edi]
mov word [eax + ebx], 0x3d
jmp 0x402db9
mov eax, SysReAllocString
sub eax, ebx
cmp eax, 1
jb 0x402dd8
lea esi, [ebx + 1]
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x402d25
mov esi, SysReAllocString
jmp 0x402d43
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x402d3b
mov esi, SysReAllocString
jmp 0x402d43
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00402800
cmp dword [ebp + 0x10], 0x10
lea ecx, [ebx + 1]
mov dword [edi + 0x14], esi
mov dword [ebp - 0x24], eax
lea esi, [eax + ebx]
mov dword [edi + 0x10], ecx
mov dword [ebp - 0x2c], esi
push ebx
jb 0x402da5
mov esi, dword [edi]
push esi
push eax
call fcn.004b7e80
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, dword [ebp + 0x10]
inc ecx
mov word [eax], 0x3d
cmp ecx, 0x1000
jb 0x402d99
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x402ddd
mov esi, edx
push ecx
push esi
call fcn.004b531f
add esp, 8
jmp 0x402db4
push edi
push eax
call fcn.004b7e80
add esp, 0xc
mov word [esi], 0x3d
mov eax, dword [ebp - 0x24]
mov dword [edi], eax
mov ebx, dword [ebp - 0x20]
cmp ebx, 3
jl 0x402cd5
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004027e0
call fcn.004bba0f
int3