Function at 0x56c360
Capabilities:
Encode data using base64

Disassembly:
test eax, eax
jne 0x56c39f
mov eax, dword [ebp + 0xe83c]
cmp eax, esi
je 0x56c39f
cmp dword [eax + 0x1c], esi
jne 0x56c39f
lea ecx, [esp + 0x40]
mov byte [esp + 0x15c], 0
call 0x5fd70c
lea ecx, [esp + 0x10]
mov dword [esp + 0x15c], 0xffffffff
call 0x5fd70c
xor eax, eax
jmp 0x56dc4e
mov eax, dword [ebp + 0x2548]
cmp eax, esi
je 0x56c59c
mov ecx, dword [eax + 0x5acc]
xor edi, edi
cmp ecx, esi
jle 0x56c59c
mov eax, dword [eax + 0x5ac8]
lea ecx, [esp + 0x44]
add eax, esi
push eax
call 0x5fd77a
mov ecx, dword [ebp + 0x2548]
mov ebx, 1
mov byte [esp + 0x15c], 2
mov edx, dword [ecx + 0x5ac8]
mov eax, dword [edx + esi + 0x104]
lea ecx, [edx + esi]
cmp eax, ebx
jne 0x56c40d
mov eax, dword [esp + 0x164]
mov edx, dword [eax + 0x9c]
test dh, 8
jne 0x56c428
jmp 0x56c507
cmp eax, 2
jne 0x56c428
mov edx, dword [esp + 0x164]
mov eax, dword [edx + 0x9c]
test ah, 8
jne 0x56c507
mov eax, dword [ecx + 0x10c]
cmp eax, 1
jne 0x56c449
mov eax, dword [ebp + 0xe83c]
test eax, eax
je 0x56c467
mov edx, dword [eax + 0x1c]
cmp eax, 2
jne 0x56c467
mov eax, dword [ebp + 0xe83c]
test eax, eax
je 0x56c507
mov edx, dword [eax + 0x1c]
test edx, edx
ror byte [edi], cl
invalid
invalid
add byte [eax], al
invalid
mov eax, dword [ecx + 0x108]
test eax, eax
jne 0x56c533
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call 0x5fd481
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x15c], 3
mov eax, dword [ecx + 0xf4]
test eax, eax
je 0x56c4da
push 0x7b
lea ecx, [esp + 0x14]
call 0x5f8b0c
test eax, eax
jl 0x56c4da
lea edx, [esp + 0x38]
push eax
push edx
lea ecx, [esp + 0x18]
call 0x5f8a94
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x160], 4
call 0x5fd845
lea ecx, [esp + 0x38]
mov byte [esp + 0x15c], 3
call 0x5fd70c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call 0x5e53ed
add esp, 8
test eax, eax
je 0x56c4f2
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x15c], 2
call 0x5fd70c
test ebx, ebx
jne 0x56c548
lea ecx, [esp + 0x44]
mov byte [esp + 0x15c], 1
call 0x5fd70c
mov eax, dword [ebp + 0x2548]
inc edi
add esi, 0x218
cmp edi, dword [eax + 0x5acc]
jl 0x56c3bd
jmp 0x56c59c
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call 0x5f8b2e
cmp eax, 0xffffffff
jne 0x56c548
jmp 0x56c507
mov edx, dword [ebp + 0x2548]
mov eax, edi
shl eax, 5
mov ecx, dword [edx + 0x5ac8]
add eax, edi
lea eax, [edi + eax*2]
shl eax, 3
mov ecx, dword [eax + ecx + 0x110]
test ecx, ecx
je 0x56d378
cmp ecx, 2
je 0x56d381
cmp ecx, 1
je 0x56c8ce
cmp ecx, 3
je 0x56c8ce
lea ecx, [esp + 0x44]
mov byte [esp + 0x15c], 1
call 0x5fd70c
mov edx, dword [esp + 0x10]
push 0x5fe7d8
push edx
call 0x5e53ed
add esp, 8
test eax, eax
je 0x56dc24
mov edi, 0x5e76ec
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [edx + 0x5ac8]
cmp dword [eax + edx + 0x110], 3
jne 0x56cc43
call 0x60dd59
mov eax, dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x74]
test eax, eax
je 0x56cc43
lea ecx, [eax + 0x1e8]
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x56cc43
mov edx, dword [ecx + 0x1c]
test edx, edx
je 0x56cc43
mov ecx, dword [eax + 0x204]
test ecx, ecx
je 0x56cc43
mov ebx, dword [esp + 0x3c]
mov eax, dword [ebx + 0xf4]
test eax, eax
jne 0x56c936
xor edi, edi
jmp 0x56c97b
mov edi, dword [ebx + 0xf8]
inc edi
call 0x60dd59
mov eax, dword [eax + 4]
mov esi, dword [0x597058]
mov eax, dword [eax + 0x178]
push eax
call esi
cmp edi, eax
jl 0x56c97b
call 0x60dd59
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x178]
push ecx
call esi
mov ecx, dword [ebx + 0xfc]
inc ecx
cmp ecx, eax
mov edi, ecx
jl 0x56c97b
mov edi, 1
mov edx, dword [0x5f9f88]
mov dword [esp + 0x14], edx
push 0x5fe7d8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x160], 0xe
call 0x5fd77a
mov eax, dword [esp + 0x164]
add byte [eax], al
mov byte [esp + 0x15c], 0xf
mov ecx, dword [eax + 0x9c]
test ch, 8
je 0x56c9c3
push 0x5e9960
lea ecx, [esp + 0x2c]
call 0x5fd895
mov eax, dword [ebp + 0xe83c]
test eax, eax
je 0x56cb25
mov eax, dword [eax + 0x1c]
test eax, eax
jle 0x56cb25
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
push ecx
push edx
push eax
lea eax, [ebx + 0x32]
add ebx, 0x6c
push eax
push ebx
lea ecx, [esp + 0x28]
push 0x5e992c
push ecx
call 0x5f8eb4
mov eax, dword [ebp + 0xe83c]
add esp, 0x1c
test eax, eax
je 0x56cb49
push 0x5e9914
lea ecx, [esp + 0x28]
call 0x5fd77a
mov eax, dword [ebp + 0xe83c]
mov byte [esp + 0x15c], 0x10
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jle 0x56cadb
mov esi, 1
xor ebx, ebx
mov edx, dword [0x5f9f88]
mov dword [esp + 0x30], edx
mov eax, dword [eax + 0x18]
mov byte [esp + 0x15c], 0x11
mov eax, dword [eax + ebx]
mov cl, byte [eax + 0x14]
cmp cl, 2
mov ecx, dword [eax + 0xc]
jne 0x56ca85
test ecx, ecx
je 0x56ca74
mov eax, ecx
lea ecx, [esp + 0x30]
push eax
push esi
push 0x5e9904
push ecx
jmp 0x56ca9c
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x30]
push eax
push esi
push 0x5e9904
push ecx
jmp 0x56ca9c
test ecx, ecx
je 0x56ca8d
mov eax, ecx
jmp 0x56ca90
mov eax, dword [eax + 0x10]
push eax
push esi
lea edx, [esp + 0x38]
push 0x5e98f4
push edx
call 0x5f8eb4
add esp, 0x10
lea eax, [esp + 0x30]
lea ecx, [esp + 0x24]
push eax
call 0x5fdb24
lea ecx, [esp + 0x30]
mov byte [esp + 0x15c], 0x10
call 0x5fd70c
or al, 9
add byte [ebx + 0xe83c85], cl
invalid
add ebx, 4
lea edx, [esp + 0x24]
lea eax, [esp + 0x38]
push edx
push 0x5e6484
push eax
call 0x5fda15
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 0x12
call 0x5fdb24
invalid
lea ecx, [esp + 0x38]
and al, 0x38
mov byte [esp + 0x15c], 0x10
call 0x5fd70c
lea ecx, [esp + 0x24]
mov byte [esp + 0x15c], 0xf
call 0x5fd70c
jmp 0x56cb49
mov ecx, dword [esp + 0x10]
invalid
push esp
invalid
call 0x60dd59
mov eax, dword [eax + 4]
push 0
push edi
mov edx, dword [eax + 0x170]
push edx
call dword [0x597054]
mov esi, eax
mov eax, dword [0x5f9f88]
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0x150]
lea edx, [esp + 0x18]
push ecx
mov bl, 0x13
push 0x5f1b90
push edx
mov byte [esp + 0x168], bl
pushfd
and al, 0x68
add dword [eax], eax
add al, ch
sub ebx, eax
or byte [eax], al
mov eax, dword [ebp + 0x2548]
add esp, 0xc
mov ecx, dword [eax + 0x49f8]
push ecx
push 0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x5fe7d8
call 0x5fd77a
push esi
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0x178], 0x14
call 0x5fd481
push 1
push 0
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov byte [esp + 0x184], 0x15
call 0x5fd481
push ecx
mov byte [esp + 0x184], 0x16
mov ecx, esp
mov dword [esp + 0x70], esp
push 0x5e98b0
call 0x5fd77a
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x184], bl
call 0x5aeac0
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], 0xf
call 0x5fd70c
lea ecx, [esp + 0x28]
mov byte [esp + 0x15c], 0xe
call 0x5fd70c
lea ecx, [esp + 0x14]
mov byte [esp + 0x15c], 2
call 0x5fd70c
or ecx, 0xffffffff
mov edi, 0x5fe7d8
xor eax, eax
lea edx, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x9a]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x5fe7d8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x9a]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5e98a0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x68]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5e9894
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi