Function at 0x4370c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
sub esi, edx
mov dword [ebp - 4], edx
sar esi, 2
test esi, esi
je 0x437292
push ebx
mov ebx, dword [0x509880]
sub ebx, dword [0x50987c]
sar ebx, 2
mov dword [ebp - 0x20], ebx
cmp esi, 0x26f
jb 0x4370ff
mov eax, 0xb
jmp 0x437128
cmp esi, 0x44
jb 0x43710b
mov eax, 7
jmp 0x437128
cmp esi, 0x27
jb 0x437117
mov eax, 5
jmp 0x437128
cmp esi, 7
jb 0x437123
mov eax, 3
jmp 0x437128
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 - 0x28], eax
cmp esi, ebx
ja 0x437142
lea eax, [ebx + 1]
mov dword [ebp - 0x14], eax
jmp 0x437145
mov dword [ebp - 0x14], esi
push edi
mov eax, 0x8b8b8b8b
mov ecx, esi
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
xor edi, edi
test eax, eax
je 0x437201
nop
mov eax, dword [ebp - 0x10]
xor edx, edx
add eax, edi
mov ecx, dword [ebp - 4]
div esi
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0xc], eax
mov eax, edi
lea edx, [ecx + edx*4]
mov dword [ebp - 0x1c], edx
xor edx, edx
div esi
mov eax, edx
xor edx, edx
mov dword [ebp - 0x24], eax
lea eax, [ecx + eax*4]
mov dword [ebp - 8], eax
lea eax, [edi - 1]
div esi
mov eax, dword [ebp - 8]
mov ecx, dword [ecx + edx*4]
xor ecx, dword [ebp - 0xc]
xor ecx, dword [eax]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x19660d
mov dword [ebp - 0x18], ecx
test edi, edi
jne 0x4371b3
mov eax, ebx
jmp 0x4371ce
cmp edi, ebx
ja 0x4371cb
xor edx, edx
lea eax, [edi - 1]
div ebx
mov eax, dword [0x50987c]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 0x24]
jmp 0x4371ce
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
add ecx, eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
mov dword [edx], eax
xor edx, edx
mov eax, dword [ebp - 0x28]
add eax, edi
inc edi
div esi
add dword [ebx + edx*4], ecx
lea eax, [ebx + edx*4]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
cmp edi, eax
jb 0x437160
add eax, esi
mov dword [ebp - 0xc], eax
cmp edi, eax
jae 0x437290
mov edx, dword [ebp - 0x10]
lea ecx, [edi - 1]
mov eax, dword [ebp - 0x28]
inc edx
mov ebx, dword [ebp - 4]
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], 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 - 4]
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 - 8]
add eax, dword [ebp - 0x1c]
div esi
mov ebx, dword [ebp - 4]
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 - 8], ecx
lea eax, [ecx + 1]
cmp eax, dword [ebp - 0xc]
jb 0x437225
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8