Function at 0x1004b5a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x100f529c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
push esi
mov esi, dword [ebx + 0x18]
push edi
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x48], eax
test edi, edi
je 0x1004b88e
cmp ecx, 0x20
jb 0x1004b5fa
lea eax, [ecx - 0x20]
cmp edx, eax
jbe 0x1004b5fe
cmp ecx, edx
jae 0x1004b65e
cmp edi, 0x10
jb 0x1004b650
mov eax, edi
shr eax, 4
mov dword [ebp - 0x28], eax
nop dword [eax + eax]
push dword [ebp - 0x44]
push edx
push ecx
call dword [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
add esp, 0xc
sub esi, eax
mov edx, 4
mov ecx, dword [esi + eax]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x1004b625
mov ecx, dword [ebp - 0x30]
sub edi, 0x10
mov edx, dword [ebp - 0x2c]
mov esi, ecx
add ecx, 0x10
add edx, 0x10
sub dword [ebp - 0x28], 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
jne 0x1004b610
movups xmm0, xmmword [esi]
mov esi, dword [ebp - 0x40]
movups xmmword [esi], xmm0
jmp 0x1004b6ea
cmp edi, 0x10
jb 0x1004b6f5
mov eax, esi
lea esi, [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x28], eax
mov eax, edx
sub eax, esi
mov dword [ebp - 0x24], eax
mov eax, ecx
sub eax, esi
mov dword [ebp - 0x34], eax
mov eax, edi
shr eax, 4
mov dword [ebp - 0x38], eax
shl eax, 4
add edx, eax
mov dword [ebp - 0x2c], edx
nop
push dword [ebp - 0x44]
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [ebp - 0x48]
mov edi, dword [ebp - 0x24]
add esp, 0xc
xor esi, esi
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x20]
add ecx, esi
add esi, 4
mov edx, dword [eax + ecx]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + ecx]
xor eax, dword [ecx]
mov dword [edi + ecx], eax
mov eax, dword [ebp - 0x28]
mov dword [eax + ecx], edx
cmp esi, 0x10
jb 0x1004b6a3
mov edi, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x30]
sub edi, 0x10
add dword [ebp - 0x34], 0x10
add ecx, 0x10
add dword [ebp - 0x24], 0x10
sub dword [ebp - 0x38], 1
mov dword [ebx + 0x10], edi
mov dword [ebp - 0x30], ecx
jne 0x1004b690
mov esi, dword [ebp - 0x40]
test edi, edi
je 0x1004b88e
mov edx, dword [ebp - 0x2c]
lea eax, [esi + 1]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x5c], eax
mov eax, 1
sub eax, esi
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x1f]
sub eax, esi
mov dword [ebp - 0x64], eax
mov eax, 2
sub eax, esi
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x1e]
sub eax, esi
mov esi, edx
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x20]
sub eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x40]
sub esi, eax
add eax, 2
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x50], eax
nop
push dword [ebp - 0x44]
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
xor edx, edx
mov ecx, dword [ebp - 0x50]
add esp, 0xc
mov dword [ebp - 0x34], eax
add ecx, esi
sub eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x2c]
not eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
cmp edx, edi
jae 0x1004b82b
mov cl, byte [eax]
mov edx, dword [ebp - 0x28]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x3c]
xor al, byte [esi - 1]
mov byte [edx - 2], al
mov eax, edx
add eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x24]
mov byte [esi - 1], cl
cmp eax, edi
jae 0x1004b82a
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x4c]
add ecx, esi
mov dl, byte [ecx + eax]
mov eax, dword [ebp - 0x5c]
mov al, byte [esi + eax]
xor al, byte [esi]
mov byte [ecx], al
mov eax, dword [ebp - 0x60]
add eax, esi
mov byte [esi], dl
cmp eax, edi
jae 0x1004b822
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x4c]
mov cl, byte [edx + eax]
mov eax, dword [ebp - 0x64]
mov al, byte [esi + eax]
xor al, byte [esi + 1]
mov byte [edx], al
mov eax, dword [ebp - 0x68]
add eax, esi
mov byte [esi + 1], cl
cmp eax, edi
jae 0x1004b81a
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x34]
add dword [ebp - 0x3c], 4
mov al, byte [esi + eax]
xor al, byte [esi + 2]
mov cl, byte [ecx + 3]
mov byte [edx + 1], al
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
add edx, 4
mov byte [esi + 2], cl
add eax, 4
add esi, 4
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x34], eax
cmp edx, 0x10
jb 0x1004b775
jmp 0x1004b82b
mov edx, dword [ebp - 0x24]
add edx, 3
jmp 0x1004b82b
mov edx, dword [ebp - 0x24]
add edx, 2
jmp 0x1004b82b
inc edx
cmp edi, 0x10
jbe 0x1004b866
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x38]
add ecx, 0x10
add dword [ebp - 0x2c], 0x10
add esi, 0x10
sub dword [ebp - 0x28], 0x10
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], esi
sub edi, 0x10
jne 0x1004b740
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a69cd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp edx, 0x10
jae 0x1004b88e
mov eax, dword [ebp - 0x40]
mov edi, 0x10
mov ecx, dword [ebp - 0x30]
sub ecx, eax
sub edi, edx
lea esi, [eax + edx]
nop dword [eax]
mov al, byte [ecx + esi]
lea esi, [esi + 1]
mov byte [esi - 1], al
sub edi, 1
jne 0x1004b880
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100a69cd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret