Function at 0x533620
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 0x5338c2
jb 0x533655
cmp eax, 0xffffffe0
ja 0x5338c2
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 0x5336cf
test edi, edi
jne 0x533694
lea eax, [ebx + 0x60]
push eax
push ecx
call fcn.005344f0
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 0x5336d8
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 0x533766
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x14], ecx
mov dword [ebp - 4], edx
nop dword [eax]
test edi, edi
je 0x53373f
mov cl, byte [edx]
dec edi
mov byte [ebx + esi + 0x178], cl
lea edx, [ebx + 0x178]
mov al, byte [eax + ebx + 0x10]
inc esi
xor al, cl
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
inc edx
mov dword [ebp - 4], edx
mov byte [ecx], al
inc ecx
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp + 0x14], ecx
and eax, 0xf
mov dword [ebp - 0x18], eax
jne 0x533700
mov ecx, dword [ebp - 8]
jmp 0x53374a
mov ecx, dword [ebp - 8]
test eax, eax
jne 0x5338b3
push esi
push ecx
lea edx, [ebx + 0x60]
lea eax, [ebx + 0x40]
push edx
push eax
call fcn.00534320
mov ecx, dword [ebp - 0x10]
add esp, 0x10
xor esi, esi
mov dword [ebp - 8], esi
jmp 0x533772
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea edx, [ebx + 0x60]
cmp edi, 0x10
jb 0x533795
test esi, esi
je 0x533795
push esi
lea eax, [ebx + 0x178]
push eax
push edx
push ecx
call fcn.00534320
add esp, 0x10
xor esi, esi
mov dword [ebp - 8], esi
cmp edi, 0xc00
jb 0x533808
mov esi, dword [ebp - 4]
mov eax, 0xaaaaaaab
mul edi
shr edx, 0xb
mov dword [ebp - 0x1c], edx
nop dword [eax]
push 0xc00
push esi
lea eax, [ebx + 0x60]
push eax
push dword [ebp - 0x10]
call fcn.00534320
mov ecx, dword [ebp + 0x14]
push ebx
push dword [ebp - 0x14]
push 0xc0
push ecx
push esi
call dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
add esp, 0x24
add dword [ebp + 0x14], 0xc00
add ecx, 0xc0
mov eax, ecx
mov dword [ebp - 0xc], ecx
bswap eax
add esi, 0xc00
mov dword [ebx + 0xc], eax
sub edi, 0xc00
sub dword [ebp - 0x1c], 1
jne 0x5337b0
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
mov eax, edi
and eax, 0xfffffff0
mov dword [ebp - 0x1c], eax
je 0x533854
push eax
push dword [ebp - 4]
mov esi, eax
lea eax, [ebx + 0x60]
push eax
push dword [ebp - 0x10]
shr esi, 4
call fcn.00534320
mov ecx, dword [ebp + 0x14]
push ebx
push dword [ebp - 0x14]
push esi
push ecx
push dword [ebp - 4]
call dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
add esp, 0x24
add eax, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], eax
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp + 0x14], eax
add dword [ebp - 4], eax
sub edi, eax
test edi, edi
je 0x5338b3
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 ecx, dword [ebp + 0x14]
inc eax
bswap eax
mov dword [ebx + 0xc], eax
add ebx, 0x10
mov eax, dword [ebp - 0x18]
lea edx, [eax + ecx]
add eax, ebx
mov ebx, dword [ebp - 4]
mov dword [ebp + 0x14], eax
sub ebx, ecx
nop word [eax + eax]
mov eax, dword [ebp - 0x20]
lea edx, [edx + 1]
mov cl, byte [ebx + edx - 1]
mov byte [eax + esi], cl
inc esi
mov eax, dword [ebp + 0x14]
inc dword [ebp + 0x14]
mov al, byte [eax]
xor al, cl
mov byte [edx - 1], al
sub edi, 1
jne 0x533890
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