Function at 0x417fba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ecx, ecx
cmp dword [esi], ecx
je 0x417fd2
push 0xfffffffffffffffb
pop eax
jmp 0x418264
cmp dword [esi + 8], ecx
je 0x417fdb
push 0xfffffffffffffffa
jmp 0x417fcc
push edi
mov edi, dword [ebp + 8]
cmp edi, ecx
je 0x418261
mov eax, dword [ebp + 0xc]
cmp eax, ecx
jle 0x418261
cdq
and edx, 0x7f
lea ebx, [edx + eax]
mov eax, dword [esi + 4]
sar ebx, 7
sub eax, ecx
mov dword [ebp + 0xc], ebx
je 0x418230
dec eax
je 0x4181a7
dec eax
je 0x41801c
or eax, 0xffffffff
jmp 0x418263
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp + 8], ebx
cmp ebx, ecx
jle 0x41825a
xor edi, edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push eax
mov ecx, esi
call fcn.00417766
mov eax, edi
cdq
and edx, 7
add eax, edx
mov dl, byte [ebp - 0x20]
and dl, 0x80
mov ebx, edi
and ebx, 7
mov cl, bl
shr dl, cl
mov cl, byte [ebp - 0xf]
shr cl, 7
sar eax, 3
add eax, dword [ebp + 0x10]
xor byte [eax], dl
mov dl, byte [ebp - 0x10]
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xf]
mov byte [ebp - 0x10], cl
mov cl, byte [ebp - 0xe]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xe]
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0xd]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], cl
mov cl, byte [ebp - 0xc]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xc]
mov byte [ebp - 0xd], cl
mov cl, byte [ebp - 0xb]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xb]
mov byte [ebp - 0xc], cl
mov cl, byte [ebp - 0xa]
shr cl, 7
mov al, byte [eax]
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xa]
mov byte [ebp - 0xb], cl
mov cl, byte [ebp - 9]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 9]
mov byte [ebp - 0xa], cl
mov cl, byte [ebp - 8]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 8]
mov byte [ebp - 9], cl
mov cl, byte [ebp - 7]
shr cl, 7
add dl, dl
or cl, dl
mov byte [ebp - 8], cl
mov cl, byte [ebp - 6]
mov dl, byte [ebp - 7]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 6]
mov byte [ebp - 7], cl
mov cl, byte [ebp - 5]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 5]
mov byte [ebp - 6], cl
mov cl, byte [ebp - 4]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 4]
mov byte [ebp - 5], cl
mov cl, byte [ebp - 3]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 3]
mov byte [ebp - 4], cl
mov cl, byte [ebp - 2]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 2]
mov byte [ebp - 3], cl
mov cl, byte [ebp - 1]
shr cl, 7
add dl, dl
or cl, dl
mov byte [ebp - 2], cl
mov cl, 7
sub cl, bl
shr al, cl
mov cl, byte [ebp - 1]
add cl, cl
and al, 1
or al, cl
inc edi
mov byte [ebp - 1], al
cmp edi, 0x80
jl 0x418041
dec dword [ebp + 8]
cmp dword [ebp + 8], 0
jg 0x41803f
jmp 0x41822b
mov eax, dword [esi + 0xc]
xor eax, dword [edi]
push dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x10]
mov ecx, esi
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00417766
lea eax, [ebx - 1]
add edi, 0x10
mov dword [ebp + 8], eax
test eax, eax
jle 0x41825a
mov ebx, dword [ebp + 0x10]
add ebx, 8
mov eax, dword [ebx - 8]
xor eax, dword [edi]
mov ecx, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebx - 4]
xor eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 8]
xor eax, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebx - 0xc]
xor eax, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebx - 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00417766
add edi, 0x10
dec dword [ebp + 8]
cmp dword [ebp + 8], 0
jg 0x4181eb
mov ebx, dword [ebp + 0xc]
jmp 0x41825a
mov dword [ebp + 8], ebx
cmp ebx, ecx
jle 0x41825a
mov dword [ebp + 0xc], edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
mov eax, dword [ebp + 0xc]
push edi
add eax, edi
push eax
mov ecx, esi
call fcn.00417766
add edi, 0x10
dec dword [ebp + 8]
cmp dword [ebp + 8], 0
jg 0x418240
mov eax, ebx
shl eax, 7
jmp 0x418263
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc