Function at 0x465d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x465e0a
mov eax, dword [ebx + 8]
mov ecx, edi
mov dword [ebp - 0xc], 0
mov dword [ebp + 0xc], 0
mov esi, dword [eax + 4]
call fcn.0045b620
cdq
idiv esi
mov ecx, dword [ebx + 8]
mov dword [ebp - 4], eax
mov esi, dword [ecx + 8]
mov ecx, edi
call fcn.0045b260
mov edi, eax
mov eax, esi
cdq
mov ecx, eax
mov eax, edi
xor ecx, edx
mov edi, dword [ebp + 8]
sub ecx, edx
cdq
idiv ecx
mov ecx, dword [ebx + 8]
mov dword [ebp - 8], eax
mov esi, dword [ecx + 4]
mov ecx, edi
call fcn.0045b620
cdq
idiv esi
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x14], edx
mov esi, dword [ecx + 8]
mov ecx, edi
call fcn.0045b260
mov ecx, esi
cdq
neg ecx
test esi, esi
cmovs esi, ecx
idiv esi
mov esi, dword [ebp - 8]
jmp 0x465e42
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0xc]
sub eax, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 8]
cdq
mov esi, dword [esi + 0x10]
sub esi, dword [ebp + 0xc]
idiv dword [ecx + 4]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], edx
cdq
mov ecx, eax
mov eax, esi
xor ecx, edx
sub ecx, edx
cdq
idiv ecx
mov esi, eax
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x10], edx
je 0x465e5a
push 0x100
push 0
push ebx
mov ecx, edi
call fcn.0045b390
xor edi, edi
mov dword [ebp + 0x10], edi
test esi, esi
jle 0x465ee7
xor esi, esi
cmp dword [ebp - 4], esi
jle 0x465ea8
nop
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 + 0xc]
push eax
add edi, dword [ebp - 0xc]
push edi
push dword [ebp + 8]
call fcn.00462620
inc esi
cmp esi, dword [ebp - 4]
jl 0x465e70
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x14]
test esi, esi
jle 0x465ede
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 + 0xc]
push eax
mov eax, dword [ecx + 4]
mov ecx, ebx
imul eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00462620
inc edi
mov dword [ebp + 0x10], edi
cmp edi, dword [ebp - 8]
jl 0x465e67
mov edx, dword [ebp - 0x10]
test edx, edx
jle 0x465f74
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov dword [ebp + 0x10], 0
test esi, esi
jle 0x465f3f
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 - 8]
push 0
push 0
add ecx, dword [ebp - 0xc]
add eax, dword [ebp + 0xc]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.00462620
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
inc eax
mov dword [ebp + 0x10], eax
cmp eax, esi
jl 0x465f03
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x465f74
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 - 8]
push 0
push 0
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [ecx + 4]
mov ecx, ebx
imul eax, dword [ebp + 0x10]
add eax, dword [ebp - 0xc]
push eax
push edi
call fcn.00462620
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc