Function at 0x402ad0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcf3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push edi
mov ecx, 0x510078
mov dword [ebp - 0x28], 0
call fcn.004b7c9d
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 0x402f48
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 0x402cc8
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 [0x50e21c], 0x10
mov ecx, 0x50e208
movzx eax, byte [ebp + eax - 0x18]
cmovae ecx, dword [0x50e208]
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 0x402bfd
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x402bed
mov eax, dword [edi]
add eax, ecx
mov cl, byte [ebp - 0xd]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x402cad
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x402f59
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x2c], eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x402c27
mov esi, SysReAllocString
jmp 0x402c45
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x402c3d
mov esi, SysReAllocString
jmp 0x402c45
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.004029a0
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 0x402c95
mov esi, dword [edi]
push esi
push ecx
call fcn.004ba780
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.00402f60
jmp 0x402ca8
push edi
push ecx
call fcn.004ba780
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 0x402bb0
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 0x402b41
test ecx, ecx
je 0x402f47
cmp ecx, 3
jge 0x402d06
mov eax, 3
sub eax, ecx
push eax
lea eax, [ebp - 0x14]
add eax, ecx
push 0
push eax
call fcn.004bad00
mov ah, byte [ebp - 0x12]
add esp, 0xc
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
jmp 0x402d09
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 0x402e5e
nop word [eax + eax]
cmp dword [0x50e21c], 0x10
mov ecx, 0x50e208
movzx eax, byte [ebp + eax - 0x18]
cmovae ecx, dword [0x50e208]
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 0x402d9d
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x402d8d
mov eax, dword [edi]
add eax, ecx
mov cl, byte [ebp + 0x13]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x402e4b
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x402f59
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x30], eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x402dc7
mov esi, SysReAllocString
jmp 0x402de5
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x402ddd
mov esi, SysReAllocString
jmp 0x402de5
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.004029a0
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 0x402e33
mov esi, dword [edi]
push esi
push eax
call fcn.004ba780
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.00402f60
jmp 0x402e46
push edi
push eax
call fcn.004ba780
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 0x402d50
mov ecx, dword [ebp - 0x1c]
cmp ecx, 3
jge 0x402f47
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 0x402e95
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x402e8a
mov eax, dword [edi]
mov word [eax + ecx], 0x3d
jmp 0x402f3b
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x402f59
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x34], eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x402ebf
mov esi, SysReAllocString
jmp 0x402edd
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x402ed5
mov esi, SysReAllocString
jmp 0x402edd
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.004029a0
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 0x402f27
mov esi, dword [edi]
push esi
push eax
call fcn.004ba780
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.00402f60
jmp 0x402f36
push edi
push eax
call fcn.004ba780
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 0x402e67
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.00402980
int3