Function at 0x4616d0
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
lea edi, [ebp + 4]
mov ebx, dword [edi + 4]
sub edi, 4
push ebx
push ebx
mov dword [ebp - 8], ebx
mov eax, 0x13ffe5b6
mov edx, 0xfffffff
mov eax, dword [ebx]
mov esi, dword [0x402600]
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
shr eax, 2
pop ecx
pop ecx
mov ecx, dword [ebx + 0xc]
and ecx, edx
and eax, edx
mov edx, 0x400000
add ecx, 0x400000
sub edx, esi
mov dword [ebp - 0x10], edx
jne 0x461778
and dword [ebp - 4], 0
test eax, eax
jbe 0x461959
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ecx]
sub edx, 0x2ec09e1f
add dword [ebp - 0x1c], edx
add edx, dword [ebp - 0x18]
imul edx, edx, 0xd13f61e1
ror edx, 6
mov esi, edx
imul esi, esi, 0x5246
rol esi, 1
ror edx, 1
xor esi, edx
add dword [ebp - 0x1c], esi
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
mov dword [ebp - 0x18], esi
jb 0x46173b
jmp 0x461959
mov esi, ecx
lea edx, [ecx + eax]
sub esi, 0x400000
mov ebx, esi
and ebx, 0xfffff000
add eax, esi
mov dword [ebp - 4], ebx
mov ebx, esi
sub ebx, dword [ebp - 4]
mov esi, eax
and esi, 0xfffff000
mov dword [ebp - 0x14], edx
sub eax, esi
mov edx, dword [0x40003c]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x4000a0]
mov edx, dword [edx + 0x4000a4]
mov dword [ebp - 0x30], esi
add eax, 0x400000
add edx, eax
cmp eax, edx
mov dword [ebp - 0x28], edx
je 0x4617d7
mov edx, dword [eax]
cmp edx, dword [ebp - 4]
jae 0x4617d7
add eax, dword [eax + 4]
cmp eax, dword [ebp - 0x28]
jne 0x4617c8
and dword [ebp - 0x20], 0
cmp eax, dword [ebp - 0x28]
je 0x46191c
mov edx, dword [ebp - 4]
cmp dword [eax], edx
jne 0x461818
mov edx, dword [eax + 4]
sub edx, 8
shr edx, 1
mov dword [ebp - 4], edx
je 0x461818
mov edx, dword [ebp - 0x20]
movzx edx, word [eax + edx*2 + 8]
and edx, 0xfff
cmp edx, ebx
jae 0x461818
inc dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 4]
jne 0x4617f8
cmp eax, dword [ebp - 0x28]
je 0x46191c
cmp dword [eax], esi
ja 0x46191c
mov edx, dword [eax + 4]
add edx, 0xfffffff8
shr edx, 1
cmp dword [ebp - 0x20], edx
jne 0x461850
add eax, dword [eax + 4]
cmp eax, dword [ebp - 0x28]
je 0x46191c
cmp dword [eax], esi
ja 0x46191c
and dword [ebp - 0x20], 0
jmp 0x461829
cmp dword [eax], esi
jne 0x46186b
mov edx, dword [ebp - 0x20]
movzx edx, word [eax + edx*2 + 8]
and edx, 0xfff
cmp edx, dword [ebp - 0x2c]
jae 0x46191c
mov edx, dword [ebp - 0x20]
inc dword [ebp - 0x20]
test word [eax + edx*2 + 8], 0xf000
je 0x461818
movzx esi, word [eax + edx*2 + 8]
mov edx, dword [eax]
and esi, 0xfff
lea ebx, [esi + edx + 0x400000]
xor edx, edx
mov dword [ebp - 4], ebx
sub dword [ebp - 4], ecx
mov dword [ebp - 0xc], ebx
je 0x4618d3
movzx esi, byte [edx + ecx]
sub esi, 0x2ec09e1f
add dword [ebp - 0x1c], esi
add esi, dword [ebp - 0x18]
imul esi, esi, 0xd13f61e1
ror esi, 6
mov ebx, esi
imul ebx, ebx, 0x5246
rol ebx, 1
ror esi, 1
xor ebx, esi
mov esi, ebx
add dword [ebp - 0x1c], esi
inc edx
cmp edx, dword [ebp - 4]
mov dword [ebp - 0x18], ebx
jb 0x46189b
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebx]
sub ecx, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, byte [ebp + edx - 0xc]
sub ecx, 0x2ec09e1f
add dword [ebp - 0x1c], ecx
add ecx, dword [ebp - 0x18]
imul ecx, ecx, 0xd13f61e1
ror ecx, 6
mov esi, ecx
imul esi, esi, 0x5246
rol esi, 1
ror ecx, 1
xor esi, ecx
add dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
inc edx
cmp edx, 4
jb 0x4618dd
mov esi, dword [ebp - 0x30]
lea ecx, [ebx + 4]
jmp 0x461818
xor esi, esi
mov ebx, dword [ebp - 0x14]
sub ebx, ecx
je 0x461956
movzx eax, byte [esi + ecx]
sub eax, 0x2ec09e1f
add dword [ebp - 0x1c], eax
add eax, dword [ebp - 0x18]
imul eax, eax, 0xd13f61e1
ror eax, 6
mov edx, eax
imul edx, edx, 0x5246
rol edx, 1
ror eax, 1
xor edx, eax
add dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
inc esi
cmp esi, ebx
jb 0x461925
mov ebx, dword [ebp - 8]
add dword [edi + 8], 0x10
mov ecx, dword [ebx + 8]
and ecx, 0xfffffff
mov eax, dword [ecx + 0x400000]
mov ecx, dword [ecx + 0x400004]
xor eax, dword [ebp - 0x1c]
xor ecx, dword [ebp - 0x18]
or eax, ecx
je 0x461a2e
call fcn.004fdc7b
lea ecx, [edi + 0xc]
mov edx, 0xfffff000
and eax, edx
mov dword [ebp - 0x14], eax
and ecx, 0xfffffffc
lea eax, [ecx + 0xfff]
and eax, edx
mov edx, 0xffff
mov dword [ebp - 8], eax
mov dword [edi + 8], 0x4b3c5b
xor eax, eax
mov esi, dword [0x51b214]
imul esi, esi, 0x343fd
add esi, 0x269ec3
mov dword [0x51b214], esi
shr esi, 0x10
shl eax, 0x10
or eax, esi
shr edx, 0x10
jne 0x4619ae
xor edx, edx
mov esi, 0xffff
div esi
inc edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x14], 0
jmp 0x4619f7
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
add ecx, 4
cmp ecx, dword [ebp - 8]
jb 0x4619ef
mov dword [edi + 8], 0x4b3c5b
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebx + 4]
mov ecx, eax
and ebx, 0xfffffff
mov dword [ebp - 0x38], eax
shl ecx, 0x10
add ebx, 0x400000
xor ecx, dword [ebx]
xor ecx, dword [0x51b3bc]
xor ecx, eax
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], ecx
mov eax, 0x86f90854
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov esp, ebp
pop ebp
popfd
ret