Function at 0x487f95
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ebx
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
push esi
push edi
test ebx, ebx
je 0x48827e
lea esi, [ebx + 0x124]
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x54]
push ecx
mov ecx, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004856b1
mov eax, dword [ebp + 8]
pop ecx
test eax, eax
je 0x4880b5
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x4880b5
mov ecx, eax
shr eax, 4
and ecx, 0xf
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x488047
mov ebx, eax
mov esi, edx
lea edi, [ebp - 0x44]
lea edx, [ebp - 0x44]
push ecx
mov ecx, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004856b1
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x54]
xor dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
xor dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
xor dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
xor dword [ebp - 0x28], eax
pop ecx
lea ecx, [ebp - 0x34]
call fcn.00487e68
mov edx, dword [ebp - 0x10]
add edx, 0x10
mov dword [ebp - 0x10], edx
sub ebx, 1
jne 0x487ffb
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x48808f
xor eax, eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
push ecx
push edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
call fcn.004cc920
pop ecx
pop ecx
lea edx, [ebp - 0x44]
mov ecx, edx
call fcn.004856b1
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x54]
xor dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
xor dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
xor dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
xor dword [ebp - 0x28], eax
pop ecx
lea ecx, [ebp - 0x34]
call fcn.00487e68
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov dword [ebx + 0x134], esi
mov dword [ebx + 0x138], eax
mov dword [ebx + 0x13c], ecx
mov dword [ebx + 0x140], edx
jmp 0x4880c1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
xor edi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], edi
je 0x48821b
cmp dword [ebp + 0xc], edi
je 0x48821b
mov ebx, dword [ebp + 0x10]
shr ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp + 0x10]
and ebx, 0xf
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx + 0x144], edi
je 0x48812a
mov esi, dword [ebx + 0x134]
xor eax, eax
or eax, dword [ebx + 0x138]
xor edx, edx
mov ecx, dword [ebx + 0x13c]
or esi, edi
or edx, dword [ebx + 0x140]
or ecx, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4881b8
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x44]
dec edi
mov dword [ebp - 0x18], edi
lea edi, [ebp - 0x44]
push ecx
movsd dword es:[edi], dword [esi]
mov ecx, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004856b1
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x54]
xor eax, dword [ebp - 0x44]
xor ebx, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x38]
pop ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], eax
call fcn.00487e68
add dword [ebp + 0xc], 0x10
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4881a0
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
jmp 0x488138
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp dword [ebp - 0x20], 0
je 0x48821b
push dword [ebp - 0x20]
xor eax, eax
lea edi, [ebp - 0x44]
push dword [ebp + 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
call fcn.004cc920
pop ecx
pop ecx
lea edx, [ebp - 0x44]
mov ecx, edx
call fcn.004856b1
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x54]
xor eax, dword [ebp - 0x44]
xor esi, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x38]
pop ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], eax
call fcn.00487e68
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebx + 0x144]
xor edi, edi
mov dword [ebp - 0x20], edi
test ebx, ebx
jne 0x48822d
mov ebx, dword [ebp + 8]
shld edi, ebx, 3
shl ebx, 3
xor esi, edi
xor eax, ebx
mov dword [ebp - 0x30], esi
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
shld ebx, eax, 3
shl eax, 3
xor ecx, ebx
xor edx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x54]
call fcn.00487e68
lea edx, [ebp - 0x34]
push ecx
mov ecx, edx
call fcn.004856b1
pop ecx
push dword [ebp + 0x18]
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x14]
call fcn.004cc920
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret