Function at 0x4659f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
test edi, edi
jne 0x465a3e
mov ecx, dword [ebp + 8]
mov esi, dword [ebx + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov ecx, dword [ecx + 8]
mov eax, dword [ecx + 4]
cdq
idiv dword [esi + 4]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], edx
cdq
mov edi, eax
mov eax, dword [esi + 8]
xor edi, edx
sub edi, edx
cdq
mov ecx, eax
mov eax, edi
xor ecx, edx
sub ecx, edx
cdq
idiv ecx
mov esi, eax
mov dword [ebp - 0x10], esi
jmp 0x465a73
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
sub eax, ecx
mov dword [ebp - 8], ecx
mov ecx, dword [ebx + 8]
cdq
mov esi, dword [edi + 8]
mov dword [ebp - 4], esi
idiv dword [ecx + 4]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], edx
cdq
mov ecx, eax
mov eax, dword [edi + 0x10]
xor ecx, edx
sub eax, esi
sub ecx, edx
cdq
idiv ecx
mov esi, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0xc], edx
je 0x465a85
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x5c]
xor edi, edi
mov dword [ebp + 0x10], edi
test esi, esi
jle 0x465b1b
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x465ad8
nop dword [eax]
mov ecx, dword [ebx + 8]
push 0xfffffffffffffffe
mov eax, dword [ecx + 8]
mov edi, dword [ecx + 4]
mov ecx, ebx
cdq
xor eax, edx
sub eax, edx
push eax
imul eax, dword [ebp + 0x10]
push edi
push 0
imul edi, esi
push 0
add eax, dword [ebp - 4]
push eax
add edi, dword [ebp - 8]
push edi
push dword [ebp + 8]
call fcn.004623d0
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x465aa0
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x14]
test esi, esi
jle 0x465b0e
mov ecx, dword [ebx + 8]
push 0xfffffffffffffffe
mov eax, dword [ecx + 8]
cdq
xor eax, edx
sub eax, edx
push eax
imul eax, edi
push esi
push 0
push 0
add eax, dword [ebp - 4]
push eax
mov eax, dword [ecx + 4]
mov ecx, ebx
imul eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.004623d0
inc edi
mov dword [ebp + 0x10], edi
cmp edi, dword [ebp - 0x10]
jl 0x465a92
mov edx, dword [ebp - 0xc]
test edx, edx
jle 0x465ba8
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp + 0x10], 0
test esi, esi
jle 0x465b73
mov eax, dword [ebx + 8]
push 0xfffffffffffffffe
push edx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
cdq
push ecx
imul ecx, dword [ebp + 0x10]
xor eax, edx
sub eax, edx
imul eax, dword [ebp - 0x10]
push 0
push 0
add ecx, dword [ebp - 8]
add eax, dword [ebp - 4]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.004623d0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
inc eax
mov dword [ebp + 0x10], eax
cmp eax, esi
jl 0x465b37
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x465ba8
mov ecx, dword [ebx + 8]
push 0xfffffffffffffffe
push edx
push eax
mov eax, dword [ecx + 8]
cdq
xor eax, edx
sub eax, edx
imul eax, dword [ebp - 0x10]
push 0
push 0
add eax, dword [ebp - 4]
push eax
mov eax, dword [ecx + 4]
mov ecx, ebx
imul eax, dword [ebp + 0x10]
add eax, dword [ebp - 8]
push eax
push edi
call fcn.004623d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc