Function at 0x439300
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0x10]
shl ecx, 4
add ecx, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ecx
cmp eax, ecx
je 0x439578
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0xc]
add ecx, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], ecx
cmp edx, ecx
jge 0x439563
nop dword [eax + eax]
mov edi, dword [ebp]
mov eax, edx
mov ecx, dword [ebp + 4]
sub eax, dword [ebp + 0x10]
mov esi, dword [edi + 0xc]
imul esi, edx
cdq
add esi, dword [edi]
mov dword [ebp + 0x14], esi
idiv dword [ecx + 0x18]
mov eax, dword [esp + 0x20]
imul edx, dword [ecx + 0xc]
mov dword [esp + 0x34], eax
add edx, dword [ecx]
mov dword [ebp + 0x18], edx
mov eax, dword [edi + 0x10]
mov ecx, eax
imul ecx, ebx
sub ebx, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
add ecx, esi
cmp dword [ebp + 8], 0xfe
jge 0x439480
nop dword [eax]
mov esi, dword [ebp + 4]
mov eax, ebx
cdq
inc ebx
mov dword [esp + 0x10], ebx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebp + 0x18]
imul esi, edx
mov edx, 0x100
movzx eax, byte [esi + eax]
mov esi, 0x100
mov ebx, eax
shl ebx, 0x10
or ebx, eax
imul ebx, dword [ebp + 8]
shr ebx, 8
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, dword [ecx]
mov edi, eax
shr eax, 8
and eax, 0xff00ff
and edi, 0xff00ff
imul eax, edx
imul edi, edx
shr eax, 8
and eax, 0xff00ff
shr edi, 8
and edi, 0xff00ff
add edi, ebx
add ebx, eax
mov eax, ebx
mov edx, edi
shr eax, 8
and eax, 0xff00ff
shr edx, 8
sub esi, eax
and edx, 0xff00ff
shl esi, 8
mov eax, ebx
shl eax, 8
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, edi
xor esi, eax
mov eax, ebx
shr eax, 8
and esi, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub edx, eax
mov eax, dword [esp + 0x34]
shl edx, 8
dec eax
or edx, ebx
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x10]
xor esi, edx
mov dword [ecx], esi
add ecx, dword [esp + 0x14]
test eax, eax
jg 0x4393a0
jmp 0x439548
mov esi, dword [ebp + 4]
mov eax, ebx
cdq
inc ebx
mov dword [esp + 0x10], ebx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebp + 0x18]
imul esi, edx
mov edx, 0x100
movzx eax, byte [esi + eax]
mov esi, 0x100
mov ebx, eax
shl ebx, 0x10
or ebx, eax
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, dword [ecx]
mov edi, eax
shr eax, 8
and eax, 0xff00ff
and edi, 0xff00ff
imul eax, edx
imul edi, edx
shr eax, 8
and eax, 0xff00ff
shr edi, 8
and edi, 0xff00ff
add edi, ebx
add ebx, eax
mov eax, ebx
mov edx, edi
shr eax, 8
and eax, 0xff00ff
shr edx, 8
sub esi, eax
and edx, 0xff00ff
shl esi, 8
mov eax, ebx
shl eax, 8
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, edi
xor esi, eax
mov eax, ebx
shr eax, 8
and esi, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub edx, eax
mov eax, dword [esp + 0x34]
shl edx, 8
dec eax
or edx, ebx
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x10]
xor esi, edx
mov dword [ecx], esi
add ecx, dword [esp + 0x14]
test eax, eax
jg 0x439480
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
inc edx
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x24]
jl 0x439350
mov eax, dword [esp + 0x1c]
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x2c]
jne 0x439326
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4