Function at 0x4f03b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
cmp edi, ebp
je 0x4f061c
mov esi, ecx
sub ebp, edi
mov eax, ebp
sar eax, 2
mov ecx, eax
mov dword [esp], eax
test eax, eax
jle 0x4f03e8
push ebp
push 0x8b
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
sub ecx, eax
sar ecx, 2
mov edx, 0xb
cmp dword [esp], 0x26e
ja 0x4f0431
mov edx, 7
cmp dword [esp], 0x43
ja 0x4f0431
mov edx, 5
cmp dword [esp], 0x26
ja 0x4f0431
mov edx, dword [esp]
lea eax, [edx - 1]
shr eax, 1
cmp edx, 7
mov edx, 3
cmovb edx, eax
mov ebx, dword [esp]
mov eax, ebx
sub eax, edx
shr eax, 1
add edx, eax
mov dword [esp + 4], edx
lea esi, [ecx + 1]
cmp esi, ebx
mov edx, ebx
mov dword [esp + 0x14], esi
cmova edx, esi
mov dword [esp + 0x10], edx
mov dword [esp + 8], ecx
mov ecx, dword [edi]
xor ecx, dword [edi + ebp - 4]
mov edx, dword [edi + eax*4]
xor ecx, edx
mov esi, ecx
shr esi, 0x1b
xor esi, ecx
imul ecx, esi, 0x19660d
add edx, ecx
mov dword [edi + eax*4], edx
add ecx, dword [esp + 8]
mov edx, dword [esp + 4]
add dword [edi + edx*4], ecx
mov dword [edi], ecx
lea ebp, [ebx - 1]
xor esi, esi
xor edx, edx
div ebx
mov ecx, edx
mov eax, dword [esp + 4]
xor edx, edx
div ebx
mov eax, dword [esp + 0x18]
cmp dword [esp + 0xc], eax
je 0x4f0531
mov ebx, dword [esp + 0x14]
cmp ebx, 3
mov esi, 2
cmovae esi, ebx
dec esi
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
xor esi, esi
nop
inc esi
mov ebx, dword [esp]
cmp esi, ebx
mov eax, 0
cmove esi, eax
inc ebp
cmp ebp, ebx
cmove ebp, eax
inc ecx
cmp ecx, ebx
cmove ecx, eax
inc edx
cmp edx, ebx
cmove edx, eax
mov eax, dword [edi + esi*4]
mov edi, dword [esp + 0x30]
mov edi, dword [edi + ecx*4]
mov ebx, dword [esp + 0x30]
xor eax, dword [ebx + ebp*4]
xor eax, edi
mov ebx, eax
shr ebx, 0x1b
xor ebx, eax
imul eax, ebx, 0x19660d
add edi, eax
mov ebx, dword [esp + 0x30]
mov dword [ebx + ecx*4], edi
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x18]
mov edi, dword [edi + ebx*4]
add edi, esi
add edi, eax
mov eax, dword [esp + 0x30]
add dword [eax + edx*4], edi
mov dword [eax + esi*4], edi
mov edi, dword [esp + 0x30]
inc ebx
mov dword [esp + 4], ebx
cmp dword [esp + 0xc], ebx
jne 0x4f04c0
mov eax, dword [esp]
cmp eax, dword [esp + 0x14]
jbe 0x4f05a4
mov eax, dword [esp + 8]
not eax
add eax, dword [esp + 0x10]
nop word cs:[eax + eax]
mov dword [esp + 8], eax
inc esi
mov eax, dword [esp]
cmp esi, eax
mov ebx, 0
cmove esi, ebx
inc ebp
cmp ebp, eax
cmove ebp, ebx
inc ecx
cmp ecx, eax
cmove ecx, ebx
inc edx
cmp edx, eax
cmove edx, ebx
mov eax, dword [edi + esi*4]
xor eax, dword [edi + ebp*4]
mov ebx, dword [edi + ecx*4]
xor eax, ebx
mov edi, eax
shr edi, 0x1b
xor edi, eax
imul eax, edi, 0x19660d
mov edi, dword [esp + 0x30]
add ebx, eax
mov dword [edi + ecx*4], ebx
add eax, esi
add dword [edi + edx*4], eax
mov dword [edi + esi*4], eax
mov eax, dword [esp + 8]
dec eax
jne 0x4f0550
mov edi, dword [esp + 0x10]
mov eax, dword [esp]
add eax, edi
cmp edi, eax
jae 0x4f061c
mov eax, dword [esp]
nop word cs:[eax + eax]
mov dword [esp + 4], eax
inc esi
mov eax, dword [esp]
cmp esi, eax
mov edi, 0
cmove esi, edi
inc ebp
cmp ebp, eax
cmove ebp, edi
inc ecx
cmp ecx, eax
cmove ecx, edi
inc edx
cmp edx, eax
cmove edx, edi
mov eax, dword [esp + 0x30]
mov edi, dword [eax + ecx*4]
mov ebx, dword [eax + esi*4]
add ebx, edi
add ebx, dword [eax + ebp*4]
mov eax, ebx
shr eax, 0x1b
xor eax, ebx
imul eax, eax, 0x5d588b65
xor edi, eax
mov ebx, dword [esp + 0x30]
mov dword [ebx + ecx*4], edi
mov edi, dword [esp + 0x30]
sub eax, esi
xor dword [edi + edx*4], eax
mov dword [edi + esi*4], eax
mov eax, dword [esp + 4]
dec eax
jne 0x4f05c0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8