Function at 0x413230
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43547b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x44500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 0
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 0x10
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x34], eax
jb 0x4132a0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x413431
test edi, edi
je 0x413431
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx*4 + 5]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x48], eax
lea edx, [edi - 1]
mov eax, dword [ebp - 0x34]
add esp, 4
dec eax
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov esi, 1
mov eax, 0xaaaaaaab
mov dword [ebp - 0x40], esi
mul edx
mov eax, edx
shr eax, 1
inc eax
mov dword [ebp - 0x44], eax
nop dword [eax + eax]
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x34]
mov al, byte [eax + esi]
mov byte [ebp - 0x2f], al
cmp esi, edi
jae 0x413308
mov al, byte [esi + edx]
mov byte [ebp - 0x2d], al
jmp 0x41330c
mov byte [ebp - 0x2d], 0
lea eax, [esi + 1]
cmp eax, edi
jae 0x41331c
mov al, byte [edx + esi + 1]
mov byte [ebp - 0x2e], al
jmp 0x413320
mov byte [ebp - 0x2e], 0
movzx edi, byte [ebp - 0x2f]
movzx edx, byte [ebp - 0x2d]
mov esi, edi
and edi, 3
shr esi, 2
mov eax, edx
shl edi, 4
shr eax, 4
and edx, 0xf
add edi, eax
movzx eax, byte [ebp - 0x2e]
mov dword [ebp - 0x38], eax
and dword [ebp - 0x38], 0x3f
shr eax, 6
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
movzx eax, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, dword [ebp - 0x40]
mov byte [ecx + edx], al
movzx eax, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edi, dword [ebp - 0x54]
mov byte [ecx + edx + 1], al
cmp esi, edi
jae 0x41337e
mov eax, dword [ebp - 0x3c]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x413380
mov al, 0x3d
mov byte [ecx + edx + 2], al
lea eax, [esi + 1]
cmp eax, edi
jae 0x413396
mov eax, dword [ebp - 0x38]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x413398
mov al, 0x3d
mov byte [ecx + edx + 3], al
add esi, 3
add ecx, 4
mov dword [ebp - 0x40], esi
sub dword [ebp - 0x44], 1
jne 0x4132f0
mov byte [ecx + edx], 0
test edx, edx
je 0x41342e
push ecx
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00408050
mov eax, dword [ebp - 0x48]
push eax
call dword [0x438358]
mov esi, dword [ebp - 0x4c]
add esp, 4
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov edx, dword [ebx + 0x1c]
cmp edx, 0x10
jb 0x41345c
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413452
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x413452
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov esi, dword [ebp - 0x4c]
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x43a7e9
mov byte [esi], 0
call fcn.00408050
jmp 0x413402
push edx
push ecx
call fcn.00432a88
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043284c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret