Function at 0x4f8bd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638b7d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00409430
lea eax, [ebp - 0x10]
xor esi, esi
lea ecx, [ebx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x18]
test al, 1
je 0x4f8c27
lea edi, [esi + 2]
jmp 0x4f8df1
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 0
test al, 2
jne 0x4f8c86
mov eax, dword [edi + 0xc]
xor edx, edx
xor eax, dword [edi + 4]
xor eax, dword [edi]
xor eax, dword [edi + 8]
div dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x4f8c83
mov edx, dword [edi]
mov eax, dword [edi + 4]
nop word [eax + eax]
cmp dword [ecx + 4], edx
jne 0x4f8c7d
cmp dword [ecx + 8], eax
jne 0x4f8c7d
mov eax, dword [ecx + 0xc]
cmp eax, dword [edi + 8]
jne 0x4f8c7a
mov eax, dword [ecx + 0x10]
cmp eax, dword [edi + 0xc]
je 0x4f8cb3
mov eax, dword [edi + 4]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4f8c60
lea ecx, [ebx + 4]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
cmp edx, eax
jb 0x4f8d97
cmp eax, 2
mov dword [ebp - 0x20], 2
lea ecx, [eax + eax]
cmovb ecx, dword [ebp - 0x20]
cmp ecx, edx
jae 0x4f8cc3
mov edi, 3
jmp 0x4f8df1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ecx + 0x14], eax
mov esi, dword [ebp - 0x10]
jmp 0x4f8def
push dword [ebx + 0x18]
mov eax, dword [ebx]
push ebx
push ecx
mov ecx, ebx
call dword [eax + 8]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x4f8daf
mov al, byte [ecx + 0x18]
not al
test al, 1
je 0x4f8daf
cmp dword [ebx + 0x14], 0
je 0x4f8d69
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x14], 0
jbe 0x4f8d69
xor edx, edx
xor esi, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx + 0x14]
mov edi, dword [edx + eax]
test edi, edi
je 0x4f8d44
mov esi, dword [edi]
xor edx, edx
dec dword [ebx + 0xc]
mov eax, dword [edi + 0x10]
xor eax, dword [edi + 0xc]
xor eax, dword [edi + 8]
xor eax, dword [edi + 4]
div dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
mov dword [edi], eax
mov dword [ecx], edi
mov edi, esi
mov ecx, dword [ebp - 0x20]
inc dword [ecx + 0xc]
test esi, esi
jne 0x4f8d10
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x14]
add edx, 4
mov dword [ebp - 0x18], edx
mov dword [esi + eax], 0
add esi, 4
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
cmp eax, dword [ebx + 0x10]
jb 0x4f8d06
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
push 1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0xc]
lea ecx, [ebx + 4]
xor eax, dword [edi + 4]
xor edx, edx
xor eax, dword [edi]
xor eax, dword [edi + 8]
div dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
lea eax, [eax + edx*4]
mov dword [ebp - 0x14], eax
push ecx
push ecx
mov ecx, dword [ebx + 4]
call fcn.004f91a0
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x4f8db9
lea edi, [eax + 2]
jmp 0x4f8df1
mov esi, dword [ebp - 0x10]
mov edi, 2
jmp 0x4f8df1
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], ecx
mov eax, dword [eax]
mov dword [esi + 0x14], eax
xor esi, esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
inc dword [ebx + 0xc]
mov dword [ebp - 0x10], esi
xor edi, edi
test esi, esi
je 0x4f8e03
push ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0045aa90
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc