Function at 0x870ce4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov esi, eax
xor ecx, ecx
xor edx, edx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x1c]
lea edx, [ebp - 0x3c]
mov ecx, 0x24
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x3c]
mov ecx, 0x24
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor ecx, ecx
xor edx, edx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x1c]
xor edi, edi
mov eax, esi
mov edx, dword [eax]
call dword [edx]
dec eax
sub eax, 0x24
jl 0x870dac
inc eax
mov dword [ebp - 0x18], eax
mov ebx, 0x24
imul cx, bx, 0x1e
movzx eax, byte [ebp - 0x25]
lea eax, [eax + eax*4]
add cx, ax
add cx, 0x2f1
mov eax, dword [esi + 4]
add eax, ebx
movzx eax, byte [eax]
mov byte [ebp - 1], al
mov eax, edi
xor edx, edx
push edx
push eax
movzx eax, byte [ebp - 1]
imul ebx
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
rol byte [ebp - 1], 2
xor cl, byte [ebp - 1]
not cl
mov byte [ebp - 1], cl
mov eax, 1
mov edx, dword [esi + 4]
add edx, ebx
lea ecx, [ebp - 1]
xchg ecx, eax
call fcn.00407394
inc ebx
dec dword [ebp - 0x18]
jne 0x870d50
xor ebx, ebx
mov eax, dword [esi + 4]
add eax, ebx
movzx eax, byte [eax]
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
imul ebx
add edi, eax
inc ebx
cmp ebx, 0x24
jne 0x870dae
cmp edi, dword [ebp - 8]
sete byte [ebp - 2]
cmp byte [ebp - 2], 0
je 0x870efb
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x870eed
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x870edc
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x481c74]
call fcn.00408a94
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x481c74]
call fcn.00408a94
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x639cb0]
call fcn.0063abac
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, 0x24
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, esi
mov edx, dword [eax]
call dword [edx]
sub eax, 0x24
sbb edx, 0
push edx
push eax
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.004a26f4
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0065ab4c
mov edx, 0x24
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 4]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.004a26f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x870ee3
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0xc], edx
call fcn.00408ac4
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x14], edx
call fcn.00408ac4
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x10], edx
call fcn.00408ac4
ret
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret