Function at 0x10001060
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebp, dword [edi + 4]
test ebp, ebp
jne 0x10001077
mov ebp, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov eax, dword [edi + 8]
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [edi + 8]
add esp, 4
inc ecx
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [esp + 0x18], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
je 0x10001290
test esi, esi
je 0x1000129d
mov al, byte [ebp]
push ebx
test al, al
je 0x100011dd
cmp al, 0xa
jne 0x100010c1
inc ebp
mov al, byte [ebp]
mov cl, byte [ebp + 1]
mov byte [esp + 0x10], al
mov al, byte [ebp + 2]
mov byte [esp + 0x11], cl
mov cl, byte [ebp + 3]
cmp al, 0x3d
mov byte [esp + 0x12], al
mov byte [esp + 0x13], cl
je 0x1000115a
mov edx, dword [esp + 0x10]
cmp cl, 0x3d
push edx
je 0x1000118a
call section..text
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x15]
push eax
call section..text
mov ecx, dword [esp + 0x1a]
mov bl, al
push ecx
call section..text
mov edx, dword [esp + 0x1f]
mov byte [esp + 0x1e], al
push edx
call section..text
mov dl, byte [esp + 0x20]
mov cl, bl
shr cl, 4
and cl, 3
and al, 0x3f
shl dl, 2
or cl, dl
mov dl, byte [esp + 0x22]
shr dl, 2
and dl, 0xf
add esp, 0x10
shl bl, 4
or dl, bl
mov bl, byte [esp + 0x12]
shl bl, 6
or al, bl
mov byte [esi], cl
mov byte [esi + 1], dl
mov byte [esi + 2], al
add ebp, 4
add esi, 3
jmp 0x100011d2
cmp cl, 0x3d
jne 0x100011d2
mov eax, dword [esp + 0x10]
push eax
call section..text
mov ecx, dword [esp + 0x15]
mov bl, al
push ecx
call section..text
shr al, 4
and al, 3
add esp, 8
shl bl, 2
or al, bl
add ebp, 4
mov byte [esi], al
inc esi
jmp 0x100011d2
call section..text
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x15]
push eax
call section..text
mov ecx, dword [esp + 0x1a]
mov bl, al
push ecx
call section..text
mov dl, byte [esp + 0x1c]
mov cl, bl
shr cl, 4
shr al, 2
and cl, 3
and al, 0xf
shl dl, 2
shl bl, 4
or cl, dl
or al, bl
add esp, 0xc
mov byte [esi], cl
mov byte [esi + 1], al
add ebp, 4
add esi, 2
mov al, byte [ebp]
test al, al
jne 0x100010bc
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esi], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, 0xfffffffd
jbe 0x100011fb
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebx, dword [esp + 0x20]
xor edx, edx
mov ecx, dword [ebx + 4]
cmp ecx, edx
je 0x10001227
mov al, byte [ecx - 1]
test al, al
je 0x10001227
cmp al, 0xff
je 0x10001227
cmp ebp, edx
jne 0x1000124d
dec al
mov byte [ecx - 1], al
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
jmp 0x10001277
cmp ebp, edx
jne 0x10001237
push 1
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x10001277
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x10001243
cmp eax, ebp
jae 0x10001256
push 1
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebp
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov esi, dword [esp + 0x1c]
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100097f0
add esp, 4
mov al, 1
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret 8
test esi, esi
je 0x1000129d
push esi
call fcn.100097f0
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 8
ret 8