Function at 0x461b20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9d4
mov edx, dword [esp + 0x9e8]
lea eax, [esp + 0x14]
mov dword [esp + 0x10], ecx
lea esi, [esi]
lea edi, [esp + 0x9d4]
mov dword [eax], 0x8b8b8b8b
add eax, 4
cmp eax, edi
jne 0x461b40
mov edi, dword [edx]
mov eax, dword [edx + 4]
sub eax, edi
mov dword [esp + 0xc], edi
sar eax, 2
lea edi, [eax + 1]
mov dword [esp + 8], eax
mov eax, 0x270
cmp edi, 0x270
cmovb edi, eax
xor ebp, ebp
mov dword [esp + 4], edi
lea esi, [esi]
mov edx, ebp
mov eax, 0x1a41a41b
lea ebx, [ebp + 0x132]
shr edx, 4
lea esi, [ebp - 1]
mul edx
mov eax, ebp
mov ecx, edx
mov edx, ebx
shr ecx, 2
shr edx, 4
imul ecx, ecx, 0x270
sub eax, ecx
mov ecx, eax
lea eax, [esp + eax*4 + 0x14]
mov dword [esp], eax
mov eax, 0x1a41a41b
mul edx
mov eax, 0x1a41a41b
shr edx, 2
imul edx, edx, 0x270
sub ebx, edx
mov edx, esi
shr edx, 4
lea edi, [esp + ebx*4 + 0x14]
mul edx
mov ebx, dword [edi]
shr edx, 2
imul edx, edx, 0x270
sub esi, edx
mov eax, dword [esp + esi*4 + 0x14]
mov esi, dword [esp]
xor eax, dword [esi]
xor eax, ebx
mov edx, eax
shr eax, 0x1b
xor eax, edx
imul eax, eax, 0x19660d
test ebp, ebp
je 0x461d80
cmp dword [esp + 8], ebp
lea esi, [ecx + eax]
jb 0x461c15
mov esi, dword [esp + 0xc]
add ecx, dword [esi + ebp*4 - 4]
lea esi, [ecx + eax]
lea ecx, [ebp + 0x13d]
add ebx, eax
mov eax, 0x1a41a41b
mov dword [edi], ebx
add ebp, 1
mov edx, ecx
shr edx, 4
mul edx
mov eax, dword [esp]
shr edx, 2
imul edx, edx, 0x270
sub ecx, edx
add dword [esp + ecx*4 + 0x14], esi
cmp dword [esp + 4], ebp
mov dword [eax], esi
ja 0x461b80
mov edi, dword [esp + 4]
lea eax, [edi + 0x270]
cmp eax, edi
mov dword [esp], eax
jbe 0x461d0e
mov edx, edi
mov eax, 0x1a41a41b
lea ebx, [edi + 0x132]
shr edx, 4
mul edx
mov eax, edi
mov ecx, edx
mov edx, ebx
shr ecx, 2
shr edx, 4
imul ecx, ecx, 0x270
sub eax, ecx
mov ecx, eax
lea esi, [esp + eax*4 + 0x14]
mov eax, 0x1a41a41b
mul edx
mov eax, 0x1a41a41b
shr edx, 2
imul edx, edx, 0x270
sub ebx, edx
lea ebp, [esp + ebx*4 + 0x14]
lea ebx, [edi - 1]
mov edx, ebx
shr edx, 4
mul edx
mov eax, dword [ebp]
shr edx, 2
imul edx, edx, 0x270
sub ebx, edx
add eax, dword [esp + ebx*4 + 0x14]
add eax, dword [esi]
mov edx, eax
shr eax, 0x1b
xor eax, edx
imul eax, eax, 0x5d588b65
mov ebx, eax
xor eax, dword [ebp]
sub ebx, ecx
mov ecx, ebx
lea ebx, [edi + 0x13d]
add edi, 1
mov edx, ebx
mov dword [ebp], eax
mov eax, 0x1a41a41b
shr edx, 4
mul edx
shr edx, 2
imul edx, edx, 0x270
sub ebx, edx
xor dword [esp + ebx*4 + 0x14], ecx
cmp dword [esp], edi
mov dword [esi], ecx
ja 0x461c61
xor edx, edx
mov eax, 1
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + edx*4 + 0x14]
test al, al
lea ebx, [esi + edx*4]
mov dword [ebx], ecx
je 0x461d50
test edx, edx
je 0x461d8b
test ecx, ecx
sete al
add edx, 1
cmp edx, 0x270
jne 0x461d15
test al, al
je 0x461d5b
mov eax, dword [esp + 0x10]
mov dword [eax], 0x80000000
jmp 0x461d5b
add edx, 1
cmp edx, 0x270
jne 0x461da3
mov eax, dword [esp + 0x10]
mov dword [eax + 0x9c0], 0x270
add esp, 0x9d4
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov esi, dword [esp + 8]
add esi, eax
jmp 0x461c15
mov eax, dword [esp + 0x10]
mov edx, 1
mov eax, dword [eax]
mov dword [esp], eax
not eax
shr eax, 0x1f
jmp 0x461d15
mov ecx, dword [esp + edx*4 + 0x14]
mov dword [ebx + 4], ecx
jmp 0x461d2f