Function at 0x41826a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
je 0x418282
push 0xfffffffffffffffb
pop eax
jmp 0x418533
push esi
mov esi, dword [edi + 4]
cmp esi, 2
je 0x418298
cmp dword [edi + 8], ebx
jne 0x418298
push 0xfffffffffffffffa
pop eax
jmp 0x418532
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x418530
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jle 0x418530
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
mov edx, esi
sub edx, ebx
mov dword [ebp - 4], eax
je 0x418505
dec edx
je 0x418466
dec edx
je 0x4182d6
or eax, 0xffffffff
jmp 0x418532
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 8], ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
jle 0x41852b
xor esi, esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
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
lea eax, [ebp - 0x24]
push eax
push eax
mov ecx, edi
call fcn.00417766
mov al, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x13]
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x12]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x12]
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0x11]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x11]
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0x10]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0x11], al
mov al, byte [ebp - 0xf]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xf]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0xe]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0xd]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0xc]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xc]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xb]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xb]
mov byte [ebp - 0xc], al
mov al, byte [ebp - 0xa]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xa]
mov byte [ebp - 0xb], al
mov al, byte [ebp - 9]
shr al, 7
add cl, cl
or al, cl
mov byte [ebp - 0xa], al
mov al, byte [ebp - 8]
shr al, 7
mov cl, byte [ebp - 9]
add cl, cl
or al, cl
mov cl, byte [ebp - 8]
mov byte [ebp - 9], al
mov al, byte [ebp - 7]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 7]
mov byte [ebp - 8], al
mov al, byte [ebp - 6]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 6]
mov byte [ebp - 7], al
mov al, byte [ebp - 5]
shr al, 7
add cl, cl
or al, cl
mov byte [ebp - 6], al
mov eax, esi
cdq
and edx, 7
add eax, edx
mov edx, dword [ebp + 8]
mov ebx, esi
and ebx, 7
sar eax, 3
mov dl, byte [eax + edx]
add eax, dword [ebp + 0x10]
mov cl, 7
sub cl, bl
shr dl, cl
mov cl, byte [ebp - 5]
add cl, cl
and dl, 1
or dl, cl
mov byte [ebp - 5], dl
mov dl, byte [ebp - 0x24]
and dl, 0x80
mov cl, bl
shr dl, cl
xor byte [eax], dl
inc esi
cmp esi, 0x80
jl 0x4182fb
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
jg 0x4182f9
jmp 0x418528
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x14], edx
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x10], edx
mov edx, dword [edi + 0x14]
mov dword [ebp - 0xc], edx
mov edx, dword [edi + 0x18]
mov dword [ebp - 8], edx
mov dword [ebp + 0xc], eax
cmp eax, ebx
jle 0x41852b
mov eax, dword [ebp + 0x10]
lea ebx, [ecx + 8]
sub ecx, eax
add ecx, 0xfffffff8
lea esi, [eax + 8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ecx
add eax, esi
push eax
mov ecx, edi
call fcn.00417b27
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [esi - 8], eax
mov eax, dword [ebx - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esi - 4], eax
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
add ebx, 0x10
add esi, 0x10
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
jg 0x41849a
jmp 0x418528
mov esi, eax
cmp eax, ebx
jle 0x41852b
jmp 0x418510
mov ecx, dword [ebp + 8]
push dword [ebp + 0x10]
push ecx
mov ecx, edi
call fcn.00417b27
add dword [ebp + 8], 0x10
add dword [ebp + 0x10], 0x10
dec esi
test esi, esi
jg 0x41850d
mov eax, dword [ebp - 4]
shl eax, 7
jmp 0x418532
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 0xc