Function at 0x10077c90
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x10078010
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov ecx, esi
mov dword fs:[0], eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
xor ebx, ebx
jmp 0x10077cf6
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
sub edx, 1
jb 0x10077dcb
mov al, byte [ecx]
inc ecx
mov byte [ebp + ebx - 0x23], al
inc ebx
cmp ebx, 3
jne 0x10077cf6
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], edx
mov cl, byte [ebp - 0x23]
mov al, byte [ebp - 0x22]
mov edx, ecx
shr dl, 2
mov byte [ebp - 0x27], dl
mov edx, eax
shr dl, 4
shl cl, 4
or cl, dl
and cl, 0x3f
mov byte [ebp - 0x26], cl
mov cl, byte [ebp - 0x21]
mov edx, ecx
shr dl, 6
shl al, 2
or al, dl
and al, 0x3f
mov byte [ebp - 0x25], al
and cl, 0x3f
mov byte [ebp - 0x24], cl
xor ebx, ebx
xor ecx, ecx
jmp 0x10077d5f
mov byte [esi + ecx], al
mov byte [esi + ecx + 1], 0
mov ecx, dword [ebp - 0x30]
inc ecx
mov edi, dword [ebp + 8]
cmp ecx, 3
ja 0x10077cf0
mov eax, 0x100a457c
cmp dword [0x100a4590], 0x10
jb 0x10077d77
mov eax, dword [0x100a457c]
mov dword [ebp - 0x30], ecx
movzx ecx, byte [ebp + ecx - 0x27]
movzx eax, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, edx
jae 0x10077da0
lea esi, [ecx + 1]
mov dword [edi + 0x10], esi
mov esi, edi
cmp edx, 0x10
jb 0x10077d50
mov esi, dword [edi]
jmp 0x10077d50
mov dword [ebp - 0x10], 0
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
movsx eax, al
mov dword [esp + 8], eax
mov dword [esp], 1
mov ecx, edi
call fcn.10012640
sub esp, 0xc
xor ebx, ebx
jmp 0x10077d58
test ebx, ebx
je 0x10077f20
cmp ebx, 2
jg 0x10077df7
lea eax, [ebp + ebx - 0x23]
mov ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.10084fc0
mov cl, byte [ebp - 0x23]
mov al, byte [ebp - 0x22]
mov edx, ecx
shr dl, 2
mov byte [ebp - 0x27], dl
mov edx, eax
shr dl, 4
shl cl, 4
or cl, dl
and cl, 0x3f
mov byte [ebp - 0x26], cl
mov cl, byte [ebp - 0x21]
mov edx, ecx
shr dl, 6
shl al, 2
or al, dl
and al, 0x3f
mov byte [ebp - 0x25], al
and cl, 0x3f
mov byte [ebp - 0x24], cl
xor ecx, ecx
mov dword [ebp - 0x2c], ebx
jmp 0x10077e4f
mov byte [esi + ecx], al
mov byte [esi + ecx + 1], 0
mov ecx, dword [ebp - 0x30]
inc ecx
mov edi, dword [ebp + 8]
cmp ecx, ebx
jg 0x10077eca
mov eax, 0x100a457c
cmp dword [0x100a4590], 0x10
jb 0x10077e66
mov eax, dword [0x100a457c]
mov dword [ebp - 0x30], ecx
movzx ecx, byte [ebp + ecx - 0x27]
movzx eax, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, edx
jae 0x10077e90
lea esi, [ecx + 1]
mov dword [edi + 0x10], esi
mov esi, edi
cmp edx, 0x10
jb 0x10077e40
mov esi, dword [edi]
jmp 0x10077e40
mov dword [ebp - 0x10], 0
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
movsx eax, al
mov dword [esp + 8], eax
mov dword [esp], 1
mov ecx, edi
call fcn.10012640
sub esp, 0xc
mov ebx, dword [ebp - 0x2c]
jmp 0x10077e48
mov word [edx + eax], 0x3d
inc ebx
mov edi, dword [ebp + 8]
cmp ebx, 2
jg 0x10077f20
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
cmp eax, ecx
jae 0x10077ef0
lea edx, [eax + 1]
mov dword [edi + 0x10], edx
mov edx, edi
cmp ecx, 0x10
jb 0x10077ec0
mov edx, dword [edi]
jmp 0x10077ec0
mov dword [ebp - 0x10], 0
movzx eax, byte [ebp - 0x20]
mov byte [esp + 4], al
mov dword [esp + 8], 0x3d
mov dword [esp], 1
mov ecx, edi
mov dword [ebp - 0x2c], ebx
call fcn.10012640
sub esp, 0xc
mov ebx, dword [ebp - 0x2c]
jmp 0x10077ec6
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret