Function at 0x461530
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x48], 0
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
je 0x4616d7
cmp ebp, 8
jb 0x4617b0
lea eax, [ebp - 8]
mov dword [esp + 8], eax
and eax, 0xfffffff8
lea ebx, [eax + 8]
mov dword [esp + 0x10], eax
lea eax, [esi + eax + 8]
mov dword [esp + 0x14], ebx
mov ebx, ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
nop word cs:[eax + eax]
nop dword [eax + eax]
xor ecx, dword [edi + ebp]
xor edx, dword [edi + ebp + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov edx, dword [esp + 0x40]
mov ecx, esp
push 1
call fcn.00460440
add esp, 4
mov ecx, dword [esp]
add ebx, 0xfffffff8
mov eax, ecx
mov byte [esi + ebp], cl
mov byte [esi + ebp + 1], ch
shr eax, 0x10
mov byte [esi + ebp + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + ebp + 3], al
mov edx, dword [esp + 4]
mov eax, edx
mov byte [esi + ebp + 4], dl
mov byte [esi + ebp + 5], dh
shr eax, 0x10
mov byte [esi + ebp + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + ebp + 7], al
add ebp, 8
cmp ebx, 7
ja 0x461590
mov eax, dword [esp + 8]
add edi, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
mov ebp, eax
test ebp, ebp
je 0x4617bc
mov ebx, ebp
mov dword [esp + 8], edx
mov ebp, edi
xor eax, eax
lea edx, [ebx - 1]
cmp edx, 6
ja case.default.0x46162b
mov dword [esp + 0x10], ecx
add ebp, ebx
xor ecx, ecx
xor esi, esi
xor edi, edi
jmp dword [edx*4 + 0x57a980]
movzx eax, byte [ebp - 1]
dec ebp
shl eax, 0x10
movzx ecx, byte [ebp - 1]
dec ebp
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
dec ebp
or eax, ecx
mov ecx, eax
movzx eax, byte [ebp - 1]
dec ebp
shl eax, 0x18
movzx edx, byte [ebp - 1]
dec ebp
mov esi, ecx
shl edx, 0x10
or eax, edx
movzx ecx, byte [ebp - 1]
dec ebp
mov edi, esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
or eax, ecx
mov ecx, dword [esp + 0x10]
mov edx, esi
xor edi, dword [esp + 8]
xor eax, ecx
mov ecx, esp
mov dword [esp], eax
mov dword [esp + 4], edi
push 1
call fcn.00460440
add esp, 4
mov edx, dword [esp]
mov ecx, dword [esp + 0xc]
mov eax, edx
mov byte [ecx], dl
mov byte [ecx + 1], dh
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ecx + 3], al
mov eax, dword [esp + 4]
mov byte [ecx + 4], al
mov byte [ecx + 5], ah
mov esi, eax
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, esi
shr eax, 0x18
mov byte [ecx + 7], al
mov ecx, esi
jmp 0x46185b
cmp ebp, 8
jb 0x4617c5
lea eax, [ebp - 8]
mov dword [esp + 0xc], ebp
xor ebp, ebp
mov dword [esp + 0x14], eax
and eax, 0xfffffff8
lea ebx, [eax + 8]
mov dword [esp + 0x1c], eax
lea eax, [esi + eax + 8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
nop word cs:[eax + eax]
nop dword [eax]
mov eax, edi
mov edi, dword [edi + ebp]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x40]
mov ebx, ecx
mov ecx, esp
mov dword [esp], edi
mov esi, dword [eax + ebp + 4]
mov dword [esp + 4], esi
push 0
call fcn.00460440
mov edx, esi
mov ecx, edi
add esp, 4
mov esi, dword [esp + 8]
xor ebx, dword [esp]
mov edi, dword [esp + 0x38]
xor esi, dword [esp + 4]
mov eax, ebx
mov byte [edi + ebp], bl
mov byte [edi + ebp + 1], bh
shr ebx, 0x18
shr eax, 0x10
mov byte [edi + ebp + 2], al
mov byte [edi + ebp + 3], bl
mov eax, esi
mov ebx, esi
mov esi, dword [esp + 0xc]
mov byte [edi + ebp + 4], bl
mov byte [edi + ebp + 5], bh
shr eax, 0x10
shr ebx, 0x18
mov byte [edi + ebp + 6], al
mov byte [edi + ebp + 7], bl
mov edi, dword [esp + 0x34]
add ebp, 8
add esi, 0xfffffff8
cmp esi, 7
mov dword [esp + 0xc], esi
ja 0x461710
mov eax, dword [esp + 0x14]
add edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x44]
sub eax, dword [esp + 0x1c]
mov ebp, eax
test ebp, ebp
jne 0x4617d1
jmp 0x461855
mov dword [esp + 0xc], esi
test ebp, ebp
jne 0x461609
mov ebx, dword [esp + 0x44]
jmp 0x461855
mov dword [esp + 0x10], esi
test ebp, ebp
je 0x461855
mov eax, edi
mov edi, ecx
mov ebx, ebp
mov ebp, edx
mov edx, dword [esp + 0x40]
mov ecx, dword [eax]
mov dword [esp], ecx
mov dword [esp + 0xc], ecx
mov ecx, esp
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
push 0
call fcn.00460440
add esp, 4
lea eax, [ebx - 1]
cmp eax, 6
ja case.default.0x461816
mov ecx, edi
mov edx, ebp
mov esi, dword [esp + 0x10]
xor ecx, dword [esp]
xor edx, dword [esp + 4]
add esi, ebx
jmp dword [eax*4 + 0x57a99c]
mov eax, edx
shr eax, 0x10
mov byte [esi - 1], al
dec esi
mov byte [esi - 1], dh
dec esi
mov byte [esi - 1], dl
dec esi
mov eax, ecx
shr eax, 0x18
mov byte [esi - 1], al
dec esi
mov eax, ecx
shr eax, 0x10
mov byte [esi - 1], al
dec esi
mov byte [esi - 1], ch
dec esi
mov byte [esi - 1], cl
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
jmp 0x46185b
mov eax, edx
mov edx, ecx
mov ecx, eax
mov eax, edx
mov byte [ebx], dl
mov byte [ebx + 1], dh
shr edx, 0x18
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, ecx
mov byte [ebx + 3], dl
mov byte [ebx + 4], cl
mov byte [ebx + 5], ch
shr ecx, 0x18
shr eax, 0x10
mov byte [ebx + 6], al
mov byte [ebx + 7], cl
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
xor edi, edi
jmp 0x461681