Function at 0x438430
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0x10]
shl ecx, 4
add ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
cmp eax, ecx
je 0x4386ee
push ebx
push ebp
push esi
push edi
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], ecx
cmp ebp, ecx
jge 0x4386d9
mov ebx, dword [esp + 0x3c]
nop dword [eax + eax]
mov edi, dword [ebx]
mov ecx, ebp
mov esi, dword [ebx + 4]
sub ecx, dword [ebx + 0x10]
mov edx, dword [edi + 0xc]
imul edx, ebp
add edx, dword [edi]
mov dword [ebx + 0x14], edx
imul ecx, dword [esi + 0xc]
mov eax, dword [esi]
add eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], eax
imul eax, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
add eax, edx
mov edx, dword [esp + 0x24]
sub edx, dword [ebx + 0xc]
cmp dword [ebx + 8], 0xfe
jge 0x4385c5
nop
mov ecx, dword [ebx + 4]
mov esi, edx
mov edi, dword [ebx + 8]
inc edx
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebx + 0x18]
imul edx, esi
mov esi, dword [edx + ecx]
mov ebp, esi
shr ebp, 8
mov edx, 0x100
and ebp, 0xff00ff
and esi, 0xff00ff
imul ebp, edi
imul esi, edi
shr ebp, 8
and ebp, 0xff00ff
shr esi, 8
mov ecx, ebp
and esi, 0xff00ff
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [eax]
mov ebx, ecx
shr ecx, 8
and ecx, 0xff00ff
and ebx, 0xff00ff
imul ecx, edx
imul ebx, edx
shr ecx, 8
and ecx, 0xff00ff
shr ebx, 8
add ebp, ecx
and ebx, 0xff00ff
add ebx, esi
mov ecx, ebp
shr ecx, 8
mov esi, 0x100
and ecx, 0xff00ff
mov edx, ebx
sub esi, ecx
shr edx, 8
shl esi, 8
mov ecx, ebp
shl ecx, 8
and edx, 0xff00ff
or esi, ecx
mov ecx, 0x100
sub ecx, edx
mov edx, 0x100
or ecx, ebx
mov ebx, dword [esp + 0x3c]
xor esi, ecx
mov ecx, ebp
shr ecx, 8
and esi, 0xff00ff
and ecx, 0xff00ff
shl ebp, 8
sub edx, ecx
mov ecx, dword [esp + 0x14]
shl edx, 8
dec ecx
or edx, ebp
mov dword [esp + 0x14], ecx
xor esi, edx
mov edx, dword [esp + 0x28]
mov dword [eax], esi
add eax, dword [esp + 0x10]
test ecx, ecx
jg 0x4384d0
jmp 0x4386c2
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x10]
mov ebp, ecx
imul ebp, edx
mov dword [esp + 0x2c], ecx
add ebp, dword [esp + 0x28]
cmp dword [esp + 0x10], ecx
jne 0x438600
cmp dword [esi + 8], 1
jne 0x438600
cmp dword [edi + 8], 1
jne 0x438600
imul ecx, dword [esp + 0x18]
push ecx
push ebp
push eax
call fcn.005135c0
add esp, 0xc
jmp 0x4386c2
mov esi, dword [ebp]
mov edx, 0x100
mov ebx, esi
add ebp, dword [esp + 0x2c]
shr ebx, 8
and esi, 0xff00ff
and ebx, 0xff00ff
mov ecx, ebx
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [eax]
mov edi, ecx
shr ecx, 8
and ecx, 0xff00ff
and edi, 0xff00ff
imul ecx, edx
imul edi, edx
shr ecx, 8
and ecx, 0xff00ff
shr edi, 8
add ebx, ecx
and edi, 0xff00ff
add edi, esi
mov ecx, ebx
shr ecx, 8
mov esi, 0x100
and ecx, 0xff00ff
mov edx, edi
sub esi, ecx
shr edx, 8
shl esi, 8
mov ecx, ebx
shl ecx, 8
and edx, 0xff00ff
or esi, ecx
mov ecx, 0x100
sub ecx, edx
mov edx, 0x100
or ecx, edi
xor esi, ecx
mov ecx, ebx
shr ecx, 8
and esi, 0xff00ff
and ecx, 0xff00ff
shl ebx, 8
sub edx, ecx
mov ecx, dword [esp + 0x14]
shl edx, 8
dec ecx
or edx, ebx
mov dword [esp + 0x14], ecx
xor esi, edx
mov dword [eax], esi
add eax, dword [esp + 0x10]
test ecx, ecx
jg 0x438600
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x1c], ebp
cmp ebp, dword [esp + 0x30]
jl 0x438480
mov eax, dword [esp + 0x20]
add eax, 0x10
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x34]
jne 0x438452
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4