Function at 0x460ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
lea eax, [ebp - 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x78]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x178]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xf8]
push edi
cmp dword [esi + 0x14], 0x20
mov dword [ebp - 0x20], eax
jne 0x461228
push 0x20
push dword [esi + 4]
lea eax, [ebp - 0x58]
push eax
call fcn.004d0d60
push 0x20
push dword [esi + 8]
lea eax, [ebp - 0x78]
push eax
call fcn.004d0d60
push 8
push dword [ebp + 0x2c]
lea eax, [ebp - 0x1c]
push eax
call fcn.004d0d60
xorps xmm0, xmm0
add esp, 0x24
movq qword [ebp - 0x14], xmm0
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 4]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [edi], eax
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x20]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x20]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [edi], eax
mov eax, dword [ebp + 0x20]
dec eax
cmp eax, 0x3f
ja 0x461228
pushal
mov esi, dword [ebp - 0xc]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x28]
push ebp
mov ecx, 0x20
mov ebp, eax
add eax, dword [esi]
sub eax, dword [esi + 0x80]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x460ff0
pop ebp
mov esi, dword [ebp - 0xc]
mov dword [esi], edx
mov dword [esi + 4], eax
popal
mov eax, dword [ebp + 0x18]
test eax, eax
jle 0x4610c3
nop dword [eax]
mov edx, dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
jge 0x461059
mov al, byte [edx]
inc edx
xor byte [ebp + ecx - 0x14], al
inc ecx
mov eax, dword [ebp + 0x18]
cmp ecx, 8
jl 0x461045
mov dword [ebp + 0x14], edx
pushal
mov esi, dword [ebp - 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x28]
push ebp
mov ecx, 0x10
mov ebp, eax
add eax, dword [esi]
sub eax, dword [esi + 0x80]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x461071
pop ebp
mov esi, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], edx
popal
mov eax, dword [ebp + 0x18]
sub eax, 8
mov dword [ebp + 0x18], eax
test eax, eax
jg 0x461040
mov edx, dword [ebp + 0xc]
test edx, edx
jle 0x4611e8
mov ebx, dword [ebp + 8]
xor ecx, ecx
cmp ecx, edx
jge 0x4610e4
mov al, byte [ebx]
inc ebx
xor byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 8
jl 0x4610d3
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], 0x1010101
add eax, 0x1010104
mov dword [ebp + 8], ebx
mov dword [ebp - 0x18], eax
cmp eax, 0x1010104
jae 0x461104
inc eax
mov dword [ebp - 0x18], eax
pushal
mov esi, dword [ebp - 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x28]
push ebp
mov ecx, 0x10
mov ebp, eax
add eax, dword [esi]
sub eax, dword [esi + 0x80]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x461119
pop ebp
mov esi, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], edx
popal
pushal
mov esi, dword [ebp - 0xc]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x28]
push ebp
mov ecx, 0x20
mov ebp, eax
add eax, dword [esi]
sub eax, dword [esi + 0x80]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x46116f
pop ebp
mov esi, dword [ebp - 0x30]
mov dword [esi], edx
mov dword [esi + 4], eax
popal
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x24]
nop dword [eax + eax]
cmp eax, edx
jge 0x4611d4
mov cl, byte [ebp + eax - 0x38]
inc eax
xor cl, byte [esi]
inc esi
mov byte [ebx], cl
inc ebx
cmp eax, 8
jl 0x4611c0
sub edx, 8
mov dword [ebp - 0x24], esi
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], edx
test edx, edx
jg 0x4610ce
mov ebx, dword [ebp + 0x20]
mov esi, ebx
mov edi, dword [ebp + 0x1c]
and ebx, 7
sar esi, 3
test esi, esi
jle 0x46120a
push esi
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.004d1780
add esp, 0xc
add edi, esi
test ebx, ebx
je 0x46121c
mov al, 1
mov ecx, ebx
shl al, cl
dec al
and al, byte [ebp + esi - 0x14]
mov byte [edi], al
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret