Function at 0x402510
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c45e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x41614c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x2c], 0
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 ecx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
test eax, eax
je 0x402a62
nop dword [eax]
mov ebx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ebx]
inc ebx
mov byte [ebp + ecx - 0x14], al
inc ecx
mov ah, byte [ebp - 0x12]
mov dword [ebp + 0xc], ebx
mov bl, byte [ebp - 0x13]
mov bh, byte [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x10], ah
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xf], bh
cmp ecx, 3
jne 0x40274b
mov al, bh
mov cl, bh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, bl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
and ah, 0x3f
mov cl, bl
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 - 0x28], eax
cmp dword [edx + 0x14], 0x10
mov ecx, edx
jb 0x4025f1
mov ecx, dword [edx]
movzx eax, byte [ebp + eax - 0x18]
mov ebx, dword [edi + 0x14]
mov dword [ebp - 0x24], ebx
mov dl, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
jae 0x402628
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp ebx, 0x10
jb 0x40261b
mov eax, dword [edi]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x40272d
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x402a7e
lea esi, [ecx + 1]
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x402650
mov esi, 0x7fffffff
lea eax, [esi + 0x24]
jmp 0x402687
mov edx, ebx
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp ebx, eax
jbe 0x402669
mov esi, 0x7fffffff
lea eax, [esi + 0x24]
jmp 0x402687
lea eax, [ebx + edx]
cmp esi, eax
cmovb esi, eax
lea edx, [esi + 1]
cmp edx, 0x1000
jb 0x4026a6
lea eax, [edx + 0x23]
cmp eax, edx
jbe 0x402a88
push eax
call fcn.0040b40c
add esp, 4
test eax, eax
je 0x402a78
mov ecx, dword [ebp - 0x1c]
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4026bc
test edx, edx
je 0x4026ba
push edx
call fcn.0040b40c
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov ebx, eax
jmp 0x4026bc
xor ebx, ebx
cmp dword [ebp - 0x24], 0x10
lea eax, [ecx + 1]
mov dword [edi + 0x14], esi
lea esi, [ebx + ecx]
mov dword [edi + 0x10], eax
mov dword [ebp - 0x1c], esi
push ecx
jb 0x402718
mov esi, dword [edi]
push esi
push ebx
call fcn.0040c1ec
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
mov ecx, dword [ebp - 0x24]
inc ecx
mov byte [eax + 1], 0
cmp ecx, 0x1000
jb 0x40270c
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x402a78
mov esi, edx
push ecx
push esi
call fcn.0040b43c
add esp, 8
jmp 0x40272b
push edi
push ebx
call fcn.0040c1ec
mov cl, byte [ebp - 0xd]
add esp, 0xc
mov byte [esi], cl
mov byte [esi + 1], 0
mov dword [edi], ebx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, 4
jl 0x4025e7
mov bl, byte [ebp - 0xe]
xor ecx, ecx
mov bh, byte [ebp - 0xf]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x402580
test ecx, ecx
je 0x402a62
mov eax, ecx
cmp ecx, 3
jge 0x402784
cmp eax, 3
jae 0x402a83
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x402768
mov ah, byte [ebp - 0x12]
mov bl, byte [ebp - 0x13]
mov bh, byte [ebp - 0x14]
jmp 0x402787
mov ah, byte [ebp - 0x10]
mov al, bh
and bh, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, bl
shr al, 4
and bl, 0xf
shl bh, 4
add bh, al
shl bl, 2
mov al, ah
mov byte [ebp - 0x17], bh
shr al, 6
and ah, 0x3f
add bl, al
mov byte [ebp - 0x15], ah
mov byte [ebp - 0x16], bl
xor eax, eax
lea ebx, [ecx + 1]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jle 0x402924
cmp dword [edx + 0x14], 0x10
mov ecx, edx
jb 0x4027d2
mov ecx, dword [edx]
movzx eax, byte [ebp + eax - 0x18]
mov ebx, dword [edi + 0x14]
mov dword [ebp - 0x28], ebx
mov dl, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp + 0x13], dl
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jae 0x402809
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp ebx, 0x10
jb 0x4027fc
mov eax, dword [edi]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x40290e
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x402a7e
lea esi, [ecx + 1]
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x402831
mov esi, 0x7fffffff
lea eax, [esi + 0x24]
jmp 0x402868
mov edx, ebx
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp ebx, eax
jbe 0x40284a
mov esi, 0x7fffffff
lea eax, [esi + 0x24]
jmp 0x402868
lea eax, [ebx + edx]
cmp esi, eax
cmovb esi, eax
lea edx, [esi + 1]
cmp edx, 0x1000
jb 0x402887
lea eax, [edx + 0x23]
cmp eax, edx
jbe 0x402a88
push eax
call fcn.0040b40c
add esp, 4
test eax, eax
je 0x402a78
mov ecx, dword [ebp + 0xc]
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x40289d
test edx, edx
je 0x40289b
push edx
call fcn.0040b40c
mov ecx, dword [ebp + 0xc]
add esp, 4
mov ebx, eax
jmp 0x40289d
xor ebx, ebx
cmp dword [ebp - 0x28], 0x10
lea eax, [ecx + 1]
mov dword [edi + 0x14], esi
lea esi, [ebx + ecx]
mov dword [edi + 0x10], eax
mov dword [ebp + 0xc], esi
push ecx
jb 0x4028f9
mov esi, dword [edi]
push esi
push ebx
call fcn.0040c1ec
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov cl, byte [ebp + 0x13]
mov byte [eax], cl
mov ecx, dword [ebp - 0x28]
inc ecx
mov byte [eax + 1], 0
cmp ecx, 0x1000
jb 0x4028ed
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x402a78
mov esi, edx
push ecx
push esi
call fcn.0040b43c
add esp, 8
jmp 0x40290c
push edi
push ebx
call fcn.0040c1ec
mov cl, byte [ebp + 0x13]
add esp, 0xc
mov byte [esi], cl
mov byte [esi + 1], 0
mov dword [edi], ebx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x14]
jl 0x4027c8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 3
jge 0x402a62
nop dword [eax]
mov ebx, dword [edi + 0x14]
inc ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0xc], ebx
cmp ecx, ebx
jae 0x40295e
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp ebx, 0x10
jb 0x402953
mov eax, dword [edi]
mov word [eax + ecx], 0x3d
jmp 0x402a56
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x402a7e
lea esi, [ecx + 1]
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x402986
mov esi, 0x7fffffff
lea ecx, [esi + 0x24]
jmp 0x4029bc
mov edx, ebx
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp ebx, eax
jbe 0x40299f
mov esi, 0x7fffffff
lea ecx, [esi + 0x24]
jmp 0x4029bc
lea eax, [ebx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x4029db
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x402a88
push ecx
call fcn.0040b40c
add esp, 4
test eax, eax
je 0x402a78
mov ecx, dword [ebp + 0x10]
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4029f1
test eax, eax
je 0x4029ef
push eax
call fcn.0040b40c
mov ecx, dword [ebp + 0x10]
add esp, 4
mov ebx, eax
jmp 0x4029f1
xor ebx, ebx
cmp dword [ebp + 0xc], 0x10
lea eax, [ecx + 1]
mov dword [edi + 0x14], esi
lea esi, [ebx + ecx]
mov dword [edi + 0x10], eax
mov dword [ebp + 0x10], esi
push ecx
jb 0x402a45
mov esi, dword [edi]
push esi
push ebx
call fcn.0040c1ec
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
inc ecx
mov word [eax], 0x3d
cmp ecx, 0x1000
jb 0x402a39
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x402a78
mov esi, edx
push ecx
push esi
call fcn.0040b43c
add esp, 8
jmp 0x402a54
push edi
push ebx
call fcn.0040c1ec
add esp, 0xc
mov word [esi], 0x3d
mov dword [edi], ebx
mov ecx, dword [ebp - 0x1c]
cmp ecx, 3
jl 0x402930
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [0x40e580]
call fcn.00401d80
call fcn.0040b7bd
call fcn.00401d60
int3