Function at 0x1004c630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100f529c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1c], edx
mov ebx, dword [esi + 0x150]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], ebx
movups xmmword [esi], xmm0
movups xmmword [esi + 0x40], xmm0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x164], 0
mov dword [esi + 0x160], 0
cmp edi, 0xc
jne 0x1004c6b9
movq xmm0, qword [edx]
mov edi, 1
movq qword [esi], xmm0
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov byte [esi + 0xf], 1
jmp 0x1004c831
mov dword [ebp - 0x30], edi
lea eax, [esi + 0x50]
cmp edi, 0x10
jb 0x1004c715
mov ecx, edi
mov ebx, edx
shr ecx, 4
sub ebx, esi
mov eax, ecx
mov dword [ebp - 0x18], ecx
shl eax, 4
add edx, eax
mov dword [ebp - 0x1c], edx
nop word [eax + eax]
mov eax, esi
mov edx, 4
mov ecx, dword [ebx + eax]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x1004c6e7
lea eax, [esi + 0x50]
push eax
push esi
call dword [ebp - 0x20]
add esp, 8
add ebx, 0x10
sub edi, 0x10
sub dword [ebp - 0x18], 1
jne 0x1004c6e0
mov edx, dword [ebp - 0x1c]
lea eax, [esi + 0x50]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
test edi, edi
je 0x1004c7ea
xor ebx, ebx
test edi, edi
je 0x1004c7de
cmp edi, 0x40
jb 0x1004c7c9
lea eax, [edx - 1]
lea ecx, [esi - 1]
add eax, edi
add ecx, edi
cmp esi, eax
ja 0x1004c749
cmp ecx, edx
jae 0x1004c7c9
lea ecx, [edx + 0x30]
mov eax, edi
mov dword [ebp - 0x28], ecx
and eax, 0xffffffc0
mov ecx, edx
mov dword [ebp - 0x24], eax
sub ecx, esi
lea eax, [esi + 0x10]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
add ebx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + edx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebx, dword [ebp - 0x24]
jb 0x1004c770
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
cmp ebx, edi
jae 0x1004c7de
sub edx, esi
lea ecx, [esi + ebx]
sub edi, ebx
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x1004c7d0
push dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
push esi
call ebx
add esp, 8
mov eax, dword [ebp - 0x30]
lea edi, [ebp - 0x14]
xor ecx, ecx
xorps xmm0, xmm0
shld ecx, eax, 3
movq qword [ebp - 0x14], xmm0
mov edx, 4
shl eax, 3
sub edi, esi
bswap ecx
bswap eax
mov dword [ebp - 0xc], ecx
mov ecx, esi
mov dword [ebp - 8], eax
mov eax, dword [edi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x1004c814
lea eax, [esi + 0x50]
push eax
push esi
call ebx
mov edi, dword [esi + 0xc]
add esp, 8
bswap edi
push dword [ebp - 0x34]
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 0x158]
push esi
call eax
mov ecx, dword [ebp - 4]
lea eax, [edi + 1]
add esp, 0xc
xor ecx, ebp
bswap eax
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebx
call fcn.100a69cd
mov esp, ebp
pop ebp
ret