Function at 0x460390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x40]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x160]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xe0]
push edi
cmp dword [esi + 0x14], 0x20
mov dword [ebp - 8], eax
je 0x4603d9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x20
push dword [esi + 4]
lea eax, [ebp - 0x60]
push eax
call fcn.004d0d60
push 0x20
push dword [esi + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.004d0d60
push 8
push dword [ebp + 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.004d0d60
add esp, 0x24
mov esi, dword [ebp - 0x1c]
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 - 0x20]
mov edi, dword [ebp - 8]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
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 ecx, dword [ebp + 8]
xor esi, esi
mov edx, dword [ebp + 0x10]
cmp esi, edx
jge 0x4604a9
mov al, byte [ecx]
inc ecx
xor byte [ebp + esi - 0x10], al
inc esi
cmp esi, 8
jl 0x460498
mov dword [ebp + 8], ecx
test edx, edx
je 0x460628
pushal
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x18]
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 0x4604c9
pop ebp
mov esi, dword [ebp - 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
popal
mov ebx, dword [ebp + 0x10]
mov ecx, 8
mov edi, dword [ebp + 0xc]
cmp ebx, 8
mov eax, ebx
cmovg eax, ecx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.004d0d60
mov esi, dword [ebp - 0x18]
sub ebx, 8
add esi, 8
mov dword [ebp + 0x10], ebx
add edi, 8
mov dword [ebp - 0x18], esi
add esp, 0xc
mov dword [ebp + 0xc], edi
test ebx, ebx
jle 0x460628
mov edx, dword [ebp + 8]
xor eax, eax
nop dword [eax]
cmp eax, ebx
jge 0x460561
mov cl, byte [edx]
inc edx
xor byte [ebp + eax - 0x10], cl
inc eax
cmp eax, 8
jl 0x460550
mov dword [ebp + 8], edx
test esi, esi
je 0x4604b4
cmp dword [ebp + 0x20], 0
je 0x4604b4
test esi, 0x3ff
jne 0x4604b4
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00461600
add esp, 0x10
mov esi, dword [ebp - 0x1c]
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 - 0x20]
mov edi, dword [ebp - 8]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
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
jmp 0x4604b4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret