Function at 0x47be40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
lea esi, [ebp - 0x38]
sub esp, 0x6c
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x3a]
mov byte [ebp - 0x3a], 1
mov eax, dword [ecx]
mov dword [esp], edx
mov dword [esp + 4], 1
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x24]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x20]
mov dword [esp], edx
call dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
sub esp, 8
mov ecx, esi
mov dword [esp], eax
lea edi, [eax + 4]
call fcn.005891d0
lea ecx, [ebp - 0x28]
sub esp, 4
mov dword [esp], esi
call fcn.0057f670
mov eax, dword [ebp - 0x24]
sub esp, 4
mov ecx, edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.00588580
lea ecx, [ebp - 0x28]
sub esp, 8
call fcn.005801d0
mov ecx, esi
call fcn.005801d0
mov ecx, dword [ebx + 0x10]
mov byte [ebp - 0x39], 0
lea edx, [ebp - 0x39]
mov eax, dword [ecx]
mov dword [esp], edx
mov dword [esp + 4], 1
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x24]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x20]
mov dword [esp], edx
call dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
sub esp, 8
mov edi, dword [ebx + 0xc]
mov ecx, esi
mov dword [esp], eax
call fcn.005891d0
lea ecx, [ebp - 0x28]
sub esp, 4
mov dword [esp], esi
call fcn.0057f670
mov eax, dword [ebp - 0x24]
sub esp, 4
mov ecx, edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.00588580
lea ecx, [ebp - 0x28]
sub esp, 8
call fcn.005801d0
mov ecx, esi
call fcn.005801d0
mov edi, dword [ebp - 0x60]
mov dword [esp + 8], edi
mov eax, dword [ebx + 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call fcn.0058ee10
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x20]
mov edx, dword [ecx]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 0xc
cmp dword [ebx + 8], 1
je 0x47c05c
lea eax, [edi - 8]
and edi, 7
xor esi, esi
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x64], edi
shr eax, 3
lea eax, [eax*8 + 8]
mov dword [ebp - 0x58], eax
mov edi, dword [ebx + 0x20]
lea eax, [edi + esi]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x60]
add esi, eax
add edi, esi
cmp eax, 7
jbe 0x47c070
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x5c], esi
lea ecx, [edi + eax]
mov eax, edi
mov dword [ebp - 0x4c], ecx
mov ecx, edx
lea esi, [esi]
mov esi, dword [edx]
xor dword [eax], esi
add edx, 8
mov esi, dword [edx - 4]
xor dword [eax + 4], esi
add eax, 8
cmp eax, dword [ebp - 0x4c]
jne 0x47bfe0
mov edx, ecx
mov ecx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x58]
add edx, ecx
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x47c032
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov dword [ebp - 0x50], ebx
mov esi, esi
lea edi, [edi]
movzx ebx, byte [ecx + edx]
xor byte [eax + edx], bl
add edx, 1
cmp edx, dword [ebp - 0x4c]
jne 0x47c020
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], edi
call dword [eax + 0x20]
add dword [ebp - 0x54], 1
sub esp, 0xc
mov eax, dword [ebp - 0x54]
cmp dword [ebx + 8], eax
jne 0x47bfb0
mov ecx, ebx
call fcn.0047c0a0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x60]
mov eax, edi
mov dword [ebp - 0x4c], ecx
jmp 0x47c008