Function at 0x10155580
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [ebx + 4]
test esi, esi
mov dword [esp + 0xc], esi
jne 0x101555a3
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
mov dword [eax + 4], esi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, 0xaaaaaaab
mov ecx, 3
mul esi
mov edi, edx
mov eax, esi
xor edx, edx
div ecx
shr edi, 1
shl edi, 2
test edx, edx
je 0x101555c3
add edi, 4
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
inc edi
push edx
push edi
push eax
call fcn.10155930
add esp, 0xc
test eax, eax
jne 0x1015572c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebp
mov ebp, 1
mov dword [eax], edx
mov dword [eax + 4], edi
mov edi, dword [ebx]
test esi, esi
jbe 0x10155726
xor eax, eax
mov ecx, ebp
mov al, byte [edi]
inc edi
inc ebp
cmp ecx, esi
jae 0x101556e5
xor ecx, ecx
mov ebx, ebp
mov cl, byte [edi]
inc edi
inc ebp
cmp ebx, esi
jae 0x101556a3
xor ebx, ebx
mov bl, byte [edi]
inc edi
mov esi, ebx
mov ebx, eax
shr ebx, 2
and eax, 3
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_NEW_CERTIFICATE_REQUEST]
mov byte [edx], bl
mov edx, dword [esp + 0x18]
mov ebx, ecx
inc edx
shr ebx, 4
shl eax, 4
or ebx, eax
mov dword [esp + 0x18], edx
and ecx, 0xf
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_NEW_CERTIFICATE_REQUEST]
mov byte [edx], al
mov eax, dword [esp + 0x18]
mov edx, esi
inc eax
shl ecx, 2
shr edx, 6
or ecx, edx
mov dword [esp + 0x18], eax
and esi, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_NEW_CERTIFICATE_REQUEST]
mov byte [eax], cl
mov eax, dword [esp + 0x18]
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_NEW_CERTIFICATE_REQUEST]
mov esi, dword [esp + 0x10]
inc eax
mov dword [esp + 0x18], eax
mov byte [eax], dl
mov edx, dword [esp + 0x18]
inc edx
mov eax, ebp
inc ebp
cmp eax, esi
mov dword [esp + 0x18], edx
jb 0x101555fc
pop ebp
pop edi
pop esi
mov byte [edx], 0
xor eax, eax
pop ebx
pop ecx
ret
mov esi, eax
and eax, 3
shr esi, 2
shl eax, 4
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_NEW_CERTIFICATE_REQUEST]
mov esi, ecx
shr esi, 4
mov byte [edx], bl
mov edx, dword [esp + 0x18]
or esi, eax
inc edx
mov dword [esp + 0x18], edx
mov al, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_NEW_CERTIFICATE_REQUEST]
mov byte [edx], al
mov eax, dword [esp + 0x18]
inc eax
and ecx, 0xf
mov dword [esp + 0x18], eax
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_NEW_CERTIFICATE_REQUEST]
mov byte [eax], cl
jmp 0x10155715
mov ecx, eax
and eax, 3
shr ecx, 2
shl eax, 4
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_NEW_CERTIFICATE_REQUEST]
mov byte [edx], cl
mov ecx, dword [esp + 0x18]
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_NEW_CERTIFICATE_REQUEST]
inc ecx
mov dword [esp + 0x18], ecx
mov byte [ecx], dl
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov byte [eax], 0x3d
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov byte [eax], 0x3d
mov edx, dword [esp + 0x18]
inc edx
mov byte [edx], 0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret