Function at 0x103aa11
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x103aa2c
mov esi, 0x80070057
jmp 0x103acd5
cmp dword [ebp + 0x14], 0
je 0x103aa22
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x103aa37
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
cmp eax, ecx
jae 0x103aa4e
mov ecx, eax
and dword [ebp + 0xc], 0
lea ebx, [edi + ecx*2]
jmp 0x103ab91
movzx eax, word [edi]
mov ecx, pe_nt_image_headers32
cmp ax, cx
jae 0x103aa22
movzx ecx, ax
cmp byte [ecx + 0x1002918], 0x3f
jbe 0x103ab77
cmp ax, 0x20
je 0x103ab8f
cmp ax, 9
je 0x103ab8f
cmp ax, 0xd
je 0x103ab8f
cmp ax, 0xa
je 0x103ab8f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x103aa22
and eax, 3
je 0x103aac2
cmp word [edi], 0x3d
jne 0x103aa22
cmp eax, 1
je 0x103aa22
mov ecx, dword [ebp + 0xc]
shr ecx, 2
xor esi, esi
cmp ecx, esi
je 0x103aba6
mov ebx, ecx
imul ebx, ebx, 3
push 3
xor edx, edx
mov eax, ebx
pop edi
div edi
cmp eax, ecx
je 0x103ab9e
mov eax, 0x80070216
mov esi, eax
mov ecx, dword [0x12d2c30]
cmp ecx, 0x12d2c30
je 0x103ab16
test byte [ecx + 0x3c], 2
je 0x103ab16
push eax
push 0x10026ac
push 0xc
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.01032571
test esi, esi
jl 0x103acd5
mov eax, dword [ebp + 0xc]
and eax, 3
dec eax
je 0x103accc
dec eax
je 0x103ab49
dec eax
jne 0x103ab61
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp - 4]
call fcn.010335cd
mov esi, eax
test esi, esi
jl 0x103acd5
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp - 4]
call fcn.010335cd
mov esi, eax
test esi, esi
jl 0x103acd5
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x103abae
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor esi, esi
jmp 0x103acfa
lea eax, [ebp + 0xc]
push eax
push 1
push dword [ebp + 0xc]
call fcn.010335cd
mov esi, eax
test esi, esi
jl 0x103acd5
inc edi
inc edi
cmp edi, ebx
jb 0x103aa5a
jmp 0x103aac2
mov dword [ebp - 4], ebx
jmp 0x103ab16
mov dword [ebp - 4], esi
jmp 0x103ab16
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], eax
jae 0x103abc2
mov esi, 0x8007007a
jmp 0x103acd5
mov ecx, dword [ebp + 8]
add eax, ebx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], eax
ja 0x103abee
push dword [ebp + 0x14]
sub ebx, dword [ebp + 0x10]
push ebx
call fcn.010395ad
mov esi, eax
test esi, esi
jl 0x103acd5
jmp 0x103acd1
mov ecx, dword [ebp - 8]
xor eax, eax
lea edi, [ebp + 8]
stosd dword es:[edi], eax
xor edi, edi
push 4
pop eax
cmp dword [ebp + 0xc], eax
ja 0x103ac01
mov eax, dword [ebp + 0xc]
cmp edi, eax
jae 0x103ac2f
mov edx, pe_nt_image_headers32
jmp 0x103ac1a
movzx eax, ax
cmp byte [eax + 0x1002918], 0x3f
jbe 0x103ac24
inc ecx
inc ecx
movzx eax, word [ecx]
mov esi, edx
cmp si, ax
ja 0x103ac0c
mov al, byte [ecx]
inc ecx
mov byte [ebp + edi + 8], al
inc ecx
inc edi
jmp 0x103abf6
mov dword [ebp - 8], ecx
cmp ebx, dword [ebp - 4]
jae 0x103acc5
movzx esi, byte [ebp + 9]
movzx eax, byte [ebp + 8]
mov al, byte [eax + 0x1002918]
mov cl, byte [esi + 0x1002918]
shl al, 2
shr cl, 4
or al, cl
mov byte [ebx], al
inc ebx
cmp edi, 2
jbe 0x103ac7f
cmp ebx, dword [ebp - 4]
jae 0x103acc5
movzx eax, byte [ebp + 0xa]
mov al, byte [eax + 0x1002918]
mov cl, byte [esi + 0x1002918]
shr al, 2
shl cl, 4
or al, cl
mov byte [ebx], al
inc ebx
cmp edi, 3
jbe 0x103aca3
cmp ebx, dword [ebp - 4]
jae 0x103acc5
movzx eax, byte [ebp + 0xa]
mov al, byte [eax + 0x1002918]
movzx ecx, byte [ebp + 0xb]
shl al, 6
or al, byte [ecx + 0x1002918]
mov byte [ebx], al
inc ebx
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 0xc]
call fcn.010388d9
mov esi, eax
test esi, esi
jl 0x103acd5
cmp dword [ebp + 0xc], 0
ja 0x103abeb
jmp 0x103abd0
mov esi, 0x8000ffff
jmp 0x103acd5
mov esi, 0x80070057
test esi, esi
jge 0x103acfa
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x103acfa
test byte [eax + 0x3c], 2
je 0x103acfa
push esi
push 0x1002770
push 0xf
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10