Function at 0x4386b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 8]
mov eax, ecx
push esi
mov esi, dword [ebp + 0xc]
sub esi, edx
mov dword [ebp - 0x18], eax
sar esi, 2
test esi, esi
je 0x43887d
push ebx
mov ebx, dword [eax + 4]
sub ebx, dword [eax]
sar ebx, 2
mov dword [ebp - 0x20], ebx
cmp esi, 0x26f
jb 0x4386ea
mov eax, 0xb
jmp 0x438713
cmp esi, 0x44
jb 0x4386f6
mov eax, 7
jmp 0x438713
cmp esi, 0x27
jb 0x438702
mov eax, 5
jmp 0x438713
cmp esi, 7
jb 0x43870e
mov eax, 3
jmp 0x438713
lea eax, [esi - 1]
shr eax, 1
mov ecx, esi
sub ecx, eax
shr ecx, 1
add eax, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp esi, ebx
ja 0x43872d
lea eax, [ebx + 1]
mov dword [ebp + 0xc], eax
jmp 0x438730
mov dword [ebp + 0xc], esi
push edi
mov eax, 0x8b8b8b8b
mov ecx, esi
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
test eax, eax
je 0x4387e7
nop dword [eax]
mov eax, dword [ebp - 0x10]
xor edx, edx
add eax, edi
mov ecx, dword [ebp + 8]
div esi
lea eax, [ecx + edx*4]
xor edx, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, edi
div esi
mov eax, edx
xor edx, edx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
lea eax, [edi - 1]
div esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ecx + edx*4]
xor ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul edx, eax, 0x19660d
test edi, edi
jne 0x43879f
mov eax, ebx
jmp 0x4387b4
cmp edi, ebx
ja 0x4387b1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov eax, dword [eax + edi*4 - 4]
add eax, dword [ebp - 4]
jmp 0x4387b4
mov eax, dword [ebp - 4]
lea ecx, [eax + edx]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
xor edx, edx
mov eax, dword [ebp - 0x14]
add eax, edi
inc edi
div esi
add dword [ebx + edx*4], ecx
lea eax, [ebx + edx*4]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
cmp edi, eax
jb 0x438750
add eax, esi
mov dword [ebp - 0xc], eax
cmp edi, eax
jae 0x43887b
mov edx, dword [ebp - 0x10]
lea ecx, [edi - 1]
mov eax, dword [ebp - 0x14]
inc edx
mov ebx, dword [ebp + 8]
inc eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], eax
nop dword [eax + eax]
lea eax, [edx + ecx]
xor edx, edx
div esi
lea eax, [ebx + edx*4]
xor edx, edx
mov ebx, dword [eax]
mov dword [ebp - 0x20], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
div esi
mov eax, ecx
mov edi, edx
xor edx, edx
div esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
xor edx, edx
add ecx, ebx
add ecx, dword [eax + edi*4]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul eax, eax, 0x5d588b65
xor ebx, eax
mov ecx, eax
mov eax, dword [ebp - 0x20]
sub ecx, edi
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x1c]
div esi
mov ebx, dword [ebp + 8]
xor dword [ebx + edx*4], ecx
lea eax, [ebx + edx*4]
mov edx, dword [ebp - 0x10]
mov dword [ebx + edi*4], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], ecx
lea eax, [ecx + 1]
cmp eax, dword [ebp - 0xc]
jb 0x438810
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8