Function at 0x4fc860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
mov ebx, ecx
mov ecx, 0x10
push esi
push edi
lea edi, [ebp - 0x5c]
lea esi, [ebx + 0x1c]
rep movsd dword es:[edi], dword [esi]
movzx eax, byte [ebp - 0x59]
mov byte [ebx + 0x1c], al
movzx eax, byte [ebp - 0x5a]
mov byte [ebx + 0x1d], al
movzx eax, byte [ebp - 0x5b]
mov byte [ebx + 0x1e], al
movzx eax, byte [ebp - 0x5c]
mov byte [ebx + 0x1f], al
movzx eax, byte [ebp - 0x55]
mov byte [ebx + 0x20], al
movzx eax, byte [ebp - 0x56]
mov byte [ebx + 0x21], al
movzx eax, byte [ebp - 0x57]
mov byte [ebx + 0x22], al
movzx eax, byte [ebp - 0x58]
mov byte [ebx + 0x23], al
movzx eax, byte [ebp - 0x51]
mov byte [ebx + 0x24], al
movzx eax, byte [ebp - 0x52]
mov byte [ebx + 0x25], al
movzx eax, byte [ebp - 0x53]
mov byte [ebx + 0x26], al
movzx eax, byte [ebp - 0x54]
mov byte [ebx + 0x27], al
movzx eax, byte [ebp - 0x4d]
mov byte [ebx + 0x28], al
movzx eax, byte [ebp - 0x4e]
mov byte [ebx + 0x29], al
movzx eax, byte [ebp - 0x4f]
mov byte [ebx + 0x2a], al
movzx eax, byte [ebp - 0x50]
mov byte [ebx + 0x2b], al
movzx eax, byte [ebp - 0x49]
mov byte [ebx + 0x2c], al
movzx eax, byte [ebp - 0x4a]
mov byte [ebx + 0x2d], al
movzx eax, byte [ebp - 0x4b]
mov byte [ebx + 0x2e], al
movzx eax, byte [ebp - 0x4c]
mov byte [ebx + 0x2f], al
movzx eax, byte [ebp - 0x45]
mov byte [ebx + 0x30], al
movzx eax, byte [ebp - 0x46]
mov byte [ebx + 0x31], al
movzx eax, byte [ebp - 0x47]
mov byte [ebx + 0x32], al
movzx eax, byte [ebp - 0x48]
mov byte [ebx + 0x33], al
movzx eax, byte [ebp - 0x41]
mov byte [ebx + 0x34], al
movzx eax, byte [ebp - 0x42]
mov byte [ebx + 0x35], al
movzx eax, byte [ebp - 0x43]
mov byte [ebx + 0x36], al
movzx eax, byte [ebp - 0x44]
mov byte [ebx + 0x37], al
movzx eax, byte [ebp - 0x3d]
mov byte [ebx + 0x38], al
movzx eax, byte [ebp - 0x3e]
mov byte [ebx + 0x39], al
movzx eax, byte [ebp - 0x3f]
mov byte [ebx + 0x3a], al
movzx eax, byte [ebp - 0x40]
mov byte [ebx + 0x3b], al
movzx eax, byte [ebp - 0x39]
mov byte [ebx + 0x3c], al
movzx eax, byte [ebp - 0x3a]
mov byte [ebx + 0x3d], al
movzx eax, byte [ebp - 0x3b]
mov byte [ebx + 0x3e], al
movzx eax, byte [ebp - 0x3c]
mov byte [ebx + 0x3f], al
movzx eax, byte [ebp - 0x35]
mov byte [ebx + 0x40], al
xor edx, edx
movzx eax, byte [ebp - 0x36]
mov byte [ebx + 0x41], al
movzx eax, byte [ebp - 0x37]
mov byte [ebx + 0x42], al
movzx eax, byte [ebp - 0x38]
mov byte [ebx + 0x43], al
movzx eax, byte [ebp - 0x31]
mov byte [ebx + 0x44], al
movzx eax, byte [ebp - 0x32]
mov byte [ebx + 0x45], al
movzx eax, byte [ebp - 0x33]
mov byte [ebx + 0x46], al
movzx eax, byte [ebp - 0x34]
mov byte [ebx + 0x47], al
movzx eax, byte [ebp - 0x2d]
mov byte [ebx + 0x48], al
movzx eax, byte [ebp - 0x2e]
mov byte [ebx + 0x49], al
movzx eax, byte [ebp - 0x2f]
mov byte [ebx + 0x4a], al
movzx eax, byte [ebp - 0x30]
mov byte [ebx + 0x4b], al
movzx eax, byte [ebp - 0x29]
mov byte [ebx + 0x4c], al
movzx eax, byte [ebp - 0x2a]
mov byte [ebx + 0x4d], al
movzx eax, byte [ebp - 0x2b]
mov byte [ebx + 0x4e], al
movzx eax, byte [ebp - 0x2c]
mov byte [ebx + 0x4f], al
movzx eax, byte [ebp - 0x25]
mov byte [ebx + 0x50], al
movzx eax, byte [ebp - 0x26]
mov byte [ebx + 0x51], al
movzx eax, byte [ebp - 0x27]
mov byte [ebx + 0x52], al
movzx eax, byte [ebp - 0x28]
mov byte [ebx + 0x53], al
movzx eax, byte [ebp - 0x21]
mov byte [ebx + 0x54], al
movzx eax, byte [ebp - 0x22]
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov byte [ebx + 0x55], al
movzx eax, byte [ebp - 0x23]
mov byte [ebx + 0x56], al
movzx eax, byte [ebp - 0x24]
mov byte [ebx + 0x57], al
movzx eax, byte [ebp - 0x1d]
mov byte [ebx + 0x58], al
movzx eax, byte [ebp - 0x1e]
mov byte [ebx + 0x59], al
movzx eax, byte [ebp - 0x1f]
mov byte [ebx + 0x5a], al
movzx eax, byte [ebp - 0x20]
mov byte [ebx + 0x5b], al
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], edx
and edx, 0xf
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x14], edx
jb 0x4fca8b
lea ecx, [edx - 8]
and ecx, 0xf
lea eax, [edx - 3]
and eax, 0xf
mov ecx, dword [ebx + ecx*4 + 0x1c]
xor ecx, dword [ebx + eax*4 + 0x1c]
lea eax, [edx + 2]
and eax, 0xf
xor ecx, dword [ebx + eax*4 + 0x1c]
xor ecx, dword [ebx + edx*4 + 0x1c]
mov eax, dword [ebp - 4]
rol ecx, 1
mov dword [ebx + edx*4 + 0x1c], ecx
mov ecx, dword [ebp - 8]
mov edx, edi
not edx
rol ecx, 5
and edx, eax
mov eax, esi
and eax, edi
or edx, eax
mov eax, 0xcccccccd
add ecx, edx
mul dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
shr edx, 4
add ecx, dword [edx*4 + 0x50b0d0]
add ecx, dword [ebx + eax*4 + 0x1c]
add ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
inc edx
mov eax, esi
mov dword [ebp - 0x18], edx
mov esi, edi
mov dword [ebp - 4], eax
mov edi, dword [ebp - 8]
ror esi, 2
mov dword [ebp - 8], ecx
cmp edx, 0x14
jb 0x4fca54
mov eax, 0x14
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
nop
mov esi, eax
and esi, 0xf
lea edx, [esi - 8]
lea eax, [esi - 3]
and edx, 0xf
and eax, 0xf
mov edi, dword [ebx + edx*4 + 0x1c]
xor edi, dword [ebx + eax*4 + 0x1c]
lea eax, [esi + 2]
and eax, 0xf
xor edi, dword [ebx + eax*4 + 0x1c]
mov eax, 0xcccccccd
mul dword [ebp - 0x18]
xor edi, dword [ebx + esi*4 + 0x1c]
mov eax, dword [ebp - 0x14]
rol edi, 1
mov dword [ebx + esi*4 + 0x1c], edi
mov esi, ecx
mov ecx, dword [ebp - 4]
xor ecx, eax
shr edx, 4
xor ecx, dword [ebp - 0x10]
rol esi, 5
add esi, dword [edx*4 + 0x50b0d0]
add esi, edi
add ecx, esi
mov esi, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
ror eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], eax
cmp eax, 0x28
jb 0x4fcaf0
mov eax, 0x28
mov dword [ebp - 0x18], eax
mov esi, eax
rol ecx, 5
and esi, 0xf
lea edx, [esi - 8]
and edx, 0xf
lea eax, [esi - 3]
and eax, 0xf
mov edi, dword [ebx + edx*4 + 0x1c]
xor edi, dword [ebx + eax*4 + 0x1c]
lea eax, [esi + 2]
and eax, 0xf
xor edi, dword [ebx + eax*4 + 0x1c]
xor edi, dword [ebx + esi*4 + 0x1c]
rol edi, 1
mov dword [ebx + esi*4 + 0x1c], edi
mov esi, dword [ebp - 0x14]
mov edx, esi
or edx, dword [ebp - 0x10]
mov eax, esi
and eax, dword [ebp - 0x10]
and edx, dword [ebp - 4]
or edx, eax
mov eax, 0xcccccccd
add ecx, edx
mul dword [ebp - 0x18]
mov eax, dword [ebp - 4]
shr edx, 4
mov dword [ebp - 4], esi
add ecx, dword [edx*4 + 0x50b0d0]
add ecx, edi
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
ror eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], eax
cmp eax, 0x3c
jb 0x4fcb75
mov eax, 0x3c
mov dword [ebp - 0x18], eax
jmp 0x4fcc08
mov eax, dword [ebp - 0x18]
mov esi, eax
and esi, 0xf
lea edx, [esi - 8]
lea eax, [esi - 3]
and edx, 0xf
and eax, 0xf
mov edi, dword [ebx + edx*4 + 0x1c]
xor edi, dword [ebx + eax*4 + 0x1c]
lea eax, [esi + 2]
and eax, 0xf
xor edi, dword [ebx + eax*4 + 0x1c]
mov eax, 0xcccccccd
mul dword [ebp - 0x18]
xor edi, dword [ebx + esi*4 + 0x1c]
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x18]
rol edi, 1
mov dword [ebx + esi*4 + 0x1c], edi
mov esi, ecx
mov ecx, dword [ebp - 4]
shr edx, 4
xor ecx, eax
xor ecx, dword [ebp - 0x10]
rol esi, 5
add esi, dword [edx*4 + 0x50b0d0]
mov edx, dword [ebp - 8]
add esi, edi
mov edi, dword [ebp - 4]
add ecx, esi
add ecx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
ror eax, 2
cmp dword [ebp - 0x18], 0x50
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
jb 0x4fcc05
add dword [ebx + 8], eax
lea eax, [ebx + 0x1c]
add dword [ebx], ecx
add dword [ebx + 4], edx
add dword [ebx + 0xc], esi
add dword [ebx + 0x10], edi
push 0x40
push 0
push eax
call fcn.00405490
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret