Function at 0x417320
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, edx
push esi
test ecx, ecx
je 0x417627
test ebp, ebp
je 0x417627
cmp byte [ebp], 1
je 0x417627
movzx eax, byte [ecx]
sub eax, 1
je 0x417607
sub eax, 1
je 0x4175b2
sub eax, 1
jne 0x417627
mov eax, dword [ecx + 1]
add ebp, 0x2a
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 5]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 9]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0xd]
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x2e]
mov byte [esp + 0x1b], al
mov al, byte [esp + 0x2d]
mov byte [esp + 0x1a], al
mov al, byte [esp + 0x2c]
mov byte [esp + 0x19], al
mov al, byte [esp + 0x2b]
mov byte [esp + 0x18], al
mov al, byte [esp + 0x2a]
mov byte [esp + 0x17], al
mov al, byte [esp + 0x29]
mov byte [esp + 0x16], al
mov al, byte [esp + 0x28]
mov esi, dword [esp + 0x4c]
mov bh, byte [esp + 0x2f]
mov byte [esp + 0x15], al
mov al, byte [esp + 0x27]
mov byte [esp + 0x14], al
mov al, byte [esp + 0x26]
mov byte [esp + 0x13], al
mov al, byte [esp + 0x25]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x24]
mov byte [esp + 0x11], al
mov al, byte [esp + 0x23]
mov byte [esp + 0x10], al
mov al, byte [esp + 0x22]
mov byte [esp + 0xf], al
mov al, byte [esp + 0x21]
mov byte [esp + 0xe], al
mov al, byte [esp + 0x20]
mov dword [esp + 0x1c], 0
mov byte [esp + 0xd], al
nop word [eax + eax]
movups xmm0, xmmword [esp + 0x20]
lea edx, [esp + 0x30]
push ebp
mov ecx, edx
movups xmmword [esp + 0x34], xmm0
call fcn.004167b0
mov eax, dword [esp + 0x20]
add esp, 4
mov bl, al
shr eax, 3
lea edx, [eax + esi]
and bl, 7
mov al, byte [esp + 0x30]
mov cl, bl
mov ah, byte [esp + 0xe]
and al, 0x80
shr al, cl
xor byte [edx], al
mov al, ah
mov cl, byte [esp + 0xd]
add ah, ah
shr al, 7
add cl, cl
or cl, al
mov dl, byte [edx]
mov byte [esp + 0xd], cl
mov byte [esp + 0x20], cl
mov cl, byte [esp + 0xf]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [esp + 0xe], ah
mov byte [esp + 0x21], ah
mov ah, byte [esp + 0x10]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [esp + 0xf], cl
mov byte [esp + 0x22], cl
mov cl, byte [esp + 0x11]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [esp + 0x10], ah
mov byte [esp + 0x23], ah
mov ah, byte [esp + 0x12]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [esp + 0x11], cl
mov byte [esp + 0x24], cl
mov cl, byte [esp + 0x13]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [esp + 0x12], ah
mov byte [esp + 0x25], ah
mov ah, byte [esp + 0x14]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [esp + 0x13], cl
mov byte [esp + 0x26], cl
mov cl, byte [esp + 0x15]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [esp + 0x14], ah
mov byte [esp + 0x27], ah
mov ah, byte [esp + 0x16]
mov al, ah
shr al, 7
or cl, al
mov byte [esp + 0x15], cl
mov byte [esp + 0x28], cl
add ah, ah
mov cl, byte [esp + 0x17]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [esp + 0x16], ah
mov byte [esp + 0x29], ah
mov ah, byte [esp + 0x18]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [esp + 0x17], cl
mov byte [esp + 0x2a], cl
mov cl, byte [esp + 0x19]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [esp + 0x18], ah
mov byte [esp + 0x2b], ah
mov ah, byte [esp + 0x1a]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [esp + 0x19], cl
mov byte [esp + 0x2c], cl
mov cl, byte [esp + 0x1b]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov al, bh
shr al, 7
add bh, bh
or cl, al
mov byte [esp + 0x1a], ah
mov byte [esp + 0x1b], cl
mov byte [esp + 0x2e], cl
mov cl, 7
sub cl, bl
mov byte [esp + 0x2d], ah
mov eax, dword [esp + 0x1c]
shr dl, cl
inc eax
and dl, 1
mov dword [esp + 0x1c], eax
or bh, dl
mov byte [esp + 0x2f], bh
cmp eax, 0x80
jl 0x417410
pop esi
pop ebp
mov eax, 0x80
pop ebx
add esp, 0x34
ret
mov edx, dword [ecx + 1]
mov esi, dword [ecx + 5]
mov ebx, dword [ecx + 0xd]
push edi
mov edi, dword [ecx + 9]
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
xor eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 4]
xor eax, esi
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 8]
xor eax, edi
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x34]
xor eax, ebx
mov dword [esp + 0x40], eax
lea eax, [ebp + 0x2a]
push eax
call fcn.004167b0
add esp, 4
mov eax, 0x80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov edx, dword [esp + 0x4c]
lea eax, [ebp + 0x2a]
mov ecx, dword [esp + 0x44]
push eax
call fcn.004167b0
add esp, 4
mov eax, 0x80
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x34
ret