Function at 0x4de480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx + 0x174]
mov dword [ebp - 0x14], eax
mov eax, edi
add eax, dword [ebx + 0x38]
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x4de721
jb 0x4de4b5
cmp eax, 0xffffffe0
ja 0x4de721
cmp dword [ebx + 0x16c], 0
mov dword [ebx + 0x3c], ecx
lea ecx, [ebx + 0x40]
push esi
mov esi, dword [ebx + 0x168]
mov dword [ebx + 0x38], eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], ecx
je 0x4de52f
test edi, edi
jne 0x4de4f4
lea eax, [ebx + 0x60]
push eax
push ecx
call fcn.004ded80
add esp, 8
mov dword [ebx + 0x16c], edi
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [ecx]
lea edx, [ebx + 0x178]
mov esi, 0x10
mov dword [ebp - 8], esi
movups xmmword [edx], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x16c], 0
jmp 0x4de538
lea edx, [ebx + 0x178]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebx + 0xc]
bswap eax
mov dword [ebp - 0xc], eax
mov eax, esi
and eax, 0xf
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], eax
je 0x4de5c1
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov dword [ebp + 0x14], ecx
nop dword [eax]
test edi, edi
je 0x4de59a
mov al, byte [eax + ebx + 0x10]
dec edi
xor al, byte [ecx]
lea ecx, [ebx + 0x178]
mov byte [edx], al
inc edx
mov byte [ebx + esi + 0x178], al
inc esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
inc eax
mov ecx, dword [ebp + 0x14]
inc ecx
mov dword [ebp - 4], edx
and eax, 0xf
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x18], eax
jne 0x4de560
mov ecx, dword [ebp - 8]
jmp 0x4de5a5
mov ecx, dword [ebp - 8]
test eax, eax
jne 0x4de712
push esi
push ecx
lea edx, [ebx + 0x60]
lea eax, [ebx + 0x40]
push edx
push eax
call fcn.004debb0
mov ecx, dword [ebp - 0x10]
add esp, 0x10
xor esi, esi
mov dword [ebp - 8], esi
jmp 0x4de5cd
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
lea edx, [ebx + 0x60]
cmp edi, 0x10
jb 0x4de5f0
test esi, esi
je 0x4de5f0
push esi
lea eax, [ebx + 0x178]
push eax
push edx
push ecx
call fcn.004debb0
add esp, 0x10
xor esi, esi
mov dword [ebp - 8], esi
cmp edi, 0xc00
jb 0x4de66b
mov esi, dword [ebp + 0x14]
mov eax, 0xaaaaaaab
mul edi
mov eax, dword [ebp - 4]
shr edx, 0xb
mov dword [ebp - 0x1c], edx
nop dword [eax + eax]
push ebx
push dword [ebp - 0x14]
push 0xc0
push eax
push esi
call dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
add eax, 0xc0
mov dword [ebp - 0xc], eax
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 4]
push 0xc00
push eax
lea eax, [ebx + 0x60]
push eax
push dword [ebp - 0x10]
call fcn.004debb0
mov eax, dword [ebp - 4]
add esp, 0x24
add eax, 0xc00
add esi, 0xc00
sub edi, 0xc00
mov dword [ebp - 4], eax
sub dword [ebp - 0x1c], 1
jne 0x4de610
mov dword [ebp + 0x14], esi
mov esi, dword [ebp - 8]
jmp 0x4de66e
mov eax, dword [ebp - 4]
mov ecx, edi
and ecx, 0xfffffff0
mov dword [ebp - 0x1c], ecx
je 0x4de6bb
push ebx
push dword [ebp - 0x14]
mov esi, ecx
shr esi, 4
push esi
push eax
push dword [ebp + 0x14]
call dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
add eax, esi
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], eax
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1c]
sub edi, eax
add dword [ebp + 0x14], eax
push eax
push esi
lea eax, [ebx + 0x60]
push eax
push dword [ebp - 0x10]
call fcn.004debb0
add esp, 0x24
add esi, dword [ebp - 0x1c]
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
test edi, edi
je 0x4de712
push dword [ebp - 0x14]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x170]
push ebx
call eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 0x18]
inc eax
bswap eax
mov dword [ebx + 0xc], eax
add ebx, 0x10
mov eax, dword [ebp - 4]
lea ecx, [edx + eax]
add edx, ebx
mov ebx, dword [ebp + 0x14]
sub ebx, eax
mov dword [ebp + 0x14], ebx
mov al, byte [ebx + ecx]
lea edx, [edx + 1]
xor al, byte [edx - 1]
lea ecx, [ecx + 1]
mov ebx, dword [ebp - 0x20]
mov byte [ecx - 1], al
mov byte [ebx + esi], al
inc esi
mov ebx, dword [ebp + 0x14]
sub edi, 1
jne 0x4de6f1
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x168], esi
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret