Function at 0x414978
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x1c], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
movzx eax, byte [ebx]
je 0x414b63
movzx ecx, byte [ebx + 1]
shl eax, 0x18
inc ebx
shl ecx, 0x10
or eax, ecx
inc ebx
xor ecx, ecx
mov ch, byte [ebx]
or eax, ecx
inc ebx
movzx ecx, byte [ebx]
or eax, ecx
inc ebx
mov dword [ebp + 0x18], eax
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
shl ecx, 0x18
inc ebx
shl edx, 0x10
or ecx, edx
inc ebx
xor edx, edx
mov dh, byte [ebx]
or ecx, edx
inc ebx
movzx edx, byte [ebx]
or ecx, edx
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff8
sub ebx, 7
test edx, edx
mov dword [ebp + 0x1c], ecx
jl 0x414b58
lea eax, [edx + 8]
mov esi, dword [ebp + 0xc]
shr eax, 3
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
neg eax
lea eax, [edx + eax*8]
mov dword [ebp + 0x10], eax
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
shl eax, 0x18
inc edi
push dword [ebp + 0x14]
shl ecx, 0x10
or eax, ecx
inc edi
xor ecx, ecx
mov ch, byte [edi]
or eax, ecx
inc edi
movzx ecx, byte [edi]
or eax, ecx
inc edi
xor eax, dword [ebp + 0x18]
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ecx, 0x18
inc edi
mov dword [ebp - 0xc], eax
shl edx, 0x10
or ecx, edx
inc edi
xor edx, edx
lea eax, [ebp - 0xc]
mov dh, byte [edi]
push eax
or ecx, edx
inc edi
movzx edx, byte [edi]
or ecx, edx
inc edi
xor ecx, dword [ebp + 0x1c]
mov dword [ebp - 8], ecx
call fcn.00414dc6
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp + 0x18], eax
mov ecx, eax
shr ecx, 0x18
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 0x10
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 8
mov byte [esi], cl
mov ecx, dword [ebp - 8]
inc esi
mov edx, ecx
shr edx, 0x18
mov byte [esi], al
inc esi
mov dword [ebp + 0x1c], ecx
mov byte [esi], dl
mov edx, ecx
inc esi
shr edx, 0x10
mov byte [esi], dl
mov edx, ecx
inc esi
shr edx, 8
mov byte [esi], dl
inc esi
mov dl, cl
mov byte [esi], dl
inc esi
dec dword [ebp - 4]
jne 0x4149f7
mov edx, dword [ebp + 0x10]
cmp edx, 0xfffffff8
je 0x414d41
lea edi, [edi + edx + 8]
add edx, 7
xor ecx, ecx
xor eax, eax
cmp edx, 7
ja case.default.0x414ab6
jmp dword [edx*4 + 0x414d86]
movzx ecx, byte [edi - 1]
dec edi
dec edi
xor eax, eax
mov ah, byte [edi]
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x18
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
dec edi
xor edx, edx
mov dh, byte [edi]
or eax, edx
movzx edx, byte [edi - 1]
dec edi
shl edx, 0x10
or eax, edx
movzx edx, byte [edi - 1]
shl edx, 0x18
or eax, edx
xor eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
xor ecx, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], ecx
call fcn.00414dc6
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, eax
shr ecx, 0x18
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 0x10
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 8
mov byte [esi], cl
mov ecx, dword [ebp - 8]
inc esi
mov edx, ecx
shr edx, 0x18
mov byte [esi], al
inc esi
mov byte [esi], dl
mov edx, ecx
inc esi
shr edx, 0x10
mov byte [esi], dl
mov edx, ecx
inc esi
shr edx, 8
mov byte [esi], dl
mov dl, cl
mov byte [esi + 1], dl
jmp 0x414d41
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jmp 0x414a9d
movzx ecx, byte [ebx + 1]
shl eax, 0x18
inc ebx
shl ecx, 0x10
or eax, ecx
inc ebx
xor ecx, ecx
mov ch, byte [ebx]
or eax, ecx
inc ebx
movzx ecx, byte [ebx]
or eax, ecx
inc ebx
mov dword [ebp + 0x1c], eax
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
shl ecx, 0x18
inc ebx
shl edx, 0x10
or ecx, edx
inc ebx
xor edx, edx
mov dh, byte [ebx]
or ecx, edx
inc ebx
movzx edx, byte [ebx]
or ecx, edx
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff8
sub ebx, 7
test edx, edx
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x10], edx
jl 0x414d7b
lea eax, [edx + 8]
mov edi, dword [ebp + 0xc]
shr eax, 3
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
neg eax
lea eax, [edx + eax*8]
mov dword [ebp + 0x10], eax
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
shl eax, 0x18
inc esi
push dword [ebp + 0x14]
shl ecx, 0x10
or eax, ecx
inc esi
xor ecx, ecx
mov ch, byte [esi]
or eax, ecx
inc esi
movzx ecx, byte [esi]
or eax, ecx
inc esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], eax
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
shl eax, 0x18
inc esi
shl ecx, 0x10
or eax, ecx
inc esi
xor ecx, ecx
mov ch, byte [esi]
or eax, ecx
inc esi
movzx ecx, byte [esi]
or eax, ecx
inc esi
mov dword [ebp + 8], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00414dc6
mov eax, dword [ebp + 0x1c]
pop ecx
xor eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp + 0x18]
xor ecx, dword [ebp - 8]
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
mov edx, eax
inc edi
shr edx, 0x10
mov byte [edi], dl
mov edx, eax
inc edi
shr edx, 8
mov byte [edi], dl
inc edi
mov byte [edi], al
mov eax, ecx
inc edi
shr eax, 0x18
mov byte [edi], al
mov eax, ecx
inc edi
shr eax, 0x10
mov byte [edi], al
mov eax, ecx
inc edi
shr eax, 8
mov byte [edi], al
mov eax, dword [ebp + 0xc]
inc edi
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 8]
mov byte [edi], cl
inc edi
dec dword [ebp - 4]
mov dword [ebp + 0x18], eax
jne 0x414bcc
mov edx, dword [ebp + 0x10]
mov ecx, eax
mov eax, dword [ebp + 0x1c]
cmp edx, 0xfffffff8
je 0x414d41
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
shl eax, 0x18
inc esi
push dword [ebp + 0x14]
shl ecx, 0x10
or eax, ecx
inc esi
xor ecx, ecx
mov ch, byte [esi]
or eax, ecx
inc esi
movzx ecx, byte [esi]
or eax, ecx
inc esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], eax
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
shl eax, 0x18
inc esi
shl ecx, 0x10
or eax, ecx
inc esi
xor ecx, ecx
mov ch, byte [esi]
mov cl, byte [esi + 1]
or eax, ecx
mov dword [ebp + 8], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00414dc6
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x1c]
xor eax, dword [ebp - 0xc]
pop ecx
pop ecx
lea edi, [edi + edx + 8]
mov ecx, dword [ebp + 0x18]
add edx, 7
xor ecx, dword [ebp - 8]
cmp edx, 7
ja case.default.0x414cf7
jmp dword [edx*4 + 0x414da6]
dec edi
mov byte [edi], cl
mov edx, ecx
dec edi
shr edx, 8
mov byte [edi], dl
mov edx, ecx
dec edi
shr edx, 0x10
mov byte [edi], dl
dec edi
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov byte [edi], al
mov ecx, eax
dec edi
shr ecx, 8
mov byte [edi], cl
mov ecx, eax
dec edi
shr ecx, 0x10
mov byte [edi], cl
shr eax, 0x18
mov byte [edi - 1], al
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x18], eax
mov ecx, eax
mov eax, dword [ebp + 0x1c]
mov edx, eax
pop edi
shr edx, 0x18
mov byte [ebx], dl
mov edx, eax
inc ebx
pop esi
shr edx, 0x10
mov byte [ebx], dl
mov edx, eax
inc ebx
shr edx, 8
mov byte [ebx], dl
inc ebx
mov byte [ebx], al
mov eax, ecx
inc ebx
shr eax, 0x18
mov byte [ebx], al
mov eax, ecx
inc ebx
shr eax, 0x10
mov byte [ebx], al
mov eax, ecx
inc ebx
shr eax, 8
mov byte [ebx], al
mov byte [ebx + 1], cl
pop ebx
leave
ret
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
jmp 0x414c81