Function at 0x47f090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea edi, [ebp - 0x28]
push ebx
lea ebx, [ebp - 0x38]
sub esp, 0x5c
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x28], 1
mov dword [ebp - 0x48], eax
mov eax, dword [ecx]
mov dword [esp + 4], 1
mov dword [esp], edi
call dword [eax + 0xc]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x24]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [esi + 0x20]
mov dword [esp], edx
call dword [eax + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, ebx
sub esp, 8
mov dword [esp], eax
lea edx, [eax + 4]
mov dword [ebp - 0x3c], edx
call fcn.005b7f40
mov ecx, edi
sub esp, 4
mov dword [esp], ebx
call fcn.005ae660
mov eax, dword [ebp - 0x24]
sub esp, 4
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.005b73d0
sub esp, 8
mov ecx, edi
call fcn.005af230
mov ecx, ebx
call fcn.005af230
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x28], 0
mov eax, dword [ecx]
mov dword [esp + 4], 1
mov dword [esp], edi
call dword [eax + 0xc]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x24]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [esi + 0x20]
mov dword [esp], edx
call dword [eax + 0xc]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov ecx, ebx
sub esp, 8
mov dword [esp], eax
mov dword [ebp - 0x3c], edx
call fcn.005b7f40
mov ecx, edi
sub esp, 4
mov dword [esp], ebx
call fcn.005ae660
mov eax, dword [ebp - 0x24]
sub esp, 4
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.005b73d0
sub esp, 8
mov ecx, edi
call fcn.005af230
mov ecx, ebx
call fcn.005af230
mov ebx, dword [ebp - 0x48]
mov dword [esp + 8], ebx
mov eax, dword [esi + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call fcn.005bdd80
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 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 [esi + 8], 1
je 0x47f303
lea eax, [ebx - 8]
and ebx, 7
mov dword [ebp - 0x4c], 0
shr eax, 3
mov dword [ebp - 0x44], 1
lea eax, [eax*8 + 8]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x4c]
mov ebx, dword [esi + 0x20]
mov ecx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x50]
lea edx, [ebx + eax]
add eax, ecx
add ebx, eax
mov dword [ebp - 0x4c], eax
add edi, ebx
cmp dword [ebp - 0x48], 7
mov ecx, ebx
mov dword [ebp - 0x3c], edi
mov edi, edx
jbe 0x47f370
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x3c]
nop
mov edx, dword [edi]
xor dword [ecx], edx
add edi, 8
mov edx, dword [edi - 4]
xor dword [ecx + 4], edx
add ecx, 8
cmp ecx, eax
jne 0x47f240
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x47f2d9
mov eax, dword [ebp - 0x3c]
lea edi, [edx + 4]
cmp dword [ebp - 0x3c], edi
setae byte [ebp - 0x51]
movzx ecx, byte [ebp - 0x51]
lea edi, [eax + 4]
cmp edx, edi
setae al
mov edi, eax
mov eax, ecx
or edi, eax
mov eax, dword [ebp - 0x40]
mov ecx, edi
sub eax, 1
cmp eax, 2
seta byte [ebp - 0x51]
movzx eax, byte [ebp - 0x51]
test al, cl
je 0x47f312
mov ecx, dword [ebp - 0x3c]
mov edi, edx
or edi, ecx
and edi, 3
jne 0x47f312
mov edi, dword [ecx]
xor edi, dword [edx]
mov dword [ecx], edi
mov edi, dword [ebp - 0x40]
cmp edi, 4
je 0x47f2d9
movzx eax, byte [edx + 4]
xor byte [ecx + 4], al
cmp edi, 5
je 0x47f2d9
movzx eax, byte [edx + 5]
xor byte [ecx + 5], al
cmp edi, 6
je 0x47f2d9
movzx edx, byte [edx + 6]
xor byte [ecx + 6], dl
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], ebx
call dword [eax + 0x20]
add dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x44]
sub esp, 0xc
cmp dword [esi + 8], eax
jne 0x47f210
mov ecx, esi
call fcn.0047f3a0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
movzx eax, byte [edx]
xor byte [edi], al
cmp ecx, 1
je 0x47f2d9
movzx eax, byte [edx + 1]
xor byte [edi + 1], al
cmp ecx, 2
je 0x47f2d9
movzx eax, byte [edx + 2]
xor byte [edi + 2], al
cmp ecx, 3
je 0x47f2d9
movzx eax, byte [edx + 3]
xor byte [edi + 3], al
cmp ecx, 4
je 0x47f2d9
movzx eax, byte [edx + 4]
xor byte [edi + 4], al
cmp ecx, 5
je 0x47f2d9
movzx eax, byte [edx + 5]
xor byte [edi + 5], al
cmp ecx, 6
je 0x47f2d9
movzx edx, byte [edx + 6]
xor byte [edi + 6], dl
jmp 0x47f2d9
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], eax
jmp 0x47f263