Function at 0x402a70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee58e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push edi
mov ecx, 0x524078
mov dword [ebp - 0x28], 0
call fcn.004c6bbd
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 1
test eax, eax
je 0x402ee8
push esi
mov edx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [edx]
inc edx
mov byte [ebp + ecx - 0x14], al
inc ecx
mov ah, byte [ebp - 0x12]
mov dword [ebp + 0xc], edx
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x10], ah
mov byte [ebp - 0xe], dl
mov byte [ebp - 0xf], dh
cmp ecx, 3
jne 0x402c68
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
and ah, 0x3f
mov cl, dl
shr al, 6
and cl, 0xf
mov byte [ebp - 0x15], ah
shl cl, 2
add cl, al
xor eax, eax
mov byte [ebp - 0x16], cl
mov dword [ebp - 0x24], eax
nop dword [eax + eax]
cmp dword [0x522404], 0x10
mov ecx, 0x5223f0
movzx eax, byte [ebp + eax - 0x18]
cmovae ecx, dword [0x5223f0]
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x1c], edx
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0xd], al
mov dword [ebp - 0x30], ecx
cmp ecx, edx
jae 0x402b9d
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x402b8d
mov eax, dword [edi]
add eax, ecx
mov cl, byte [ebp - 0xd]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x402c4d
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x402ef9
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x2c], eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x402bc7
mov esi, SysReAllocString
jmp 0x402be5
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x402bdd
mov esi, SysReAllocString
jmp 0x402be5
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00402940
cmp dword [ebp - 0x1c], 0x10
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x14], esi
mov dword [ebp - 0x20], ecx
push eax
lea esi, [ecx + eax]
mov dword [ebp - 0x30], esi
jb 0x402c35
mov esi, dword [edi]
push esi
push ecx
call fcn.004cabc0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
mov ecx, edi
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push esi
call fcn.00402f00
jmp 0x402c48
push edi
push ecx
call fcn.004cabc0
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 0x402b50
mov dl, byte [ebp - 0xe]
xor ecx, ecx
mov dh, byte [ebp - 0xf]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x402ae1
test ecx, ecx
je 0x402ee7
cmp ecx, 3
jge 0x402ca6
mov eax, 3
sub eax, ecx
push eax
lea eax, [ebp - 0x14]
add eax, ecx
push 0
push eax
call fcn.004cb140
mov ah, byte [ebp - 0x12]
add esp, 0xc
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
jmp 0x402ca9
mov ah, byte [ebp - 0x10]
mov al, dh
and dh, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, ah
mov byte [ebp - 0x17], dh
shr al, 6
and ah, 0x3f
add dl, al
mov byte [ebp - 0x15], ah
mov byte [ebp - 0x16], dl
xor eax, eax
lea edx, [ecx + 1]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], edx
test edx, edx
jle 0x402dfe
nop word [eax + eax]
cmp dword [0x522404], 0x10
mov ecx, 0x5223f0
movzx eax, byte [ebp + eax - 0x18]
cmovae ecx, dword [0x5223f0]
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 - 0x2c], ecx
cmp ecx, edx
jae 0x402d3d
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x402d2d
mov eax, dword [edi]
add eax, ecx
mov cl, byte [ebp + 0x13]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x402deb
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x402ef9
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x30], eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x402d67
mov esi, SysReAllocString
jmp 0x402d85
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x402d7d
mov esi, SysReAllocString
jmp 0x402d85
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00402940
cmp dword [ebp - 0x24], 0x10
mov ecx, dword [ebp - 0x30]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [edi + 0x14], esi
mov dword [ebp - 0x20], eax
push ecx
lea esi, [eax + ecx]
mov dword [ebp - 0x30], esi
jb 0x402dd3
mov esi, dword [edi]
push esi
push eax
call fcn.004cabc0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov cl, byte [ebp + 0x13]
mov byte [eax], cl
mov ecx, edi
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x24]
inc eax
push eax
push esi
call fcn.00402f00
jmp 0x402de6
push edi
push eax
call fcn.004cabc0
mov cl, byte [ebp + 0x13]
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 - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x34]
jl 0x402cf0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 3
jge 0x402ee7
mov edx, dword [edi + 0x14]
inc ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x30], ecx
mov dword [ebp + 0x10], edx
cmp ecx, edx
jae 0x402e35
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x402e2a
mov eax, dword [edi]
mov word [eax + ecx], 0x3d
jmp 0x402edb
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x402ef9
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x34], eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x402e5f
mov esi, SysReAllocString
jmp 0x402e7d
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x402e75
mov esi, SysReAllocString
jmp 0x402e7d
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00402940
cmp dword [ebp + 0x10], 0x10
mov ecx, dword [ebp - 0x34]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0x30]
mov dword [edi + 0x14], esi
mov dword [ebp - 0x24], eax
push ecx
lea esi, [eax + ecx]
mov dword [ebp - 0x34], esi
jb 0x402ec7
mov esi, dword [edi]
push esi
push eax
call fcn.004cabc0
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov ecx, edi
mov word [eax], 0x3d
mov eax, dword [ebp + 0x10]
inc eax
push eax
push esi
call fcn.00402f00
jmp 0x402ed6
push edi
push eax
call fcn.004cabc0
add esp, 0xc
mov word [esi], 0x3d
mov eax, dword [ebp - 0x24]
mov dword [edi], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, 3
jl 0x402e07
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00402920
int3