Function at 0x4614f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x54]
push ebx
sub esp, 0x14c
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0xf8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14c], eax
mov esi, esi
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ecx]
add ecx, 4
mov dword [ebp - 0x14c], ecx
inc dword [ebp + eax*4 - 0x58]
dec ebx
jne 0x461590
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x58], edi
je 0x461baf
mov ecx, dword [edx]
mov eax, 1
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0xec], ecx
mov esi, esi
lea edi, [edi]
mov edi, dword [ebp - 0x11c]
mov eax, dword [ebp + edi*4 - 0x58]
test eax, eax
jne 0x4615ea
inc edi
cmp edi, 0xf
mov dword [ebp - 0x11c], edi
jbe 0x4615d0
mov eax, dword [ebp - 0x11c]
cmp dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], eax
jae 0x461604
mov dword [ebp - 0xec], eax
mov ebx, 0xf
lea esi, [esi]
mov eax, dword [ebp + ebx*4 - 0x58]
test eax, eax
jne 0x46161b
dec ebx
jne 0x461610
cmp dword [ebp - 0xec], ebx
mov dword [ebp - 0xe0], ebx
jbe 0x46162f
mov dword [ebp - 0xec], ebx
mov ecx, dword [ebp - 0xec]
mov edi, 1
mov dword [ebp - 0x100], edi
mov edi, dword [ebp - 0xe0]
mov dword [edx], ecx
movzx ecx, byte [ebp - 0x11c]
shl dword [ebp - 0x100], cl
cmp dword [ebp - 0x11c], edi
jae 0x46168a
lea esi, [esi]
mov eax, dword [ebp - 0x11c]
mov eax, dword [ebp + eax*4 - 0x58]
sub dword [ebp - 0x100], eax
js 0x461ba8
inc dword [ebp - 0x11c]
shl dword [ebp - 0x100], 1
cmp dword [ebp - 0x11c], ebx
jb 0x461660
mov eax, dword [ebp + ebx*4 - 0x58]
sub dword [ebp - 0x100], eax
js 0x461ba8
mov dword [ebp - 0x14c], esi
mov ecx, dword [ebp - 0x100]
xor edx, edx
mov dword [ebp - 0x11c], edx
lea esi, [ebp - 0xd0]
add eax, ecx
mov dword [ebp + ebx*4 - 0x58], eax
xor eax, eax
dec ebx
mov dword [ebp - 0xd4], eax
je 0x4616f3
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebp - 0x14c]
add dword [ebp - 0x14c], 4
mov edx, dword [edx]
add dword [ebp - 0x11c], edx
mov ecx, dword [ebp - 0x11c]
mov dword [esi], ecx
add esi, 4
dec ebx
jne 0x4616d0
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14c], esi
mov esi, esi
mov edi, dword [ebp - 0x14c]
add dword [ebp - 0x14c], 4
mov edi, dword [edi]
test edi, edi
mov dword [ebp - 0x11c], edi
je 0x46172e
mov eax, dword [ebp + edi*4 - 0xd8]
mov edx, dword [ebp + 0x2c]
mov dword [edx + eax*4], ebx
inc eax
mov dword [ebp + edi*4 - 0xd8], eax
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x461700
mov ecx, dword [ebp - 0xe0]
xor eax, eax
xor ebx, ebx
mov edi, dword [ebp - 0xec]
mov esi, dword [ebp + 0x2c]
mov ecx, dword [ebp + ecx*4 - 0xd8]
mov dword [ebp - 0xd8], eax
neg edi
mov eax, 0xffffffff
mov dword [ebp - 0xe4], eax
xor eax, eax
mov dword [ebp - 0x98], eax
xor eax, eax
mov dword [ebp - 0x13c], eax
xor eax, eax
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0xe0]
cmp dword [ebp - 0xe8], eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0xfc], edi
jg 0x461b0a
mov edx, dword [ebp - 0xe8]
mov ecx, dword [ebp + edx*4 - 0x58]
dec ecx
mov dword [ebp - 0xdc], ecx
inc ecx
je 0x461af2
lea esi, [esi]
lea edi, [edi]
mov esi, dword [ebp - 0xfc]
mov edi, dword [ebp - 0xec]
add esi, edi
cmp dword [ebp - 0xe8], esi
mov dword [ebp - 0x108], esi
jle 0x46199c
mov edi, dword [ebp - 0xdc]
inc edi
mov dword [ebp - 0x10c], edi
lea esi, [esi]
inc dword [ebp - 0xe4]
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xfc], eax
sub edx, eax
cmp edx, ecx
mov dword [ebp - 0x104], edx
jbe 0x461820
mov dword [ebp - 0x104], ecx
mov ecx, dword [ebp - 0xfc]
mov eax, 1
mov esi, dword [ebp - 0xe8]
sub esi, ecx
mov ecx, esi
shl eax, cl
cmp eax, dword [ebp - 0x10c]
mov dword [ebp - 0x11c], esi
jbe 0x4618b0
mov edx, dword [ebp - 0xdc]
mov edi, dword [ebp - 0xe8]
sub eax, edx
mov edx, dword [ebp - 0x104]
dec eax
lea esi, [ebp + edi*4 - 0x58]
cmp dword [ebp - 0x11c], edx
jae 0x4618b0
inc dword [ebp - 0x11c]
cmp dword [ebp - 0x11c], edx
jae 0x4618b0
lea esi, [esi]
lea edi, [edi]
add esi, 4
add eax, eax
mov edx, dword [esi]
cmp eax, edx
jbe 0x4618b0
inc dword [ebp - 0x11c]
sub eax, edx
mov ecx, dword [ebp - 0x104]
cmp dword [ebp - 0x11c], ecx
jb 0x461880
jmp 0x4618b0
movzx ecx, byte [ebp - 0x11c]
mov esi, 1
mov edi, dword [ebp + 0x28]
mov edi, dword [edi]
shl esi, cl
mov dword [ebp - 0x104], esi
mov edx, edi
add edx, esi
mov dword [ebp - 0x120], edi
cmp edx, 0x5a0
mov esi, 0xfffffffd
ja 0x461b30
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 0xe4]
mov esi, dword [ebp + 0x28]
lea eax, [eax + edi*8]
test ecx, ecx
mov dword [ebp - 0x13c], eax
mov dword [ebp + ecx*4 - 0x98], eax
mov dword [esi], edx
je 0x461b98
movzx edx, byte [ebp - 0x11c]
mov dword [ebp + ecx*4 - 0xd8], ebx
mov eax, dword [ebp - 0xf8]
mov ah, byte [ebp - 0xec]
mov ecx, dword [ebp - 0x108]
and eax, 0xffffff00
or eax, edx
mov dword [ebp - 0xf8], eax
mov edx, ebx
mov eax, dword [ebp - 0xec]
mov esi, dword [ebp - 0xf8]
sub ecx, eax
shr edx, cl
mov dword [ebp - 0x11c], edx
mov ecx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp + ecx*4 - 0x9c]
sub eax, ecx
sar eax, 3
sub eax, edx
mov dword [ebp - 0xf4], eax
mov edi, dword [ebp - 0xf4]
mov eax, edx
mov dword [ecx + eax*8], esi
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp - 0xec]
add dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
cmp dword [ebp - 0xe8], edx
jg 0x4617f0
movzx eax, byte [ebp - 0xe8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x2c]
sub al, byte [ebp - 0xfc]
mov ecx, dword [ebp - 0xf8]
mov ch, al
mov dword [ebp - 0xf8], ecx
lea eax, [edi + esi*4]
cmp dword [ebp - 0x14c], eax
jb 0x461b41
mov eax, ecx
and eax, 0xffffff00
or eax, 0xc0
mov dword [ebp - 0xf8], eax
mov esi, dword [ebp - 0xfc]
mov eax, 1
mov ecx, dword [ebp - 0xe8]
mov edi, dword [ebp - 0x104]
sub ecx, esi
shl eax, cl
movzx ecx, byte [ebp - 0xfc]
mov esi, ebx
shr esi, cl
mov dword [ebp - 0x11c], esi
cmp esi, edi
jae 0x461a41
mov esi, esi
mov esi, dword [ebp - 0x11c]
mov edx, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xf4]
mov edi, dword [ebp - 0x13c]
mov dword [edi + esi*8], edx
mov dword [edi + esi*8 + 4], ecx
mov edx, dword [ebp - 0x104]
add esi, eax
mov dword [ebp - 0x11c], esi
cmp esi, edx
jb 0x461a10
mov ecx, dword [ebp - 0xe8]
mov esi, 1
dec ecx
shl esi, cl
test ebx, esi
mov dword [ebp - 0x11c], esi
je 0x461a76
lea esi, [esi]
mov ecx, dword [ebp - 0x11c]
shr dword [ebp - 0x11c], 1
xor ebx, ecx
test dword [ebp - 0x11c], ebx
jne 0x461a60
movzx ecx, byte [ebp - 0xfc]
mov eax, 1
mov edx, dword [ebp - 0x11c]
mov esi, dword [ebp - 0xe4]
shl eax, cl
xor ebx, edx
dec eax
and eax, ebx
cmp eax, dword [ebp + esi*4 - 0xd8]
je 0x461adf
mov edx, 1
lea esi, [esi]
lea edi, [edi]
dec dword [ebp - 0xe4]
mov eax, dword [ebp - 0xec]
sub dword [ebp - 0xfc], eax
mov eax, edx
mov esi, dword [ebp - 0xe4]
movzx ecx, byte [ebp - 0xfc]
shl eax, cl
dec eax
and eax, ebx
cmp eax, dword [ebp + esi*4 - 0xd8]
jne 0x461ab0
dec dword [ebp - 0xdc]
cmp dword [ebp - 0xdc], 0xffffffff
jne 0x4617c0
inc dword [ebp - 0xe8]
mov edi, dword [ebp - 0xe0]
cmp dword [ebp - 0xe8], edi
jle 0x46179a
mov eax, dword [ebp - 0x100]
test eax, eax
je 0x461b3d
cmp dword [ebp - 0xe0], 1
mov eax, 0xfffffffb
je 0x461b3d
mov esi, eax
lea esi, [esi]
lea edi, [edi]
add esp, 0x14c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x461b22
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x10]
jae 0x461b82
cmp ecx, 0xff
mov al, 0x60
ja 0x461b5a
xor eax, eax
movzx edx, al
mov eax, dword [ebp - 0xf8]
and eax, 0xffffff00
or eax, edx
mov dword [ebp - 0xf8], eax
add dword [ebp - 0x14c], 4
mov dword [ebp - 0xf4], ecx
jmp 0x4619de
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
sub ecx, edi
movzx eax, byte [edx + ecx*4]
mov ecx, dword [esi + ecx*4]
add al, 0x50
jmp 0x461b5a
mov esi, dword [ebp - 0x13c]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], esi
jmp 0x46197e
mov esi, 0xfffffffd
jmp 0x461b30
mov dword [edx], 0
mov eax, dword [ebp + 0x1c]
xor esi, esi
mov dword [eax], 0
jmp 0x461b30