Function at 0x41d450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x24], 0
push eax
push 0x10
push eax
xorps xmm0, xmm0
push edi
movups xmmword [ebp - 0x40], xmm0
call fcn.00415f40
add esp, 0x14
test eax, eax
jne 0x41d726
mov ecx, dword [ebp - 0x3c]
mov byte [edi + 0x179], al
mov eax, dword [ebp - 0x40]
mov dword [edi + 0xb8], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0xbc], ecx
mov ecx, dword [ebp - 0x34]
mov dword [edi + 0xc0], eax
mov dword [edi + 0xc4], ecx
mov dword [edi + 0x38], 0
push ebx
mov dword [edi + 0x3c], 0
mov ebx, 4
mov dword [edi + 0x40], 0
push esi
mov dword [edi + 0x44], 0
mov edx, ebx
mov esi, ebx
shl edx, 5
add edx, edi
shl esi, 4
add esi, edi
mov ecx, dword [edx + 0x40]
mov eax, dword [edx + 0x44]
bswap eax
bswap ecx
shrd eax, ecx, 1
bswap eax
mov dword [esi + 0x44], eax
mov dword [ebp - 0x2c], eax
shr ecx, 1
bswap ecx
mov dword [esi + 0x40], ecx
movzx eax, byte [edx + 0x3f]
shl al, 7
or al, cl
mov byte [esi + 0x40], al
mov ecx, dword [edx + 0x38]
mov eax, dword [edx + 0x3c]
bswap eax
bswap ecx
shrd eax, ecx, 1
bswap eax
shr ecx, 1
mov dword [esi + 0x3c], eax
mov dword [ebp - 0x2c], eax
bswap ecx
mov dword [esi + 0x38], ecx
movzx eax, byte [edx + 0x47]
and al, 1
neg al
sbb al, al
and al, 0xe1
xor al, cl
shr ebx, 1
mov byte [esi + 0x38], al
jne 0x41d4d1
mov esi, 8
nop
mov edx, esi
shl edx, 4
add edx, edi
mov ecx, dword [edx + 0x38]
mov eax, dword [edx + 0x3c]
bswap ecx
bswap eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], ecx
lea edx, [esi + 4]
shl edx, 4
add edx, edi
shr esi, 1
mov ecx, dword [edx]
mov eax, dword [edx + 4]
bswap ecx
bswap eax
mov dword [edx], eax
mov dword [edx + 4], ecx
jne 0x41d540
mov edx, 2
mov dword [ebp - 0x20], edx
nop dword [eax]
cmp edx, 1
jle 0x41d714
mov eax, edx
lea ebx, [edi + 0x38]
shl eax, 4
lea ecx, [edi + 0x48]
add ebx, eax
mov dword [ebp - 8], ecx
add eax, 0x48
mov dword [ebp - 0x10], ebx
add edi, eax
lea eax, [edx - 1]
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], eax
nop word [eax + eax]
mov esi, ebx
sub edi, ecx
mov ebx, 4
mov dword [ebp - 0xc], edi
xor eax, eax
sub esi, ecx
mov edx, ecx
sub ebx, ecx
mov ecx, dword [esi + edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
add eax, 4
mov dword [edi + edx - 4], ecx
lea ecx, [ebx + edx]
cmp ecx, 0x10
jbe 0x41d5c4
mov ebx, dword [ebp - 0x10]
mov edx, 0x10
sub edx, eax
cmp eax, 0x10
jae 0x41d6f2
cmp edx, 0x40
jb 0x41d6d0
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 4]
add edi, eax
mov dword [ebp - 0x14], edi
lea ebx, [ecx + eax]
add ecx, 0xf
mov dword [ebp - 0x18], ebx
cmp edi, ecx
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
ja 0x41d625
mov ecx, dword [ebp - 4]
add ecx, 0xf
cmp ecx, dword [ebp - 0x18]
jae 0x41d6d0
lea ecx, [eax + ebx]
mov dword [ebp - 0x28], ecx
lea ecx, [ebx + 0xf]
cmp dword [ebp - 0x14], ecx
ja 0x41d642
mov ecx, dword [ebp - 4]
add ecx, 0xf
cmp ecx, dword [ebp - 0x28]
jae 0x41d6d0
and edx, 0x3f
mov ecx, 0x10
sub ecx, edx
mov edi, ebx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
add edx, 0x20
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
sub edi, dword [ebp - 4]
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0xc]
nop word [eax + eax]
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [eax + ebx]
lea edx, [edx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [edx - 0x60], xmm1
movups xmm1, xmmword [esi + ecx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [edi + ecx - 0x40], xmm1
mov edi, dword [ebp - 0x28]
movups xmm1, xmmword [edi + edx - 0x40]
mov edi, dword [ebp - 0xc]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [eax + ebx + 0x30]
add eax, 0x40
pxor xmm1, xmm0
movups xmmword [edx - 0x30], xmm1
cmp eax, dword [ebp - 0x2c]
jb 0x41d670
mov dword [ebp - 0x2c], eax
cmp eax, 0x10
jae 0x41d6f2
mov ecx, dword [ebp - 8]
mov edx, 0x10
add ecx, eax
sub edx, eax
nop dword [eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [edi + ecx - 1], al
sub edx, 1
jne 0x41d6e0
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 4]
add ecx, 0x10
add edi, 0x10
mov dword [ebp - 8], ecx
sub dword [ebp - 0x1c], 1
mov dword [ebp - 4], edi
jne 0x41d5b0
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
add edx, edx
mov dword [ebp - 0x20], edx
cmp edx, 0x10
jl 0x41d580
pop esi
xor eax, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret